LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-16-2011, 02:08 PM   #1
ADX
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Slackware64-13.37
Posts: 47

Rep: Reputation: 0
External drive mounts read-only


I'm trying to mount an external western-digital elements drive, here is the fstab:

Code:
/dev/sda6        swap             swap        defaults         0   0
/dev/sda2        /                ext4        defaults         1   1
/dev/sda5        /boot            ext4        defaults         1   2
/dev/sda7        /usr/local       ext4        defaults         1   2
/dev/sda8        /home            ext4        defaults         1   2
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
#/dev/fd0        /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
/dev/sdb1        /mnt/WDE         auto        auto,rw          0   0
Code:
bash-4.1# mount -a
mount: devpts already mounted or /dev/pts busy
mount: warning: /mnt/WDE seems to be mounted read-only.
Also, I found it strange that in KDE (using flux now) a user is allowed to mount a device using the device viewer widget (I think that's what it was called), but when I try to issue the mount command in bash it says root is only allowed to mount!
 
Old 07-16-2011, 02:20 PM   #2
kasl33
Member
 
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
I'm not quite having that issue, but have many times (I'm sure most of us have). In the mean time, until you get a good answer, does it allow write access when you mount as root? My post here is simply to subscribe so that I can get an answer too.
 
Old 07-16-2011, 02:23 PM   #3
ADX
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Slackware64-13.37
Posts: 47

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kasl_33 View Post
I'm not quite having that issue, but have many times (I'm sure most of us have). In the mean time, until you get a good answer, does it allow write access when you mount as root? My post here is simply to subscribe so that I can get an answer too.
It won't allow me to write as root. The strange part is, I had mounted it a few days ago and there were no problems.
 
Old 07-16-2011, 02:28 PM   #4
kasl33
Member
 
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
Quote:
Originally Posted by ADX View Post
It won't allow me to write as root. The strange part is, I had mounted it a few days ago and there were no problems.
Well, let's see what I can help with - or at least start some troubleshooting before somebody with a better idea comes by:

What is the output of this command (as root):
Code:
blkid
I'm guessing that blkid will show that your drive is using NTFS. Because it's a windows file system that supports permissions, it becomes a nightmare - I usually avoid it if I can and use fat32 (If I don't have files over 4 GB in size), or one of the ext* filesystems.

I just noticed you posted /etc/fstab... I didn't see that before :/

Have you tried to chown or chmod the disk? I'm guessing it won't let you, but strange things do happen...

Last edited by kasl33; 07-16-2011 at 02:40 PM.
 
Old 07-16-2011, 02:39 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
If it is a NTFS formatted disk and you set the filesystem descriptor in your fstab to auto chances are very high that it will be mounted with NTFS drivers that are built into the kernel. These drivers currently don't support writing. Mount it with the ntfs-3g drivers and you should be fine.
 
1 members found this post helpful.
Old 07-16-2011, 02:46 PM   #6
ADX
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Slackware64-13.37
Posts: 47

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kasl_33 View Post
Well, let's see what I can help with - or at least start some troubleshooting before somebody with a better idea comes by:

What is the output of this command (as root):
Code:
blkid
That's a nifty little command; here is the output:

Code:
/dev/sda2: UUID="e6fda732-56de-4441-bff6-25005bc459cd" TYPE="ext4" 
/dev/sda5: UUID="308c44f3-0ac0-4ebd-8222-0e17e54923a2" TYPE="ext4" 
/dev/sda6: UUID="d0c3c2ae-6491-49b1-86b9-8b588f0ad7e7" TYPE="swap" 
/dev/sda7: UUID="9c3c4b49-8782-4662-bb00-35410247b154" TYPE="ext4" 
/dev/sda8: UUID="91ea1358-0b55-4675-a3fb-1cd5dad4c8eb" TYPE="ext4" 
/dev/sdb1: LABEL="Elements" UUID="A8DAE653DAE61CF6" TYPE="ntfs"
Quote:
I'm guessing that blkid will show that your drive is using NTFS. Because it's a windows file system that supports permissions, it becomes a nightmare - I usually avoid it if I can and use fat32 (If I don't have files over 4 GB in size), or one of the ext* filesystems.
So NTFS doesn't play nice with ext4? Wish I would of known that ahead of time! As I said earlier, strangely, it was mounting fine a few days ago using KDE...

Quote:
Also, this may seem as a "duh" comment here, but have you tried to chown or chmod the disk? I'm guessing it won't let you, but strange things do happen...
Indeed, still didn't have any effect.
 
Old 07-16-2011, 02:49 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
Quote:
Originally Posted by ADX View Post
So NTFS doesn't play nice with ext4?
They are totally unrelated, there aren't any problems with NTFS and ext4.
 
Old 07-16-2011, 02:51 PM   #8
ADX
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Slackware64-13.37
Posts: 47

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
If it is a NTFS formatted disk and you set the filesystem descriptor in your fstab to auto chances are very high that it will be mounted with NTFS drivers that are built into the kernel. These drivers currently don't support writing. Mount it with the ntfs-3g drivers and you should be fine.
That did it! W00t!

Thanks
 
Old 07-16-2011, 02:52 PM   #9
kasl33
Member
 
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
blkid is nifty indeed.

NTFS and EXT4 are both different filesystems. They don't relate to eachother and you can read from both without a problem.

I suppose the ntfs-3g idea above may help. You may have to actually install the ntfs-3g package to make that work.
 
  


Reply


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
USB Drive Mounts Read Only carlosinfl Linux - Hardware 4 02-28-2011 05:56 PM
When mounting an IOMega e-go USB external drive, it mounts read-only jonnas Linux - Hardware 2 09-09-2010 02:15 PM
[SOLVED] external drive mounts as 'read-only'? Lucid Lynx Nizzok Linux - Newbie 8 05-22-2010 01:34 AM
uSB External Hard Drive Mounts Very Slowly rahulthewall3000 Linux - Hardware 0 01-20-2008 06:37 AM
USB flash drive (Pen drive) mounts read only prabhatsoni Linux - Hardware 24 07-02-2007 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration