LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-30-2012, 09:08 PM   #1
MetaMan
Member
 
Registered: Apr 2011
Distribution: Arch Linux :D
Posts: 50

Rep: Reputation: 0
Question Mounted NTFS drive is RO


I have followed many online guides exactly and seem to keeping having this problem. I am trying to mount USB-connected NTFS drive at boot on a Debian server.

The related line in /etc/fstab is as follows:
Code:
UUID=8A74E40274E3EEBF /media/drive0 ntfs defaults,umask=0022,uid=1000,gid=1000 0 0
(I use mount -a to test my work and umount /media/drive0 afterwards)

Running the mount command results in this:
Code:
/dev/sdb1 on /media/drive0 type ntfs (rw,umask=0022,uid=1000,gid=1000)
I can access the directory afterwards, but when I try to create a folder, I get the following error:
Code:
mkdir: cannot create directory `test': Read-only file system


If I run id jesse I get the following:
Code:
uid=1000(jesse) gid=1000(jesse) groups=1000(jesse),24(cdrom),25(floppy),29(audio),30(dip),33(www-data),44(video),46(plugdev)
What am I doing wrong?
Thanks!
 
Old 07-31-2012, 12:07 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
You can try
Code:
mount -o remount,rw /dev/sdb1
 
Old 07-31-2012, 01:51 PM   #3
MetaMan
Member
 
Registered: Apr 2011
Distribution: Arch Linux :D
Posts: 50

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
You can try
Code:
mount -o remount,rw /dev/sdb1
Code:
jesse@Server:/media$ sudo mount -o remount,rw /dev/sdb1
[sudo] password for jesse: 
mount: cannot remount block device /dev/sdb1 read-write, is write-protected
What would cause it to be write-protected?
 
Old 07-31-2012, 02:10 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,853

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
The ntfs is read only, ntfs-3g is read/write.

ntfs-3g can be easily installed via apt-get if necessary.
 
1 members found this post helpful.
Old 07-31-2012, 02:19 PM   #5
MetaMan
Member
 
Registered: Apr 2011
Distribution: Arch Linux :D
Posts: 50

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
The ntfs is read only, ntfs-3g is read/write.

ntfs-3g can be easily installed via apt-get if necessary.
Should the type be 'ntfs-3g' then?
 
Old 07-31-2012, 02:22 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,853

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Yes.
 
1 members found this post helpful.
Old 07-31-2012, 02:23 PM   #7
MetaMan
Member
 
Registered: Apr 2011
Distribution: Arch Linux :D
Posts: 50

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Yes.
Much thanks!

One more thing... is this Debian specific? I believe using 'ntfs' on Arch would mount RW..

Last edited by MetaMan; 07-31-2012 at 02:25 PM.
 
Old 07-31-2012, 02:47 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,853

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
As far as I know it is distribution agnostic. There is more then one ntfs driver and I do not know which one is included with Arch but AFAIK in general ntfs-3g supports all file system write operations except for encryption.
 
Old 07-31-2012, 06:05 PM   #9
Roken
Member
 
Registered: Oct 2011
Location: Bolton, UK
Distribution: Arch local, Debian on VPS
Posts: 252

Rep: Reputation: 40
Be aware, though I'm trying to confirm this. If you are a bleeding edge user who builds kernels from git, there may be a bug in the latest git releases (since 26 July) in the fuse module that prevents creation of new files on NTFS volumes (you can create directories and modify existing files).

I've been through all the usual channels to resolve this, and gone to the devs of ntfs-3g. Since the only change that sparked this is to the kernel , I've contacted the fuse driver maintainer and am waiting to hear back. The released kernel version is fine, but if you are a git user that depends on ntfs compatibility be aware that there may be problems.
 
Old 08-01-2012, 09:33 AM   #10
MetaMan
Member
 
Registered: Apr 2011
Distribution: Arch Linux :D
Posts: 50

Original Poster
Rep: Reputation: 0
Thanks for the info, I was just wondering. The server is running Debian Squeeze and everything is working fine now.
 
  


Reply

Tags
fstab, mount, ntfs, usb


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
cant have full permission on NTFS mounted drive mianmajidali Linux - Networking 1 01-28-2009 05:51 AM
permissions and owner of ntfs mounted drive bloodyscript Linux - Newbie 4 11-10-2008 05:24 PM
Rsync mounted NTFS drive phatboyz Linux - Networking 0 11-22-2004 02:31 PM
Can't access mounted NTFS drive Nychold Linux - Hardware 1 06-12-2004 02:45 AM
How to mount (and keep mounted) a NTFS secondary drive? lionofdharma Linux - Hardware 8 04-25-2004 02:05 PM


All times are GMT -5. The time now is 07:16 AM.

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