PDA

View Full Version : External Drive Permissions


rx93v2
7th August 2011, 10:24 AM
Hey guys, I've got a problem I just can't figure out. I've got two external drives that are using ext4 that for whatever reason, I just can't seem to write too. I've changed the permissions on the drives using chmod so ther permissions are "drwxrwxrwx". I can even right click within the drive and click "Create New Folder" but then it tells me, "Error while copying to "sdc1". The destination is read-only." :confused: Ummm....I thought the destination permissions were setup so anyone can read/write to the disk? I haven't been using linux that long and have only recently started to feel comfortable to move over all of my stuff to Fedora. Any help would be much appreciated. :D

MysticalDice
7th August 2011, 10:48 AM
are you able to format the drives to ext3 format?

Gareth Jones
7th August 2011, 06:48 PM

With the drive(s) plugged in and mounted, check the output of the following commands:

mount | grep /media/WHERE_EVER_THE_DISC_IS_MOUNTED
ls -dl /media/WHERE_EVER_THE_DISC_IS_MOUNTED
lsattr -d /media/WHERE_EVER_THE_DISC_IS_MOUNTED

Basically you should check the file system is indeed ext4, that it's mounted read-write, that the permissions and ownership are as you want them, and that there's no other odd options or attributes causing problems.

If that doesn't help, the next thing to check is the SELinux and ACL attributes, but I don't know much about those so someone else will have to give you the commands...

Gareth

rx93v2
7th August 2011, 08:16 PM
are you able to format the drives to ext3 format?

Yea, I can format them to ext3.

With the drive(s) plugged in and mounted, check the output of the following commands:

mount | grep /media/WHERE_EVER_THE_DISC_IS_MOUNTED
ls -dl /media/WHERE_EVER_THE_DISC_IS_MOUNTED
lsattr -d /media/WHERE_EVER_THE_DISC_IS_MOUNTED

Basically you should check the file system is indeed ext4, that it's mounted read-write, that the permissions and ownership are as you want them, and that there's no other odd options or attributes causing problems.

If that doesn't help, the next thing to check is the SELinux and ACL attributes, but I don't know much about those so someone else will have to give you the commands...

Gareth

So the output from these commands are:

[root@Arch media]# mount | grep /media/sdc1
/dev/sdc1 on /media/sdc1 type ext4 (rw,relatime,seclabel,user_xattr,acl,barrier=1,dat a=ordered)
[root@Arch media]# ls -dl /media/sdc1
drwxrwxrwx. 2 root externalMedia 4096 Aug 7 03:45 /media/sdc1
[root@Arch media]# lsattr -d /media/sdc1
--------------- /media/sdc1

I'm guessing it might have something to do with the output from the lsattr -d command.

Gareth Jones
7th August 2011, 11:54 PM
So the output from these commands are:

[root@Arch media]# mount | grep /media/sdc1
/dev/sdc1 on /media/sdc1 type ext4 (rw,relatime,seclabel,user_xattr,acl,barrier=1,dat a=ordered)
[root@Arch media]# ls -dl /media/sdc1
drwxrwxrwx. 2 root externalMedia 4096 Aug 7 03:45 /media/sdc1
[root@Arch media]# lsattr -d /media/sdc1
--------------- /media/sdc1

I'm guessing it might have something to do with the output from the lsattr -d command.

No, those all look fine.

I'm afraid I don't know how to check the ACL settings, but that'd be the next thing I'd check. Also recheck the "mount | grep" output after the "Error while copying..." message, and check /var/log/messages for I/O errors.

Gareth

glennzo
8th August 2011, 12:11 AM
Would a remount be necessary in this instance?

rx93v2
8th August 2011, 12:40 AM
Well, it looks like I'm off to learn more about the ACL settings. Not something I know a lot about so I'm sure to pick up a few things :D