Saturday, 1 September 2007

Windows partitions (NTFS) in read-write for Debian

This procedure will let you automount your windows partition on Linux in a way that almost any user can read AND WRITE to it.

First, make sure you have ntfs-3g installed (you will also need fuse support, not sure now but you may need to recompile your kernel...)

Now, given this drive:

brw-rw---- 1 root disk 3, 1 Sep 1 18:55 /dev/hda1

put this line into your /etc/fstab:

/dev/hda1 /mnt/windows ntfs-3g defaults,gid=disk 0 1

which will automount /dev/hda1 into /mnt/windows and will set the group to "disk", so any user on that group will have permissions to read and write.

Reboot, and your windows drive will be ready!

No comments: