mount windows drive with ntfs 3g

What would I put in my fstab to auto mount my windows drive everytime I boot up using ntfs 3g? Here is the output of fdisk -l

Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7343c164

Device Boot Start End Blocks Id System
/dev/sda1 * 1 48642 390709248 7 HPFS/NTFS

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00005111

Device Boot Start End Blocks Id System
/dev/sdb1 1 262 2104483+ 82 Linux swap / Solaris
/dev/sdb2 * 263 2873 20972857+ 83 Linux
/dev/sdb3 2874 60801 465306660 83 Linux

jaybott wrote:
> What would I put in my fstab to auto mount my windows drive everytime I
> boot up using ntfs 3g? Here is the output of fdisk -l
>
> Disk /dev/sda: 400.0 GB, 400088457216 bytes
> 255 heads, 63 sectors/track, 48641 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x7343c164
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 1 48642 390709248 7 HPFS/NTFS
>
> Disk /dev/sdb: 500.1 GB, 500107862016 bytes
> 255 heads, 63 sectors/track, 60801 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x00005111
>
> Device Boot Start End Blocks Id System
> /dev/sdb1 1 262 2104483+ 82 Linux swap /
> Solaris
> /dev/sdb2 * 263 2873 20972857+ 83 Linux
> /dev/sdb3 2874 60801 465306660 83 Linux

/dev/sda1 /windows/C ntfs-3g
users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0

My fstab, which was generated by the installation process, contains he
above line. Note - it must be on one line.

Larry

I used this and it worked but is it ok? Will it hurt or break anything?

/dev/sda1 /mnt ntfs-3g

Occasionally when you windows it will pause and check the disk, clean it up so to speak. That’s normal with or without Linux.

If the mount fails as it will occasionally, it’s probably because windows needs another “clean”. But I’ve only ever had to reinstall windows once as a result of having it mounted read/write in Linux. I did something silly to a windows system file – it wasn’t the Linux it was me.

If you have a ’ dirty ’ ntfs volume (e.g. not unmounted properly), you can use the linux tool ‘ntfsfix’.

It’s nothing like chkdisk (you will need windows to do that), but it will set your volume state to clean and fix the journals.

Cheers,
Wj