LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Writing on NTFS (https://www.linuxquestions.org/questions/linux-newbie-8/writing-on-ntfs-565658/)

Instantly 06-30-2007 01:11 PM

Writing on NTFS
 
I did
sudo apt-get install ntfs-3g
and everything installed fine

but I still cant write on ntfs harddrives
I get
mkdir: cannot create directory `a': Read-only file system

AceofSpades19 06-30-2007 01:15 PM

you have to remount the drive as read and write

Instantly 06-30-2007 01:17 PM

how?
I didnt do anything
it mounted the drive on its own

shobhit 06-30-2007 02:06 PM

Try the -w switch with the mount command you are using to mount the partition.
Although -w is default behavior.

Junior Hacker 06-30-2007 05:10 PM

Type: fdisk -l in a terminal or look at /etc/fstab to find which device the ntfs partition is. For example:
If it is /dev/sdb1, and is accessible through the file system through /media/windows_c, then you un-mount it with command:
Code:

sudo umount /media/windows_c
Then you mount it with ntfs-3g like so:
Code:

sudo mount -t ntfs-3g /dev/sdb1 /media/windows_c
Then edit /etc/fstab to have it mounted with ntfs-3g every time you boot up by changing the line in /etc/fstab for /dev/sdb1 like so:
Code:

/dev/sdb1      /media/windows_c      ntfs-3g      defaults      0    0
If your ntfs partition was not available before installing ntfs-3g, you have to make a directory for it in the file system, you can make it in /media, /mnt, or in root if you like and call it what you want, I'll call it "windows" for demonstration purposes, as in the example that follows:
Code:

sudo mkdir /windows
Then you mount it with similar command from above and add a line in /etc/fstab similar to the example above.


All times are GMT -5. The time now is 10:30 AM.