HOWTO: Automount NTFS partitions as read/write

From Sabayon Wiki
Jump to: navigation, search
i18n: en pl tr
Actually all Sabayon Linux Distros from 3.4+ use SATA imaging. Which means that all drives appear as sd*. An example is /dev/sda/ Element 22:34, 24 September 2007 (UTC)`

This will show you how to automount your root Window's parition so that you can read and write to it.

Perform the following commands to create a mountpoint and open up fstab to edit

$ su
# mkdir /mnt/Windows
# nano -w /etc/fstab

Assuming That Windows is installed on the first Harddisc, and first Partition:

add the following to the bottom:

/dev/sda1 /mnt/Windows   ntfs-3g   defaults   0   0
The spaces are important they are in columns.

/mnt/Windows is our new mountpoint (where you go to see the files after boot time). ntfs-3g is telling it is a ntfs parition and is needed to write to it. The rest just mounts it automatically and for all users to read and write to it.

If you have a mutliple user system and only want certain users to read/write to it, do the following:

# groupadd ntfs
# usermod -a -G ntfs YOUR_USER_NAME
# gpasswd -a YOUR_USER_NAME ntfs

The output should look something like this:

Adding group `ntfs' (1002)... 

That number is your gid an umask number to use.

and do this instead for fstab:

/dev/sda1    /mnt/Windows    ntfs-3g    auto,gid=1002,unmask=0002    0    0

You will need to change the gid and umask to equal that of whatever your ntfs usergroup is.

There you have it. Save and exit. Then reboot and you'll have read/write access to it from /mnt/Windows

There's no need to reboot!

Once /etc/fstab is modified, apply modifications, and exit your editor.

As root, type:

mount -a

(mount all the not mounted partitions in /etc/fstab)


--cvill64 21:28, 6 November 2006 (PST)--cvilll64