Andrei Borzenkov írta:
09.10.2015 13:01, Istvan Gabor пишет:
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.
One problem is how to detect "USB flash disks".
The affected disks are not USB flash disks. They are non-removable SATA drives.
Udisks2 dropped the notion of "removable" drives due to rather vague definition of them. Instead it now provides hints, one hint being
Can we say it's a regression? Even systems 10 years ago could clearly make a difference between a USB flash disk and an IDE/ATA disk. This never was not a problem in KDE3-openSUSE.
HintAuto(Mount). I checked on TW with XFCE (the one I have currently available) and removable drives manager mounts partition of new loop device even though HintAuto is correctly set to "false". Disabling "Mount removable drives when hot-plugged" stops this auto mount.
I was about to suggest setting HintAuto to false but this example shows that it really depends on your desktop environment. Check what value hint has now (udisksctl info -b /dev/sdXN); if it is already false, this is KDE issue and I did not use it since several years so cannot help here. If HintAuto is set to true, it becomes UDisks2 issue and we revisit it.
df -h Filesystem Size Used Avail Use% Mounted on ... /dev/sda1 37G 35G 512M 99% /disk/1 /dev/sda2 37G 35G 86M 100% /disk/2 /dev/sdb3 7.3G 6.6G 341M 96% /disk/3
# udisksctl info -b /dev/sda1 ... HintAuto: false I have those partitions in fstab with noauto options and they're still mounted. Very bad. Should I write to opensuse-kde list? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org