切换163yum源
#1、进入存放源配置的文件夹 cd /etc/yum.repos.d #2、备份默认源 mv ./CentOS-Base.repo ./CentOS-Base.repo.bak #3、使用wget下载163的源 http://mirrors.163.com/.help/centos.html wget http://mirrors.163.com/.help/CentOS6-Base-163.repo #4、把下载下来的文件CentOS-Base-163.repo设置为默认源 mv CentOS6-Base-163.repo CentOS-Base.repo #通过上述操作就把默认源修改为163的了。当然上述的第三、四步可以合并为如下: #wget http://mirrors.163.com/.help/CentOS6-Base-163.repo -O CentOS-Base.repo #运行yum makecache生成缓存 yum makecache
安装ntfs-3g
挂载ntfs分区,这个需要下载编译ntfs-3g
下载(资源来自Linux公社)方式 :
wget --http-user=www.linuxidc.com --http-passwd=www.linuxidc.com http://linux.linuxidc.com/2014年资料/6月/15日/在Linux下使用NTFS-3G挂载NTFS分区的U盘及移动硬盘/ntfs-3g_ntfsprogs-2013.1.13.tgz
出现提示:
no acceptable C compiler found in $PATH
新装最小化安装系统,没有安装gcc,
yum -y install gcc
安装成功后
./configure make make install
或者(下一二行为添加pmforge的软件仓库)
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm yum install ntfs-3g
然后挂载
mount -t ntfs-3g /** /**
通常不指定-t 格式也能挂载,mount可以识别,umount /mnt/ntfs取消挂载 -o loop 将文件挂载为分区,通常在挂载iso文件时用
#挂载windows共享(ntfs可用) mount -t cifs -o username=***@***,passwd=** "//192.168.**.**/***" /mnt/ntfs/
在/etc/fstab中加入包含空格的挂载信息,开机自动挂载
//192.168.**.**/test\040test /mnt/test\040test cifs auto,username=***,password=*** 0 0
来自于:
http://ckc620.blog.51cto.com/631254/394238/
http://www.eetop.cn/blog/html/03/885803-43138.html
http://bbs.chinaunix.net/forum.php?mod=redirect&goto=findpost&ptid=1987837&pid=14163168
© 著作权归作者所有
文章评论(0)