Anton Aylward írta:
On 03/10/2016 02:42 AM, Linda Walsh wrote:
Istvan Gabor wrote:
Hello:
This occurs in openSUSE 13.1 with KDE3 as default desktop. I have a Samsung external USB hard drive. When I plug it in it becomes mounted:
df -h /dev/sdd1 932G 270G 662G 29% /media/SAMSUNG
ls -l /dev/sdd1 brw-rw---- 1 root disk 8, 49 Mar 9 23:12 /dev/sdd1
The desktop user is member of group disk. === That only lets the user write directly to the device, doesn't control mount privs.
Your /etc/fstab needs to have an entry for the mount with "user" in the options to allow users to mount/umount it.
NOT!
There's something wrong with a setup here but I can't say what; maybe there's been some specific DM setting for the device with that name.
When i insert a USB stick in the front of my computer and am logged in under KDE4 I get a popup from the "Device notifier" in my bottom panel's System Tray offering option to do with mounting/opening the USB. it get mounted under /run, the tmpfs. Here are the entries from mnttab:
/dev/sdb1 on /run/media/anton/c73c2779-c12a-48ef-ae0d-7b2017d848dc type btrfs (rw,nosuid,nodev,relatime,space_cache,subvolid=5,subvol=/,uhelper=udisks2) /dev/sdb1 on /var/run/media/anton/c73c2779-c12a-48ef-ae0d-7b2017d848dc type btrfs (rw,nosuid,nodev,relatime,space_cache,subvolid=5,subvol=/)
The stick in question is one that I put a bootable system on. hence the BtrFS. That's beside the point.
This is dynamically generated by rules for udisk. (Aks "more systemd nonsense") There is NO NEED FOR AN ENTRY IN /etc/fstab !!
Of course those rules determine not only the 'where' but also the permissions :-)
The action of the Device Notfier can, under KDE4, by overridden. There's a option under Device Notifier Settings -> Removable Devices to alter all this behaviour, as well as to have specific actions based on the "name" of the USB device attached, action if a device previously mounted is seen again and more.
But all this is dealt with completely without the need for an entry in /etc/fstab.
The difference here is that Istvan is running KDE3 under 13.1 and I'm running KDE4 under 13.1.
Thank you all. I checked the permissions of the mounted directories and they are as follows: For the flash disk:
ls -l /media/ total 16 drwx------ 46 user users 16384 Jan 1 1970 KINGSTON
For the external HD: ls -l /media/ total 8 drwx------ 1 user users 8192 Jan 11 01:57 SAMSUNG There is no difference in owner and permissions. But there are differences in the dates probably because of the file systems are different. Can the different file systems cause the problem? The file system reported by df -T are: /dev/sdd1 vfat 7673968 6987632 686336 92% /media/KINGSTON /dev/sdd1 fuseblk 976760000 282945316 693814684 29% /media/SAMSUNG The devices are mounted by KDE media mounter/manager (KDE daemon is the title of the popup window shown after plugging in the device). Immediately after mounting I try unmount the devices but if fails in case of the external hard drive (SAMSUNG). What I don't understand why I can unmount the flash disk and can not unmount the HD. Felix, the kdebase I have is not the hal-enabled version. This problem I have now is different from that safely remove is not working. My problem applies to unmounting the device in a terminal using umount command. Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org