Ian írta:
On Fri, 9 Oct 2015 12:01:29 Istvan Gabor wrote:
Andrei Borzenkov írta:
On Thu, Oct 8, 2015 at 12:59 PM, Istvan Gabor wrote:
Hello:
This is in openSUSE 13.2 with KDE4 login session:
I wanted do an fsck of the root partition of the other OS (/dev/sda2) installed on the same hard disk and found that the partition is mounted in /run/media/user. fstab does not define the given partition for mounting. How can it still be mounted? This automatic mounting of foreign partitions can cause file system damage therefore I find it unacceptable. Especially if the other partition is a member a raid group it can lead to degradation of the raid array. What setting enables and which program mounts automatically file systems not mentioned in fstab?> The same program that mounts your USB stick.
How can this be prevented system wide?
It depends on whether you want to still automount USB drives or not.
Thanks Andrei.
I want the behavior I got used to > 10 years of openSUSE experience. USB flashdisks should be recognized and mounted but internal hard drives should not be touched. Only file systems mentioned in /etc/fstab should be mounted according to fstab rules.
Thanks,
Istvan
Try running KDE's System Settings and click on the Removable Devices icon. As well as global settings for removable media, you can change settings for specific devices in there. That should allow you to get the behaviour you want.
Thanks Ian. Sorry for the late answer but I didn't work on that computer in the last days. 1. In the "device notifier" settings under removable devices none of the drives are set to "automount on login" or "automount on attach". Still some (and only some) of the partitions are mounted. 2. Login shell should not be able to override basic or system wide setting. These partitions are not set to be mounted, KDE4 should respect this. If I login on a terminal window, eg vt2, or login to KDE3 session only root fs is mounted: ~> df -h Filesystem Size Used Avail Use% Mounted on /dev/sdb1 29G 9.8G 18G 36% / devtmpfs 997M 0 997M 0% /dev tmpfs 1003M 76K 1003M 1% /dev/shm tmpfs 1003M 2.1M 1001M 1% /run tmpfs 1003M 0 1003M 0% /sys/fs/cgroup If I login to KDE4 session other partitons are mounted too: ~> df -h Filesystem Size Used Avail Use% Mounted on /dev/sdb1 29G 9.8G 18G 36% / devtmpfs 997M 0 997M 0% /dev tmpfs 1003M 76K 1003M 1% /dev/shm tmpfs 1003M 2.1M 1001M 1% /run tmpfs 1003M 0 1003M 0% /sys/fs/cgroup /dev/sdb3 7.3G 6.6G 341M 96% /run/media/user/a6e17ce4-1556-4028-aa01-41927b903771 /dev/sda1 37G 35G 512M 99% /run/media/user/6801bf85-aa88-4c7f-a39c-8fe6303fba72 /dev/sda2 37G 35G 86M 100% /run/media/user/558f18ff-36c8-4b0b-b9ff-ab326b52d276 Where and how KDE4 sets to mount these partitions (/dev/sda1, /dev/sda2, /dev/sdb3)? Why only these 3 other partitons are mounted and not others (eg /dev/sda6, /dev/sdb7)? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org