Ubuntu9.10中自动挂载NTFS分区
上一篇 /
下一篇 2010-05-17 15:36:33
/ 个人分类:Linux系统管理技术
Ubuntu中自动挂载分区方法网上搜到有多种
第一种方法 在/etc/rc.local中写入mount命令
1 我的硬盘分区情况
fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 1 2556 20531038+ 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 2557 5356 22491000 7 HPFS/NTFS
/dev/sda4 5357 19457 113266282+ f W95 Ext'd (LBA)
/dev/sda5 5357 5487 1052226 82
Linux swap / Solaris
/dev/sda6 5488 9312 30724281 7 HPFS/NTFS
/dev/sda7 9313 13137 30724281 7 HPFS/NTFS
/dev/sda8 13138 19457 50765368+ 7 HPFS/NTFS
2 建立mount point
sudo mkdir /mnt/data
sudo mkdir /mnt/study
sudo mkdir /mnt/CPartition
3 在/etc/rc.local中 写入以下命令
mount -t ntfs -o iocharset=utf8 -o rw /dev/sda2 /mnt/CPartition
mount -t ntfs -o iocharset=utf8 -o rw /dev/sda6 /mnt/data/
mount -t ntfs -o iocharset=utf8 -o rw /dev/sda7 /mnt/study/
注:网上资料说,9.10已经默认安装了ntfs-3g,不需配置。
第二种方法 在/etc/fstab (filesystem table)中添加mount命令(待验证)
第三种方法 把开机执行脚本放到/etc/rc.d/init.d(Ubuntu是/etc/init.d )目录下 (待验证)
收藏
举报
TAG: