Hi, my Iomega drive is being mounted as root so I’m unable to write to it as my user. I tried a 4G usb stick and that mounts as my user. Why isn’t the Iomega drive being mounted the same way? Is there a setup I’m missing?
I had an issue like this with an encrypted external USB-HDD. It would decrypt correctly but mount as root with me as user being able to see what was on it but unable to write.
Problem, it was on 11.1 and the responsible software was HAL. If you have this asset, you can solve as follows. You go to start, open a session of “file-manager” with superuser rights (do NOT log in as root into the GUI) and you go into media. There you choose properties of your Iomega and grant to you as user right access. After reboot HAL will remember this. This for KDE 3.5 and 11.1. I have heard that in 11.2 it is not HAL any more managing external devices. In this case somebody else may help you out.
Have fun.
On 1/28/2010 11:56 AM, stakanov was rumored to have said:
>
> I had an issue like this with an encrypted external USB-HDD. It would
> decrypt correctly but mount as root with me as user being able to see
> what was on it but unable to write.
> Problem, it was on 11.1 and the responsible software was HAL. If you
> have this asset, you can solve as follows. You go to start, open a
> session of “file-manager” with superuser rights (do NOT log in as root
> into the GUI) and you go into media. There you choose properties of your
> Iomega and grant to you as user right access. After reboot HAL will
> remember this. This for KDE 3.5 and 11.1. I have heard that in 11.2 it
> is not HAL any more managing external devices. In this case somebody
> else may help you out.
> Have fun.
I’m running 11.2 and KDE 4.3 and I’m not sure what app is responsible. I
fear your correct and it’s not HAL. Maybe I need to fiddle around the
the fstab file. Not sure, so I’m hoping someone will respond with the
solution.
I do not have the definite answer. In 11.2 it is DeviceKit that does the mount and not HAL (as @stakanov correctly explained).
I can also add that using /etc/fstab and HAL (and I may hope also DeviceKit) are mutualy exclusive. To be more precise: When HAL finds that a device has an entry in /etc/fstab, it decides that it should keep its fingers off. I hope DeviceKit does likewise.
This could be a bypass for you. Define the device in /etc/fstab (preferable by using a /dev/disk/by-label/ device file or one of its brothers). Add a *noauto *option to avoid mounting during boot (when the device is not there). You can then, after the device is connected, use (as root, but a appropriate *sudo *configuration can make this available to the enduser) mount.
On 1/28/2010 1:16 PM, hcvv was rumored to have said:
>
> I do not have the definite answer. In 11.2 it is DeviceKit that does the
> mount and not HAL (as @stakanov correctly explained).
>
> I can also add that using -/etc/fstab- and HAL (and I may hope also
> DeviceKit) are mutualy exclusive. To be more precise: When HAL finds
> that a device has an entry in -/etc/fstab-, it decides that it should
> keep its fingers off. I hope DeviceKit does likewise.
>
> This could be a bypass for you. Define the device in -/etc/fstab-
> (preferable by using a -/dev/disk/by-label/- device file or one of its
> brothers). Add a -noauto -option to avoid mounting during boot (when the
> device is not there). You can then, after the device is connected, use
> (as root, but a appropriate -sudo -configuration can make this available
> to the enduser) -mount.-
>
>
Can you provide an example fstab file that shows this? Thanks.
c. edited the /etc/fstab file and added the following line:
/dev/disk/by-id/usb-ST310005_20AS_5080FFFFFFFF-0:0-part1 /media/Iomega_eGo auto noauto,user 0 0
d. then I typed mount -av and I get the following:
% mount -av
mount: proc already mounted on /proc
mount: devpts already mounted on /dev/pts
mount: /dev/disk/by-id/ata-SAMSUNG_HD501LJ_S0MUJ1EP926650-part4 already mounted on /home
mount: /dev/disk/by-id/ata-Maxtor_6Y060L0_Y2T65RWE-part1 already mounted on /data1
nothing was mounted
I didn’t get mounted. I’m guessing because I used noauto. So I removed that and try again and it mounts it… as root! Once I umount the ownership goes back to timothy. If I manually mount I get the same behavior. This is frustrating! For the love of God, is there any way to have this HDD mount so I can write to it as regular user!
What filesystem is on it, FAT? Try adding uid=timothy,gid=users to the options field in that fstab line.
The users options doesn’t mean mount it as a user (which one?). It means that a user can initiate the mount. It should work if you issued the mount as yourself instead of root. But uid= and gid= should force the user id.
If it’s ext4 (or any Linux filesystem), the rules are completely different.
FAT has no ownership info, so the file ownership is faked from a combination of the mounter’s id and any uid= and gid= options.
Linux filesystems contain real-to-goodness ownership information, and so objects in it belong to the owner specified for that object in the filesystem. The uid= and gid= options are not valid, hence the warning. So take the uid= and gid= options out.
If you want the top directory to be owned by you, do a chown timothy:users /media/Iomega_eGo after the mount. You could also create subdirectories and give the ownership to yourself and then you can do what you want underneath. And it will persist.
Sorry I can’t explain the difference between CLI mounting and dolphin, I don’t use dolphin so I don’t know what it is doing.