You are not logged in.
Pages: 1
INSTALLING NTFS-3G SOLVED THIS
I'm having trouble setting the permissions on my usb hard disk. Right now I can only access it as root, I'm unsure how to change it.
Right now it looks like this.
dr-x------ 1 root root 8.0K 2009-08-25 16:21 mnt
running chmod gives me the following message
[root@spacecapsule koopdi]# chmod 644 mnt
chmod: changing permissions of `mnt': Read-only file system
Last edited by atomicpookavirus (2010-01-13 07:16:21)
Offline
Make sure your user is in the storage group and have a look at:
http://wiki.archlinux.org/index.php/USB … ormal_user
Offline
My user account, koopdi, is a member of the storage group. I am able to mount the drive as root. What's troubling me is that I am unable to read the drive as user koopdi. This means doing silly things like running mplayer as root just to watch a video. Could my problem have anything to do with the drive being formatted ntfs? I am able to read from usb flash drives just fine. I'm a bit troubled and at a loss that running chmod 644 failed to change the permissions. This is weird.
Edit:
Is it possible that my hdd isn't being added to the storage group?
Last edited by atomicpookavirus (2010-01-10 07:17:55)
Offline
Udev or hal or whatever it is which is actually doing the mounting is responsible for assigning permissions.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Right now I'm mounting the drive explicitly using the mount command. How do I tell if I'm using udev or hal?
Offline
You aren't using either udev or hal unless it's mounted automatically by your DE or file manager. If you get an error when you try to do it, take a look at http://wiki.archlinux.org/index.php/HAL#Mounting_fails
Edit: you need to comment the line referring to that USB disk in fstab (if you had one) for automounting to work
Last edited by Surgat_ (2010-01-10 12:54:43)
Offline
Since I'm mounting the drive by issuing command {sudo mount /dev/sdb1 ~/mnt} can I infer that mount is responsible for assigning permissions to the drive? If so, why can I not change these permissions with chmod?
Offline
What type of filesystem is on the drive? If it's NTFS, for example, you need to install ntfs-3g to mount it read-write.
Offline
Do you have a line for it in /etc/fstab? If not, does it help adding a suitable line containing user/users/group among (man mount for details)?
I need a sorted list of all random numbers, so that I can retrieve a suitable one later with a binary search instead of having to iterate through the generation process every time.
Offline
Pages: 1