让你的Debian Linux支持NTFS文件系统的读写
系统环境debian lenny,默认安装后,不能访问ntfs分区,在安装和配置ntfs-3g以后即可1.安装ntfs-3gapt-get -y install ntfs-3g2.创建挂载的文件夹我windows下面有三个磁盘.都需要访问。因此在/mnt中新建了三个文件夹,分别是/mnt/C、/mnt/D、/mnt/E
3.挂载分区首先使用fdisk命令查看目前磁盘情况debian-hcshangxinli:/home/shang# fdisk -l Disk /dev/sda: 74.7 GB, 74743119872 bytes240 heads, 21 sectors/track, 28964 cylindersUnits = cylinders of 5040 * 512 = 2580480 bytesDisk identifier: 0xf0b1ebb0 Device Boot Start End Blocks IdSystem/dev/sda1 * 1 6096 15361909+ 7HPFS/NTFS/dev/sda2 6097 16796 26964000 fW95 Ext'd (LBA)/dev/sda3 16797 28964 30663360 7HPFS/NTFS/dev/sda5 6097 16796 26963989+ 7HPFS/NTFS Disk /dev/hda: 10.2 GB, 10242892800 bytes255 heads, 63 sectors/track, 1245 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk identifier: 0x6f75ea16 Device Boot Start End Blocks IdSystem/dev/hda1 * 1 31 248976 83Linux/dev/hda2 32 1245 9751455 8eLinux LVM
大家可以看到,我在80G硬盘上安装了windows的系统,10G的硬盘上安装了debian。
/dev/sda1对应windows中的C盘
/dev/sda2对应windows中的D盘
/dev/sda5对应windows中的E盘
挂在命令如下mount -t ntfs-3g /dev/sda1 /mnt/Cmount -t ntfs-3g /dev/sda2 /mnt/Dmount -t ntfs-3g /dev/sda5 /mnt/E
4.设置开机自动挂载把这三条语句增加到/etc/rc.local文件夹中即可
页:
[1]