HOWTO: Automount NTFS partitions as read/write
Aposteeltje (Talk | contribs) |
|||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{I18n| [[HOWTO:_Automount_NTFS_partitions_as_read/write|en]] [[Pl:HOWTO:_Montowanie_partycji_NTFS|pl]]}} | + | {{I18n| [[HOWTO:_Automount_NTFS_partitions_as_read/write|en]] [[Pl:HOWTO:_Montowanie_partycji_NTFS|pl]] [[Tr:HOWTO:_Automount_NTFS_partitions_as_read/write|tr]]}} |
{{Template:Note | Actually all Sabayon Linux Distros from 3.4+ use SATA imaging. Which means that all drives appear as sd*. An example is /dev/sda/ [[User:Element|Element]] 22:34, 24 September 2007 (UTC)`}} | {{Template:Note | Actually all Sabayon Linux Distros from 3.4+ use SATA imaging. Which means that all drives appear as sd*. An example is /dev/sda/ [[User:Element|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. | This will show you how to automount your root Window's parition so that you can read and write to it. | ||
| Line 5: | Line 5: | ||
Perform the following commands to create a mountpoint and open up fstab to edit | Perform the following commands to create a mountpoint and open up fstab to edit | ||
<pre>$ su | <pre>$ su | ||
| − | # mkdir / | + | # mkdir /mnt/Windows |
# nano -w /etc/fstab | # nano -w /etc/fstab | ||
</pre> | </pre> | ||
| − | + | Assuming That Windows is installed on the first Harddisc, and first Partition: | |
| − | + | ||
| + | add the following to the bottom: | ||
| + | <pre>/dev/sda1 /mnt/Windows ntfs-3g defaults 0 0</pre> | ||
| − | + | {{Note|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: | If you have a mutliple user system and only want certain users to read/write to it, do the following: | ||
| − | <pre># | + | <pre># groupadd ntfs |
| − | # | + | # usermod -a -G ntfs YOUR_USER_NAME |
| + | or | ||
| + | # gpasswd -a YOUR_USER_NAME ntfs</pre> | ||
| + | |||
| Line 33: | Line 38: | ||
and do this instead for fstab: | and do this instead for fstab: | ||
| − | <pre>/dev/ | + | <pre>/dev/sda1 /mnt/Windows ntfs-3g auto,gid=1002,unmask=0002 0 0</pre> |
You will need to change the gid and umask to equal that of whatever your ntfs usergroup is. | 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 / | + | There you have it. Save and exit. Then reboot and you'll have read/write access to it from /mnt/Windows |
| − | There | + | There's no need to reboot! |
| − | + | Once /etc/fstab is modified, apply modifications, and exit your editor. | |
| − | + | As root, type: | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
{{Console| <pre class="clear"> | {{Console| <pre class="clear"> | ||
| − | + | mount -a</pre>}} | |
| − | mount -a | + | (mount all the not mounted partitions in /etc/fstab) |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | Done. | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
--[[User:Sabayon|cvill64]] 21:28, 6 November 2006 (PST)--cvilll64 | --[[User:Sabayon|cvill64]] 21:28, 6 November 2006 (PST)--cvilll64 | ||
[[Category:Filesystems|Automount NTFS partitions as read /write]] | [[Category:Filesystems|Automount NTFS partitions as read /write]] | ||
Latest revision as of 22:07, 11 December 2012
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
/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 or # gpasswd -a YOUR_USER_NAME ntfs
The output should look something like this:
Adding group `ntfs' (1002)... Done
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)
Done.
--cvill64 21:28, 6 November 2006 (PST)--cvilll64