[opensuse] oS 13.2 wt KDE4: foreign file systems are mounted in /var/media/user after login
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? How can this be prevented system wide? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Oct 8, 2015 at 12:59 PM, Istvan Gabor <suseuser04@freemail.hu> 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. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrei Borzenkov írta:
On Thu, Oct 8, 2015 at 12:59 PM, Istvan Gabor <suseuser04@freemail.hu> 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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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 <suseuser04@freemail.hu> 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. Cheers, Ian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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
On Wed, 14 Oct 2015 18:30:48 Istvan Gabor wrote:
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
Hi Istvan, That does seem odd - I've don't have any other file systems on my internal drive these days so can't say for sure that it does what you want, however I have been able to use those settings to configure auto-mounting on my machine. I've set certain USB drives to auto-mount when they are plugged in and the others to only mount when I click on them in Dolphin (or choose open with File Manager in the device notifier). I If you right-click the device notifier and choose Device Notifier Settings, there is a setting there that's not in the System Settings - you can choose one of: - Removable devices only - Non-removable devices only - All devices Mine is set to Removable devices only, is yours? Cheers, Ian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015-10-09 12:01, Istvan Gabor wrote:
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.
Well... the distinction between external/internal disks is not that simple, as all devices appear as /dev/sdX What I do is disable automatic mount of any device in the desktop. If possible. Otherwise, add an entry in fstab for those internal devices you don't want mounted, set with option "noauto". I'm unsure if this will still try to fsck them on boot, better set the sixth field to zero in this case. If you never will mount them, use type "none". - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlYXuQIACgkQja8UbcUWM1yONAD/XVgFVt1JqOen3xos2vA+lbsF kj4Ry2Mk5YP+kXXpL60A/0Gd4G8HgP1lEPDbGlZ5JfPB8vwSWwlo+UtVja6m3XOa =1cVO -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
"Carlos E. R." írta:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2015-10-09 12:01, Istvan Gabor wrote:
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.
Well... the distinction between external/internal disks is not that simple, as all devices appear as /dev/sdX
What I do is disable automatic mount of any device in the desktop. If possible.
Otherwise, add an entry in fstab for those internal devices you don't want mounted, set with option "noauto". I'm unsure if this will still try to fsck them on boot, better set the sixth field to zero in this case. If you never will mount them, use type "none".
I added the following lines to fstab: UUID=6801bf85-aa88-4c7f-a39c-8fe6303fba72 /disk/1 ext3 noauto 0 0 UUID=558f18ff-36c8-4b0b-b9ff-ab326b52d276 /disk/2 ext3 noauto 0 0 UUID=a6e17ce4-1556-4028-aa01-41927b903771 /disk/3 ext3 noauto 0 0 Now the disks are mounted under /disk instead of /run/media/user, but still 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 /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
The fstab entry and noauto options didn't help. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
14.10.2015 21:21, Carlos E. R. пишет:
On 2015-10-14 18:34, Istvan Gabor wrote:
"Carlos E. R." írta:
...
The fstab entry and noauto options didn't help.
It seems a bug or bad behaviour in KDE4. I use XFCE most of the time.
I observed something similar in XFCE when it mounts /dev/loop that I create. If anything, that is the last thing I would call "removable suitable for automount". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
09.10.2015 13:01, Istvan Gabor пишет:
Andrei Borzenkov írta:
On Thu, Oct 8, 2015 at 12:59 PM, Istvan Gabor <suseuser04@freemail.hu> 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". Udisks2 dropped the notion of "removable" drives due to rather vague definition of them. Instead it now provides hints, one hint being 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.
Thanks,
Istvan
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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
14.10.2015 19:45, Istvan Gabor пишет:
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?
I would try booting in run level 3 and different DE before. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 10/9/2015 3:01 AM, Istvan Gabor wrote:
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, Can't you add an fstab entry fr that partition with noauto or what ever to make it a system drive which is not mounted by default? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Andrei Borzenkov
-
Carlos E. R.
-
Ian
-
Istvan Gabor
-
John M Andersen