Bug 3066 - automatic mount of partitions not possible
: automatic mount of partitions not possible
Status: RESOLVED WORKSFORME
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: x86_64 Linux
: Normal normal
: ---
Assigned To: Andrey Bondrov
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-02 22:12 MSK by Giorgio
Modified: 2016-01-28 17:22 MSK (History)
2 users (show)

See Also:
RPM Package:
ISO-related:
Bad POT generating:
Upstream:


Attachments
fstab used to test automounter (470 bytes, application/octet-stream)
2013-11-10 04:47 MSK, Andrey Bondrov
Details
kded_device_automounterrc used to test automounter (1.92 KB, application/octet-stream)
2013-11-10 04:50 MSK, Andrey Bondrov
Details
my kded_device_automounterrc (4.24 KB, application/octet-stream)
2013-11-10 15:24 MSK, Giorgio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giorgio 2013-11-02 22:12:14 MSK
Description of problem:after updating to KDE 4.11.2 mount of Windows partitions don't works


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. open Configure your Desktop → Hardware → Removable devices
2. Enable mounting of removable media → check desired partitions
3. reboot
4. desired partitions aren't mounted, they can be mounted manually
Comment 1 Aleksandr Kazantcev 2013-11-02 22:20:55 MSK
Use ntfs-config instead. But this is will may huge problem with static mounted ntfs partiton on fstab, especially from Win8.

Are you see Windows partitions in Dolphin? They will mount 'on request' mode only, not constant.
Comment 2 Giorgio 2013-11-03 13:00:49 MSK
Before updating to KDE 4.11 Windows 7 partitions were mounted automatically using the way described. After updating to 4.11 seems that this settings has no effect.


(In reply to comment #1)
> Use ntfs-config instead. But this is will may huge problem with static
> mounted ntfs partiton on fstab, especially from Win8.
Already installed ntfs-config 1.1-4-rosa2012.1 64 bit, it has no effect. More: now opening ntfs-config GUI I can't uncheck the two ntfs partition shown, it seems blocked.

And I want mount automatically also two FAT32 partitions. For this ntfs-config is useless.

> 
> Are you see Windows partitions in Dolphin? They will mount 'on request' mode
> only, not constant.
I see partitions and I can mount manually but I have to do this every boot. I use them as shared partitions in Virtualbox, if I forgot to mount before starting VBox I have to close and reopen VBox. Boring and time consuming!
Comment 3 Aleksandr Kazantcev 2013-11-03 22:39:00 MSK
Please first check you Windows partitions via scandisk - may be they blocked. Also try correct poweroff Windows.

Than try remove all ntfs/fat32 records from /etc/fstab and readd it again.
Comment 4 Giorgio 2013-11-10 00:44:47 MSK
(In reply to comment #3)
> Please first check you Windows partitions via scandisk - may be they
> blocked. Also try correct poweroff Windows.
I run scandisk: no errors detected.
I poweroff Windows in the right way (I do it every time).


> 
> Than try remove all ntfs/fat32 records from /etc/fstab and readd it again.

I removed all ntfs and fat 32 records. In Dolphin I still see all ntfs/fat32 partitions. They are all unmounted and can be mounted manually.

Could be interesting: fstab has been edited on november 2, I think the same day I updated to KDE 4-11.
Comment 5 Andrey Bondrov 2013-11-10 04:20:33 MSK
(In reply to comment #4)
> Could be interesting: fstab has been edited on november 2, I think the same
> day I updated to KDE 4-11.

Can you please attach your 
1. fstab
2. $HOME/.kde4/share/config/kded_device_automounterrc

Meanwhile I see only one commit to automounter in KDE 4.11: http://quickgit.kde.org/?p=kde-runtime.git&a=commitdiff&h=39daad79cda8a339a0fce4763655ea271643b3ea

I'll try to reproduce this issue and if reverting that commit helps, I'll revert it.
Comment 6 Andrey Bondrov 2013-11-10 04:41:10 MSK
Meanwhile I tried to remove one of my NTFS partitions from fstab and use KDE automounter. 

No issues. The only difference is mount options.

======= old fstab =======
# Entry for /dev/sdb1 :
UUID=4A60D20A60D1FC9F /media/work ntfs-3g defaults 0 0
# Entry for /dev/sdc1 :
UUID=DCBCD94CBCD921B6 /media/music ntfs-3g defaults 0 0
======= old fstab =======

======= mount output with automounter for sdc1 =======
/dev/sdb1 on /media/work type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sdc1 on /media/Music type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
======= mount output with automounter for sdc1 =======
Comment 7 Andrey Bondrov 2013-11-10 04:47:38 MSK
Created attachment 2207 [details]
fstab used to test automounter
Comment 8 Andrey Bondrov 2013-11-10 04:50:07 MSK
Created attachment 2208 [details]
kded_device_automounterrc used to test automounter
Comment 9 Andrey Bondrov 2013-11-10 04:56:27 MSK
But I use KDE 4.11.3 that will be pushed to Main/Updated very soon. Until it happens, you can try to update to 4.11.3 from KDE4 backports repository:

http://abf-downloads.rosalinux.ru/kde4_backports_personal/repository/rosa2012.1/
Comment 10 Giorgio 2013-11-10 13:29:57 MSK
(In reply to comment #5)
> (In reply to comment #4)
> Can you please attach your 
> 1. fstab
> 2. $HOME/.kde4/share/config/kded_device_automounterrc

==== this is my fstab ==============================
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

#Entry for /dev/sda6 :
UUID=55e729f8-f426-4411-a681-dd2d67a41ad0	/	ext4	defaults	1	1
#Entry for /dev/sda1 :
UUID=477A077619A89005	/media/Programmi_Win	ntfs-3g	defaults,locale=it_IT.UTF-8	0	0
#Entry for /dev/sda2 :
UUID=727E8A387E89F4DF	/media/DATI	ntfs-3g	defaults,nodev,nosuid,locale=it_IT.UTF-8	0	0
#Entry for /dev/sda8 :
UUID=09965486-fe00-48ec-a8e3-def33597f244	/home	ext4	defaults	1	2
none	/proc	proc	defaults	0	0
#Entry for /dev/sda7 :
UUID=c4dcbfcd-a62e-4515-aa8b-46c5ba08927f	swap	swap	defaults	0	0

==== this is my fstab ==============================
As you can see no fat32 records. 
Fat32 partitions are shown in Dolphin and can be mounted manually.


==== I edited fstab removing all ntfs/fat32 ==========
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

#Entry for /dev/sda6 :
UUID=55e729f8-f426-4411-a681-dd2d67a41ad0	/	ext4	defaults	1	1
#Entry for /dev/sda1 :

#Entry for /dev/sda2 :

#Entry for /dev/sda8 :
UUID=09965486-fe00-48ec-a8e3-def33597f244	/home	ext4	defaults	1	2
none	/proc	proc	defaults	0	0
#Entry for /dev/sda7 :
UUID=c4dcbfcd-a62e-4515-aa8b-46c5ba08927f	swap	swap	defaults	0	0

==== I edited fstab removing all ntfs/fat32 ==========

No big differences: all partitions (ntfs and fat32) are still shown and can be mounted manually. 

In both attempt automount in Configure your Desktop is enabled.
Comment 11 Andrey Bondrov 2013-11-10 13:43:01 MSK
(In reply to comment #10)
> In both attempt automount in Configure your Desktop is enabled.

Please attach your kded_device_automounterrc.
Comment 12 Giorgio 2013-11-10 15:24:11 MSK
Created attachment 2209 [details]
my kded_device_automounterrc
Comment 13 Andrey Bondrov 2013-11-10 15:57:28 MSK
(In reply to comment #12)
> Created attachment 2209 [details]
> my kded_device_automounterrc

Can you please change ForceLoginAutomount to true for sda1 and see if it helps? I see it's set NOT to be auto-mounted:

===== kded_device_automounterrc ===
[Devices][/org/freedesktop/UDisks/devices/sda1]
EverMounted=true
ForceAttachAutomount=false
ForceLoginAutomount=false
Icon=drive-harddisk
LastNameSeen=Programmi_Win
LastSeenMounted=false
===== kded_device_automounterrc ===

If it doesn't help, can you please try to create backup copy of your kded_device_automounterrc, then remove it from $HOME/.kde4/share/config/ and then configure auto mounting via GUI again?
Comment 14 Giorgio 2014-02-01 21:14:42 MSK
Follwing your hints I solved.

1) removed kded_device_automounterrc 
2) checked GUI: no device shown
2) reboot, now in GUI I can see again all partitions
3) in GUI I set "automatically mounted at login" desired partitions
4) reboot then desired partitions are mounted 

Thanks
Comment 15 Denis Silakov 2016-01-28 17:22:50 MSK
Let's hope this was a transient failure.