Bug 483140

Summary: Option "Do not mount partition" in yast2 Expert Partitioner is not working
Product: [openSUSE] openSUSE 11.1 Reporter: Arun Kalyanasundaram <akalyanasundaram>
Component: YaST2Assignee: Katarina Machalkova <kmachalkova>
Status: RESOLVED FEATURE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: aschnell
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: fate #305150
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Tar of the /var/log/YAST2 directory
screnshots of the edit page

Description Arun Kalyanasundaram 2009-03-07 04:52:51 UTC
The option "Do not mount partition" in yast2 Expert Partitioner gets reset on reboot.

Steps to Reproduce:
1. Open "yast2 disk"
2. Select any partition and click on Edit.
3. Select the option "Do not mount partition" and click Finish

Observed results:
On the next reboot the option is set to "Mount partition" again and the partition gets mounted to default location "/media/disk"

Expected Results:
The settings for the partition should be retained.

Note: I was able to reproduce this with a FAT32 partition, not sure if this happens even with other file systems.
Comment 1 Chuan Ye Han 2009-03-10 06:02:31 UTC
Lukas, could you please help to have a look at this? Feel free to reassign it whenever necessary. Thank you.
Comment 2 Katarina Machalkova 2009-03-11 14:58:43 UTC
Which partition (device type) is this? Is it some kind of USB stick or other mass storage device? (as those get usually mounted to /media/disk) Could it be there is an UI automounter involved?

Anyway, please try to reproduce the bug and attach YaST logs
Comment 3 Arun Kalyanasundaram 2009-03-14 08:16:01 UTC
(In reply to comment #2)
> Which partition (device type) is this? Is it some kind of USB stick or other
> mass storage device? (as those get usually mounted to /media/disk) Could it be
> there is an UI automounter involved?

This is a windows partion, with fat32 partion and it is not any external drive or usb
> 
> Anyway, please try to reproduce the bug and attach YaST logs

I have reproduced it, and will attach screen shots and logs. Thanks.
Comment 4 Arun Kalyanasundaram 2009-03-14 08:17:21 UTC
Created attachment 279589 [details]
Tar of the /var/log/YAST2 directory
Comment 5 Arun Kalyanasundaram 2009-03-14 08:19:17 UTC
Created attachment 279590 [details]
screnshots of the edit page

The archive contains 3 images,
1.  img1 - before i changed the setting.
2. img2 - after i changed the setting.
3. img3 - after i clicked apply and rebooted.
Comment 6 Arvin Schnell 2009-03-23 17:50:21 UTC
Looks indeed as if the partition is mounted my some automount mechanism.
It's not included in /etc/fstab. The mount options include "flush" which
is sometimes added by automounters.

Indicating automounted filesystems in YaST is already handled in fate
#305150.
Comment 7 Arun Kalyanasundaram 2009-03-29 06:34:29 UTC
How can i disable the automount mechanism from mounting my drives automatically? Is this some setting in yast?

It looks like the implementation of fate #305150 should be good enough to handle this issue. Hence please resolve this bug appropriately.
Comment 8 Katarina Machalkova 2009-03-30 08:49:32 UTC
> How can i disable the automount mechanism from mounting my drives
> automatically? Is this some setting in yast?

There is certainly some tool to adjust automounting preferences in your desktop (GNOME?), but unfortunately, I know nothing about it :(

However, you can achieve the same in YaST partitioner as well. In edit partition dialog, set a fixed mount point for the partition e.g. /media/disk, click 'Fstab options' button and in a dialog that pops up, select 'Do not mount at system start-up'. 

This will create an entry in fstab for the partition and add 'noauto' to the mounting options. i.e. the partition will be mounted only at user's request, not automatically on system boot. 

Otherwise, resolving as feature