| | |
External USB Hard Drive Mounts As Root
![]() |
•
•
Join Date: Apr 2005
Posts: 13
Reputation:
Solved Threads: 0
Hello forum
How can I get my USB external hard drive to mount as non root? I am using diskdrake to mount it (me being the owner) and this drive has a NTFS file system. The only way I can view the contents of this hard drive is to log on as root, which is a big inconvience.
This drive's folder in /mnt also has a padlock on it and I get a "permission denied" message when I try to access it.
I can, however, access this external USB hard drive as non root by putting "unmask=0022" in the corresponding line in fstab, but when I reboot, HAL and fstab-sync will auto generate a new line in its place, putting me back where I first started. (More about how this feature works can be found by typing "man fstab-sync" in a terminal window). Unmask=0022 allows ordinary users to view the contents of this drive.
I have another USB external hard drive with a fat32 file system and it mounts as non root with no problem.
I have tried using the chmod command, the chown command, and I have tried creating a custom rule using msec (making me the owner) for this hard drive's folder in the mnt directory but none of this worked.
It is my understanding that I can write a custom fdi rule in the /usr/share/hal/fdi/95userpolicy folder to correct this problem but I don't know how to do that.
Can anybody here please help me mount this USB external hard drive (ntfs) as non root? I am using Mandriva 2006.
Any help would be most appreciated.
Roy S. Smith
How can I get my USB external hard drive to mount as non root? I am using diskdrake to mount it (me being the owner) and this drive has a NTFS file system. The only way I can view the contents of this hard drive is to log on as root, which is a big inconvience.
This drive's folder in /mnt also has a padlock on it and I get a "permission denied" message when I try to access it.
I can, however, access this external USB hard drive as non root by putting "unmask=0022" in the corresponding line in fstab, but when I reboot, HAL and fstab-sync will auto generate a new line in its place, putting me back where I first started. (More about how this feature works can be found by typing "man fstab-sync" in a terminal window). Unmask=0022 allows ordinary users to view the contents of this drive.
I have another USB external hard drive with a fat32 file system and it mounts as non root with no problem.
I have tried using the chmod command, the chown command, and I have tried creating a custom rule using msec (making me the owner) for this hard drive's folder in the mnt directory but none of this worked.
It is my understanding that I can write a custom fdi rule in the /usr/share/hal/fdi/95userpolicy folder to correct this problem but I don't know how to do that.
Can anybody here please help me mount this USB external hard drive (ntfs) as non root? I am using Mandriva 2006.
Any help would be most appreciated.
Roy S. Smith
•
•
Join Date: Apr 2005
Posts: 13
Reputation:
Solved Threads: 0
SUPPLIMENT -
In summary, my main desire is to be able to change the owner of this drive from root to myself. If I could do this, I wouldn't have to insert "unmask=0022 in fstab because it would be readable anyway.
If I can't change ownership of this drive to myself instead of root, then I want to be able to insert "unmask=0022" in fstab so that it will stay after a reboot. HAL keeps changing it back.
In summary, my main desire is to be able to change the owner of this drive from root to myself. If I could do this, I wouldn't have to insert "unmask=0022 in fstab because it would be readable anyway.
If I can't change ownership of this drive to myself instead of root, then I want to be able to insert "unmask=0022" in fstab so that it will stay after a reboot. HAL keeps changing it back.
•
•
Join Date: Apr 2005
Posts: 13
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by rrssss
SUPPLIMENT -
In summary, my main desire is to be able to change the owner of this drive from root to myself. If I could do this, I wouldn't have to insert "unmask=0022 in fstab because it would be readable anyway.
If I can't change ownership of this drive to myself instead of root, then I want to be able to insert "unmask=0022" in fstab so that it will stay after a reboot. HAL keeps changing it back.
I finally fixed my problem and did not have to disable HAL. I simply edited the /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi file by adding a few lines. I added umask=0022, owner, and user, each with its own line. Now HAL will automatically add these three entries in fstab after each reboot. Now the computer boots up with the problem drive already mounted and accessable as non-root.
They don't recommend editing the storage-policy.fdi file because it will be overwritten by any software updates. You are supposed to create your own custom fdi rule and put it in the /usr/share/hal/fdi/95userpolicy directory. But since I don't know how to write my own custom fdi rule, I just edited the storae-policy.fdi file instead.
I hope this will help anybody else who can not access a USB ntfs external hard drive as non root due to HAL kicking out any changes made in fstab.
PS - I had been spelling umask wrong. I was spelling it unmask when it should have been umask.
Roy S. Smith
![]() |
Similar Threads
- Computer won't recognize my external hard drive (Windows NT / 2000 / XP)
- Computer will not boot with external USB hard drive connected (USB Devices and other Peripherals)
- Is an external hard drive worth it? (Storage)
- External Hard Drive Detection Problems (Storage)
Other Threads in the *nix Hardware Configuration Forum
- Previous Thread: Problem with Knoppix(text mode)
- Next Thread: Mozilla and PDA sync
| Thread Tools | Search this Thread |
360 acer amd applications asus audio blind bluray canon cellphone censorship centrino china chips chipset computers console data dell development digitalcamera dvd eeepc environment europe fashion flexibleworking free freedom fsc gadget gaming gps gpu graphics handset hardware hd hddvd history homersimpson homeworking hp ibm intel japan keyboardpc kindle ladies laptop law linux markets microsoft mobile museum netbook news nintendo nokia notebook nvidia nvidiago7600 opensource overclocking patents pc peripherals photography playstation politics printer printing processor quadcore quake replication reviews rim robot satnav screenflicker sgi smartphone sony speed spot startrek stephenfry supercomputing technology tomtom top10 toshiba tv ubuntu usb wireless workstation x-rayspecs






