[Bug 220206] New: DVD mounting problems in YaST
https://bugzilla.novell.com/show_bug.cgi?id=220206 Summary: DVD mounting problems in YaST Product: openSUSE 10.2 Version: Beta 2 Platform: i686 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Update Problems AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: sboyce@blueyonder.co.uk QAContact: jsrain@novell.com Original 10.1Beta1 bug ID #216452 also refers, but that got rather confusing, so for a clearer picture I've opened this new bug. YOU fails mounting the DVD which is already mounted as /media/dvd. ------------------------------------------------------------------ Insert '2006-1028-144535 CD 1' URL cd:///?devices=/dev/hdc Failed to mount cd:///?devices=/dev/hdc on: Mounting media failed ------------------------------------------------------------------ YaST Installation Source after that complains that another process is accessing the RPM database. Correct, though the YOU window is closed, the process is still active and restarting YaST makes no difference. 20071 ? S 0:01 \_ kdesu -u root -c /sbin/yast2 20073 pts/27 Ss+ 0:00 \_ /usr/bin/sudo -u root /opt/kde3/bin/kdesu_stub - 20077 pts/29 Ss+ 0:00 \_ /opt/kde3/bin/kdesu_stub - 20080 ? Ss 0:00 \_ /bin/bash /sbin/yast2 20099 ? S 0:00 \_ /usr/lib/YaST2/bin/y2controlcenter 19887 ? S 0:00 /bin/bash /sbin/yast2 online_update 19908 ? Sl 0:07 \_ /usr/lib/YaST2/bin/y2base online_update qt # kill -9 19887 19908 Now YaST Installation Source is back to the DVD mounting problem. # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 193384492 51151884 142232608 27% / udev 451860 140 451720 1% /dev /dev/sdb1 120204 0 120204 0% /media/disk /dev/hdb1 152612744 125883076 26729668 83% /data1 /dev/hdc 4177608 4177608 0 100% /media/dvd # o /etc/fstab /dev/hda1 / reiserfs acl,user_xattr 1 1 /dev/hda2 swap swap defaults 0 0 /dev/hdb2 swap swap defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 /dev/hdc /media/dvd auto noauto,user,sync 0 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #1 from sboyce@blueyonder.co.uk 2006-11-11 13:53 MST ------- Created an attachment (id=104806) --> (https://bugzilla.novell.com/attachment.cgi?id=104806&action=view) yast2 logs YaST2 logs generated with save_y2logs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |yast2-maintainers@suse.de |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 sh@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |mt@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #2 from sboyce@blueyonder.co.uk 2006-11-15 05:51 MST ------- I'm seeing the same problem on my x86_64 laptop with 10.1 installed. The difference there is that I installed from a CD-RW/DVD-ROM which has since been changed to a DVD-RW drive and I seem to remember installing additional packages from CD on the laptop since the 10.1 fresh install was done, now I have a problem. I just played around with umask to see if the default 0022 was the reason why zypp wasn't able to mkdir under either /var/adm/mount or /var/tmp as seen in y2log on both boxen - just for something to try as yast2 has root privileges. I had no mounting problems during installs. No hardware has been changed on this x86 box probably since before 10.0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 mt@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |sboyce@blueyonder.co.uk ------- Comment #3 from mt@novell.com 2006-11-15 07:00 MST ------- It is not possible to create an mount-point (the reuse of the /media/dvd mount point is currently not implemented). Please provide the output of: ls -ld /var /var/adm /var/adm/mount /var/tmp /var/adm/mount/AP_0x* /var/tmp/AP_0x* -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #4 from sboyce@blueyonder.co.uk 2006-11-15 09:25 MST ------- # ls -ld /var /var/adm /var/adm/mount /var/tmp /var/adm/mount/AP_0x* /var/tmp/AP_0x* 2>&1|tee /DVD_BUG /bin/ls: cannot access /var/adm/mount/AP_0x*: No such file or directory /bin/ls: cannot access /var/tmp/AP_0x*: No such file or directory drwxr-xr-x 15 root root 384 2006-11-11 01:12 /var drwxr-xr-x 9 root root 248 2006-11-02 22:12 /var/adm drwxr-xr-x 2 root root 48 2006-11-15 12:31 /var/adm/mount drwxrwxrwt 31 root root 1176 2006-11-15 15:51 /var/tmp -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 sboyce@blueyonder.co.uk changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mt@novell.com |bnc-team-screening@forge.provo.novell.com Status|NEEDINFO |NEW Info Provider|sboyce@blueyonder.co.uk | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |yast2-maintainers@suse.de |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 sh@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |mt@novell.com ------- Comment #5 from sh@novell.com 2006-11-15 09:39 MST ------- Sid, FYI: http://en.opensuse.org/Bug_Reporting_FAQ#What_does_that_NEEDINFO_bug_status_... http://en.opensuse.org/Bug_Reporting_FAQ#Don.27t_I_become_the_bug_owner_when... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 mt@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |sboyce@blueyonder.co.uk ------- Comment #6 from mt@novell.com 2006-11-16 03:20 MST ------- Please execute "rcapparmor stop" and try again then. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #7 from mt@novell.com 2006-11-16 03:21 MST ------- (In reply to comment #6)
Please execute "rcapparmor stop" and try again then.
I mean to use YaST2... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #8 from mt@novell.com 2006-11-16 10:08 MST ------- Created an attachment (id=105798) --> (https://bugzilla.novell.com/attachment.cgi?id=105798&action=view) patch to reuse existing mountpoints in zypp This patch enables zypp to use an existing mount point of a cdrom/dvd (e.g. automounted at /media/XXX) instead to mount it a second time at /var/adm/mount/AP_0x... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 mt@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jkupec@novell.com, kkaempf@novell.com ------- Comment #9 from mt@novell.com 2006-11-16 10:13 MST ------- Klaus, Jiri, Jan - do you agree with adding the above patch? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 kkaempf@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ma@novell.com ------- Comment #10 from kkaempf@novell.com 2006-11-16 10:17 MST ------- I guess Michael is the better one to judge than I am ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #11 from ma@novell.com 2006-11-16 11:22 MST ------- Basically I would not mind doing so. Looking at the patch my impression is, that we won't be able to unmount the device in that case. That's ok as we did not mount it. But we have to make shure our media change workflow behaves reasonable in that case. If commit requires a 2nd CD, the user presses the eject button an nothing happens, we'll get bugreports. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #12 from sboyce@blueyonder.co.uk 2006-11-16 16:41 MST ------- A few other things to note. 1. The media is a DVD for this x86 box and CD for the x86_64 laptop. 2. I also tried without having any reference to /dev/hdc in /etc/fstab, so it was not mounted. I shall try rcapparmor and report back. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 sboyce@blueyonder.co.uk changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|sboyce@blueyonder.co.uk | ------- Comment #13 from sboyce@blueyonder.co.uk 2006-11-16 17:06 MST ------- # rcapparmor restart Loading AppArmor module done Mounting securityfs on /sys/kernel/security done Loading AppArmor profiles done Problem remains the same. Apparmor profiles are the default and kernel is 2.6.18.2-4-default. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #14 from sboyce@blueyonder.co.uk 2006-11-16 17:10 MST ------- I have no reference to /dev/hdc in /etc/fstab and I also unmounted the DVD in "My Computer". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #15 from mt@novell.com 2006-11-17 03:52 MST ------- (In reply to comment #13)
# rcapparmor restart
No, don't restart. Just stop it and try without running apparmor. I want to see if we have some problem with the apparmor profile, that prohibits the YaST2 process to create directories in /var/adm/mount. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #16 from mt@novell.com 2006-11-17 04:06 MST ------- (In reply to comment #11)
Basically I would not mind doing so. Looking at the patch my impression is, that we won't be able to unmount the device in that case. That's ok as we did not mount it.
Yes, we didn't mounted it, so we by default also not umount it.
But we have to make shure our media change workflow behaves reasonable in that case. If commit requires a 2nd CD, the user presses the eject button an nothing happens, we'll get bugreports.
No, this will not happen (at least if automounted at the moment), because the media handler forces an umount & eject if somebody calls release(eject=true). We have two compile time switches now: /* ** try umount of foreign (user/automounter) media on eject ** 0 = don't force, 1 = automounted only, 2 == all */ #define FORCE_RELEASE_FOREIGN 1 /* ** Reuse foreign (user/automounter) mount points. ** 0 = don't use, 1 = automounted only, 2 = all */ #define REUSE_FOREIGN_MOUNTS 2 What happens is [see MediaCD::releaseFrom(bool eject) function]: +++ if( we_mounted_media) umount(media); if( eject) { /* 1 == automounted only (at the moment) */ if(FORCE_RELEASE_FOREIGN) forceRelaseAllMedia(false, FORCE_RELEASE_FOREIGN == 1); if( !openTray( media)) ZYPP_THROW(MediaNotEjectedException(media)); } } The new code line fromn attached patch is marked with +++. What we can do is to set FORCE_RELEASE_FOREIGN to 2 as well, so the media handler will try to umount also not-automounted media on eject. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #17 from mt@novell.com 2006-11-17 05:34 MST ------- I sumbmitted the patch to STABLE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #18 from sboyce@blueyonder.co.uk 2006-11-17 07:22 MST ------- I tried from a reboot and also from "rcapparmor stop" with no change. I've applied the patch to libzypp-2.7.2-6.src.rpm from factory, will reconstruct the RPM with alien and rebuild it. Can't think of an easier way at present. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 mt@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #19 from mt@novell.com 2006-11-17 09:15 MST ------- It is submitted to STABLE -- please reopen if it does not work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=220206 ------- Comment #20 from sboyce@blueyonder.co.uk 2006-11-17 14:28 MST ------- Applied the patch and built libzypp-2.7.2-6.i586.rpm, -devel and -debuginfo. With the upgraded RPMs installed, YaST is able to use the DVD for software management. Leaving ASSIGNED until Monday in case any further patches or requests are in the offing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com