You are not logged in.

#1 2008-03-13 20:29:04

paulfxh
Member
Registered: 2008-03-11
Posts: 33

[Solved] Unable to change ownership of folder

I'm running ArchLinux on a desktop but I have my music files on an external HDD.
So, I added a line to /etc/fstab to enable the music partition on the external drive to be mounted.
However, the folder where it is mounted was created by root so I can't access it (as user) without changing the ownership.
So, I did

# chown paul:users /mnt/music

which gives me the message:

chown: changing ownership of `/mnt/music': Read-only file system

However, ownership remains as root and I'm still unable to acees this folder.
What's going on here?

Last edited by paulfxh (2008-03-13 21:31:03)

Offline

#2 2008-03-13 20:42:17

danielsoft
Member
From: Czech Republic
Registered: 2008-02-16
Posts: 102

Re: [Solved] Unable to change ownership of folder

what filesystem is the external drive using?


may the Source be with you

Offline

#3 2008-03-13 20:47:32

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: [Solved] Unable to change ownership of folder

are you sure the fs is mounted in rw mode, the error message shouldn't be wrong when it says it's a rad-only(ro) fs

Offline

#4 2008-03-13 21:05:53

paulfxh
Member
Registered: 2008-03-11
Posts: 33

Re: [Solved] Unable to change ownership of folder

danielsoft wrote:

what filesystem is the external drive using?

It's ntfs.
But, I can access a similar fs on an external drive from Ubuntu without any problems (and that's without using ntfs-3g).

Offline

#5 2008-03-13 21:07:06

paulfxh
Member
Registered: 2008-03-11
Posts: 33

Re: [Solved] Unable to change ownership of folder

kumico wrote:

are you sure the fs is mounted in rw mode, the error message shouldn't be wrong when it says it's a rad-only(ro) fs

But, I'm not worried about it being ro as I only want to "listen" to the music and not change any of the files.

Offline

#6 2008-03-13 21:10:53

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: [Solved] Unable to change ownership of folder

paulfxh wrote:
kumico wrote:

are you sure the fs is mounted in rw mode, the error message shouldn't be wrong when it says it's a rad-only(ro) fs

But, I'm not worried about it being ro as I only want to "listen" to the music and not change any of the files.

You will only be able to change the ownership if you unmount and remount the filesystem read-write wink

(then after changing ownership you can unmount and remount it read-only again, if you so wish)

Last edited by dyscoria (2008-03-13 21:11:35)


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#7 2008-03-13 21:12:01

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: [Solved] Unable to change ownership of folder

you CANNOT, modify the fs in ro mode. so you have to mount it in rw, then change the permission.
`mount -o rw,remount /mnt/music`
`change perms`
`mount -o ro,remount /mnt/music`

should do it.

Offline

#8 2008-03-13 21:30:14

paulfxh
Member
Registered: 2008-03-11
Posts: 33

Re: [Solved] Unable to change ownership of folder

OK, that's what I was missing -- it's got to be rw.
Well, I've got it working now.:D
Thanks to everybody for your help.

Offline

Board footer

Powered by FluxBB