Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-30-2007, 02:11 PM   #1
Registered: Dec 2004
Posts: 78

Rep: Reputation: 15
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
Old 06-30-2007, 02:15 PM   #2
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
you have to remount the drive as read and write
Old 06-30-2007, 02:17 PM   #3
Registered: Dec 2004
Posts: 78

Original Poster
Rep: Reputation: 15
I didnt do anything
it mounted the drive on its own
Old 06-30-2007, 03:06 PM   #4
Registered: Sep 2003
Location: kolkata
Distribution: Fedora 7
Posts: 60

Rep: Reputation: 15
Try the -w switch with the mount command you are using to mount the partition.
Although -w is default behavior.
Old 06-30-2007, 06:10 PM   #5
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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:
sudo umount /media/windows_c
Then you mount it with ntfs-3g like so:
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:
/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:
sudo mkdir /windows
Then you mount it with similar command from above and add a line in /etc/fstab similar to the example above.

Last edited by Junior Hacker; 06-30-2007 at 06:16 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing NTFS fatenabu Linux - Distributions 2 09-09-2005 07:09 PM
Writing to ntfs cheater1034 Linux - Hardware 2 08-02-2005 10:53 PM
Writing to an NTFS volume using captive-ntfs (repairing boot.ini) macskeeball Linux - General 3 02-06-2005 10:28 PM
[SOLVED] writing to NTFS bucovaina78 Linux - Software 2 11-02-2004 06:27 PM
Writing to NTFS irfanhab Linux - Software 6 05-14-2004 05:08 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration