how can i save files in a mircrosoft partition

Asked by skorbut

I have a Windows XP machine and now I have Ubuntu on the same machine (separate partitions).
How can i save a file in the windows partition when I am working with ubunti.
(i think i dont have the rights now)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jim Hutchinson (jphutch) said :
#1

Save them where? If you want to save something modified in Ubuntu onto the windows partition you have to make sure you have enabled NTFS write access. This is supposed to be done by default in 7.10 (gutsy) but as I no longer have windows on my computer I can't check that. Check this page for more information.

https://help.ubuntu.com/community/MountingWindowsPartitions/ThirdPartyNTFS3G

Revision history for this message
skorbut (dirkmehl) said :
#2

i want save files in the windows partition when i working with ubuntu. and i have'nt enabled ntfs write access right now(but i also dont know how to do it or better i don't find a describtion).

Revision history for this message
Jim Hutchinson (jphutch) said :
#3

The only way to write to a windows NTFS partition is to enable write access with the NTFS-3g tool or something similar. I'm not sure of the state of things with Gutsy (it's supposed to be automatic) but if you are using feisy or another version you can follow one of the many guides. I linked one above. Here are a couple more.

http://www.howtoforge.com/ntfs_3g_ubuntu_feisty

http://ubuntuforums.org/showthread.php?t=337970

http://www.ubuntugeek.com/widows-ntfs-partitions-readwrite-support-made-easy-in-ubuntu-feisty.html

Revision history for this message
Sidarth Dasari (sirsid) said :
#4

You will want to add an entry to you fstab which uses nfts-3g driver. Fstab is located at /etc/fstab. So to edit it you would type

sudo gedit /etc/fstab

For example. I added this entry to add my ntfs partition on my first harddrive.

/dev/sda5 /home/sid/Drives/D ntfs-3g defaults,umask=000,users 0 0

Now many people would say those permissions (the umask=XXX) are a security threat because it allows everything, but it also comes with the advantages always allowing read/write/execute privileges.

the fist bit has to be the drive and partition. sda means its my first harddrive and 5 means its the 5th partition. You can use gparted to see what your harddrive and partition are labeled as. The next bit is the folder where I want to mount the drive to. I made a file in my /home/Drives folder named D and mounted my partition to that. Next comes the driver to use. Since its a ntfs drive, i am using the ntfs-3g driver. Umask is the permissions for the dive.
and To be perfectly honest I have no idea what users 0 0 is there for, but it was on my default entries so I added that as way.

Now just type sudo mount -a and it should mount your drive at the folder you specified.

I hope that wasnt too confusing :)

Revision history for this message
skorbut (dirkmehl) said :
#5

thanks for answer me (by the way i using ubuntu 7.04)

After "sudo gedit /etc/fstab" it opens a new window and then i follow the lines bellow

For example. I added this entry to add my ntfs partition on my first harddrive.

/dev/sda5 /home/sid/Drives/D ntfs-3g defaults,umask=000,users 0 0

Now many people would say those permissions (the umask=XXX) are a security threat because it allows everything, but it also comes with the advantages always allowing read/write/execute privileges.

the fist bit has to be the drive and partition. sda means its my first harddrive and 5 means its the 5th partition. You can use gparted to see what your harddrive and partition are labeled as. The next bit is the folder where I want to mount the drive to. I made a file in my /home/Drives folder named D and mounted my partition to that. Next comes the driver to use.

but her:
Since its a ntfs drive, i am using the ntfs-3g driver.
so i have to install the program ntfs-3g. is that right.

and where should i type "sudo mount -a"? in the terminal?
Now just type sudo mount -a and it should mount your drive at the folder you specified.

Revision history for this message
Sidarth Dasari (sirsid) said :
#6

yes its a driver so just type sudo apt-get install nfts-3g and it should install it.
and also yes to your second question, you type sudo mount -a in terminal.

Can you help with this problem?

Provide an answer of your own, or ask skorbut for more information if necessary.

To post a message you must log in.