System environment debianlenny, after the default installation, you cannot access the ntfs partition, after installing and configuring the NTFS-3G 1. install ntfs-3gapt-get-yinstallntfs-3g2. create a mounted folder. I have three disks under windows. all need access. Therefore, three new folders are created in/mnt/C,/mnt/D, and/mnt/E3.
System environment debian lenny, after the default installation, you cannot access the ntfs partition, after installing and configuring the NTFS-3G
1. install NTFS-3G
Apt-get-y install NTFS-3G
2. create a mounted folder
I have three disks under windows. all of them need to be accessed. Therefore, three new folders are created in/mnt/C,/mnt/D, and/mnt/E.
3. Mount partitions
First, run the fdisk command to check the current disk status.
Debian-hcshangxinli:/home/shang # fdisk-l
Disk/dev/sda: 74.7 GB, 74743119872 bytes
240 heads, 21 sectors/track, 28964 cylinders
Units = cylinders of 5040*512 = 2580480 bytes
Disk identifier: 0xf0b1ebb0
Device Boot Start End Blocks Id System
/Dev/sda1*1 6096 15361909 + 7 HPFS/NTFS
/Dev/sda2 6097 16796 26964000 f W95 Ext 'd (LBA)
/Dev/sda3 16797 28964 30663360 7 HPFS/NTFS
/Dev/sda5 6097 16796 26963989 + 7 HPFS/NTFS
Disk/dev/hda: 10.2 GB, 10242892800 bytes
255 heads, 63 sectors/track, 1245 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk identifier: 0x6f75ea16
Device Boot Start End Blocks Id System
/Dev/hda1*1 31 248976 83 Linux
/Dev/hda2 32 1245 9751455 8e LinuxLVM
As you can see, I installed windows on an 80 GB hard drive and debian on a 10 GB hard drive.
/Dev/sda1 corresponds to drive C in windows
/Dev/sda2 corresponds to the D disk in windows
/Dev/sda5 corresponds to an edisk in windows
The hanging command is as follows:
Mount-t NTFS-3G/dev/sda1/mnt/C
Mount-t NTFS-3G/dev/sda3/mnt/D
Mount-t NTFS-3G/dev/sda5/mnt/E
4. set automatic mounting upon startup
Add these three statements to the/etc/fstab file.
/Dev/hdb1/mnt/C NTFS-3G defaults 0 0
/Dev/hdb3/mnt/D NTFS-3G defaults 0 0
/Dev/hdb3/mnt/E NTFS-3G defaults 0 0