[Bug 343874] New: If the system hybernates with an usb external drive mounted, weird things happen
https://bugzilla.novell.com/show_bug.cgi?id=343874 Summary: If the system hybernates with an usb external drive mounted, weird things happen Product: openSUSE 10.3 Version: Final Platform: i686 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: robin.listas@telefonica.net QAContact: qa@suse.de Found By: --- I hibernated forgotting to umount a manually mounted external HD on USB. The disk was on sda1, and mounted using this fstab line: LABEL=usb_sg60 /mnt/usb/usb_sg60 reiserfs noatime,user,noauto,acl,user_xattr 0 0 After hibernating, the disk moves to sdb1: nimrodel:~ # l /dev/disk/by-label/ | grep usb_sg60 lrwxrwxrwx 1 root root 10 Nov 24 14:10 usb_sg60 -> ../../sdb1 but the kernel thinks it is still mounted on sda1: nimrodel:~ # mount -l | grep usb_sg60 /dev/sda1 on /mnt/usb/usb_sg60 type reiserfs (rw,noexec,nosuid,nodev,noatime,acl,user_xattr) and it is possible to remount it correctly: nimrodel:~ # umount /mnt/usb/usb_sg60 nimrodel:~ # mount /mnt/usb/usb_sg60 nimrodel:~ # mount -l | grep usb_sg60 /dev/sdb1 on /mnt/usb/usb_sg60 type reiserfs (rw,noexec,nosuid,nodev,noatime,acl,user_xattr) [usb_sg60] but sda has dissapeared: nimrodel:~ # l /dev/sd?* brw-r----- 1 root disk 8, 16 Nov 24 14:10 /dev/sdb brw-r----- 1 root disk 8, 17 Nov 24 14:10 /dev/sdb1 Here goes the kernel log: Nov 24 14:09:32 nimrodel kernel: swsusp: critical section: Nov 24 14:09:32 nimrodel kernel: swsusp: Need to copy 113403 pages Nov 24 14:09:32 nimrodel kernel: Intel machine check architecture supported. Nov 24 14:09:32 nimrodel kernel: Intel machine check reporting enabled on CPU#0. Nov 24 14:09:32 nimrodel kernel: CPU0: Intel P4/Xeon Extended MCE MSRs (12) available Nov 24 14:09:32 nimrodel kernel: CPU0: Thermal monitoring enabled Nov 24 14:09:32 nimrodel kernel: PCI: Setting latency timer of device 0000:00:1e.0 to 64 Nov 24 14:09:32 nimrodel kernel: PM: Writing back config space on device 0000:00:1f.5 at offset 1 (was 2800005, writing 2800001) Nov 24 14:09:32 nimrodel kernel: ACPI: PCI Interrupt 0000:00:1f.5[B] -> GSI 17 (level, low) -> IRQ 19 Nov 24 14:09:32 nimrodel kernel: PCI: Setting latency timer of device 0000:00:1f.5 to 64 Nov 24 14:09:32 nimrodel kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 Nov 24 14:09:38 nimrodel kernel: ACPI: PCI Interrupt 0000:02:02.0[A] -> GSI 18 (level, low) -> IRQ 17 Nov 24 14:09:38 nimrodel kernel: usb usb2: root hub lost power or was reset Nov 24 14:09:38 nimrodel kernel: ACPI: PCI Interrupt 0000:02:02.1[B] -> GSI 19 (level, low) -> IRQ 18 Nov 24 14:09:38 nimrodel kernel: usb usb3: root hub lost power or was reset Nov 24 14:09:38 nimrodel kernel: ACPI: PCI Interrupt 0000:02:02.2[C] -> GSI 16 (level, low) -> IRQ 16 Nov 24 14:09:38 nimrodel kernel: usb usb1: root hub lost power or was reset Nov 24 14:09:38 nimrodel kernel: pnp: Device 00:08 activated. Nov 24 14:09:38 nimrodel kernel: pnp: Device 00:09 activated. Nov 24 14:09:38 nimrodel kernel: pnp: Failed to activate device 00:0b. Nov 24 14:09:38 nimrodel kernel: pnp: Failed to activate device 00:0c. Nov 24 14:09:38 nimrodel kernel: pnp: Device 00:0d activated. Nov 24 14:09:38 nimrodel kernel: pnp: Device 00:0e activated. Nov 24 14:09:38 nimrodel kernel: hda: selected mode 0x45 Nov 24 14:09:38 nimrodel kernel: hdb: selected mode 0x45 Nov 24 14:09:38 nimrodel kernel: hdc: selected mode 0x42 Nov 24 14:09:38 nimrodel kernel: hdd: selected mode 0x45 Nov 24 14:09:38 nimrodel kernel: usb_endpoint usbdev1.3_ep00: PM: resume from 0, parent 1-1 still 1 Nov 24 14:09:38 nimrodel kernel: usb-storage 1-1:1.0: PM: resume from 1, parent 1-1 still 1 Nov 24 14:09:38 nimrodel kernel: usb_endpoint usbdev1.3_ep02: PM: resume from 0, parent 1-1:1.0 still 1 Nov 24 14:09:38 nimrodel kernel: usb_endpoint usbdev1.3_ep86: PM: resume from 0, parent 1-1:1.0 still 1 Nov 24 14:09:38 nimrodel kernel: host0: PM: resume from 0, parent 1-1:1.0 still 1 Nov 24 14:09:38 nimrodel kernel: Restarting tasks ... <6>usb 1-1: USB disconnect, address 3 Nov 24 14:09:38 nimrodel kernel: Buffer I/O error on device sda1, logical block 7514 Nov 24 14:09:38 nimrodel kernel: lost page write due to I/O error on sda1 Nov 24 14:09:38 nimrodel kernel: Buffer I/O error on device sda1, logical block 7515 Nov 24 14:09:38 nimrodel kernel: lost page write due to I/O error on sda1 Nov 24 14:09:38 nimrodel kernel: REISERFS abort (device sda1): Journal write error in flush_commit_list Nov 24 14:09:38 nimrodel kernel: done. Nov 24 14:09:38 nimrodel kernel: swsusp: Basic memory bitmaps freed Nov 24 14:09:38 nimrodel kernel: usb 1-1: new high speed USB device using ehci_hcd and address 4 Nov 24 14:09:38 nimrodel kernel: usb 1-1: new device found, idVendor=04b4, idProduct=6830 Nov 24 14:09:38 nimrodel kernel: usb 1-1: new device strings: Mfr=56, Product=78, SerialNumber=100 Nov 24 14:09:38 nimrodel kernel: usb 1-1: Product: USB2.0 Storage Device Nov 24 14:09:38 nimrodel kernel: usb 1-1: Manufacturer: Cypress Semiconductor Nov 24 14:09:38 nimrodel kernel: usb 1-1: SerialNumber: DEF10000CE2DB1A Nov 24 14:09:38 nimrodel kernel: usb 1-1: configuration #1 chosen from 1 choice Nov 24 14:09:38 nimrodel kernel: scsi1 : SCSI emulation for USB Mass Storage devices Nov 24 14:09:38 nimrodel kernel: usb-storage: device found at 4 Nov 24 14:09:38 nimrodel kernel: usb-storage: waiting for device to settle before scanning Nov 24 14:09:38 nimrodel kernel: scsi 1:0:0:0: Direct-Access ST360020 A 0000 PQ: 0 ANSI: 0 Nov 24 14:09:38 nimrodel kernel: sd 1:0:0:0: [sdb] 117231408 512-byte hardware sectors (60022 MB) Nov 24 14:09:38 nimrodel kernel: sd 1:0:0:0: [sdb] Write Protect is off Nov 24 14:09:38 nimrodel kernel: sd 1:0:0:0: [sdb] Mode Sense: 27 00 00 00 Nov 24 14:09:38 nimrodel kernel: sd 1:0:0:0: [sdb] Assuming drive cache: write through Nov 24 14:09:38 nimrodel kernel: sd 1:0:0:0: [sdb] 117231408 512-byte hardware sectors (60022 MB) Nov 24 14:09:38 nimrodel kernel: sd 1:0:0:0: [sdb] Write Protect is off Nov 24 14:09:38 nimrodel kernel: sd 1:0:0:0: [sdb] Mode Sense: 27 00 00 00 Nov 24 14:09:38 nimrodel kernel: sd 1:0:0:0: [sdb] Assuming drive cache: write through Nov 24 14:09:38 nimrodel kernel: sdb:<6>input: Power Button (FF) as /class/input/input18 Nov 24 14:09:38 nimrodel kernel: ACPI: Power Button (FF) [PWRF] Nov 24 14:09:38 nimrodel kernel: input: Power Button (CM) as /class/input/input19 Nov 24 14:09:38 nimrodel kernel: ACPI: Power Button (CM) [PWRB] Nov 24 14:09:38 nimrodel kernel: input: Sleep Button (CM) as /class/input/input20 Nov 24 14:09:38 nimrodel kernel: ACPI: Sleep Button (CM) [SLPB] Nov 24 14:10:03 nimrodel kernel: usb 1-1: reset high speed USB device using ehci_hcd and address 4 Nov 24 14:10:04 nimrodel kernel: sdb1 Nov 24 14:10:04 nimrodel kernel: sd 1:0:0:0: [sdb] Attached SCSI disk Nov 24 14:10:04 nimrodel kernel: sd 1:0:0:0: Attached scsi generic sg0 type 0 Nov 24 14:10:04 nimrodel kernel: usb-storage: device scan complete Nov 24 14:43:26 nimrodel kernel: scsi 0:0:0:0: rejecting I/O to dead device I suppose I could add my own hook to umount the device if I forget, but I propose that you could add a generic hook to umount usb devices on hybernate, or ensure that they resurrect on the correct device. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=343874
Mark Gordon
https://bugzilla.novell.com/show_bug.cgi?id=343874
Stefan Behlert
https://bugzilla.novell.com/show_bug.cgi?id=343874#c1
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=343874
User hmacht@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c2
Holger Macht
https://bugzilla.novell.com/show_bug.cgi?id=343874
Holger Macht
https://bugzilla.novell.com/show_bug.cgi?id=343874
User hmacht@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c3
--- Comment #3 from Holger Macht
https://bugzilla.novell.com/show_bug.cgi?id=343874
User oneukum@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c4
Oliver Neukum
https://bugzilla.novell.com/show_bug.cgi?id=343874
User gregkh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c5
--- Comment #5 from Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=343874
User gregkh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c6
--- Comment #6 from Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c7
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User gregkh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c8
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c9
--- Comment #9 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c10
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
Lars Marowsky-Bree
https://bugzilla.novell.com/show_bug.cgi?id=343874
User oneukum@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c11
Oliver Neukum
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c12
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User oneukum@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c13
Oliver Neukum
https://bugzilla.novell.com/show_bug.cgi?id=343874
Oliver Neukum
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c14
--- Comment #14 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c15
--- Comment #15 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874 Bug 343874 depends on bug 440891, which changed state. Bug 440891 Summary: kernel-2.6.27.4-2-pae causes a crash when writing to cd or dvd https://bugzilla.novell.com/show_bug.cgi?id=440891 What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Status|NEEDINFO |NEW Status|NEW |RESOLVED Resolution| |FIXED -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c16
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874 Bug 343874 depends on bug 439126, which changed state. Bug 439126 Summary: s2disk: Resume broken with PAE kernels https://bugzilla.novell.com/show_bug.cgi?id=439126 What |Old Value |New Value ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Status|NEEDINFO |RESOLVED Resolution| |FIXED -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c17
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c18
--- Comment #18 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c19
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User oneukum@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c20
Oliver Neukum
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c21
--- Comment #21 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c22
--- Comment #22 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User gregkh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c23
--- Comment #23 from Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=343874
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=343874
User rjw@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c25
Rafael Wysocki
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c26
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c27
--- Comment #27 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c28
--- Comment #28 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User rjw@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c29
--- Comment #29 from Rafael Wysocki
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c30
--- Comment #30 from Carlos Robinson
Can you also test the kernel from ftp://ftp.suse.com/pub/projects/kernel/kotd/HEAD/ , please (ie. 2.6.29-rc7+ or better -rc8 when it's out)?
I have installed (via chroot in 11.0 to the 11.1 partition) these: kernel-debug-2.6.29-rc8.master_20090319171434_04fb8beb.i586.rpm kernel-debug-base-2.6.29-rc8.master_20090319171434_04fb8beb.i586.rpm kernel-debug-extra-2.6.29-rc8.master_20090319171434_04fb8beb.i586.rpm I have a question. This install (rpm --install etc) has changed the symlink "/boot/vmlinuz". Is there someway to avoid this behaviour? It is a nuisance, because I'm installing an extra kernel for testing, not a new default kernel. Should I report this on another bugzilla? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c31
--- Comment #31 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User rjw@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c32
--- Comment #32 from Rafael Wysocki
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c33
--- Comment #33 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User rjw@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c34
--- Comment #34 from Rafael Wysocki
By the way, I forgot to mention that inside gnome, the hibernate options disappear from the menus when I boot with the rc8 kernel.
I'm suspending manually via command "powersave -U" as root in text mode, which normally works. You mean to use the command "s2disk" with no parameters?
Yes. You may need to edit /etc/suspend.conf to make the 'resume device' parameter point to the swap partition used for hibernating.
There is no man page for this command.
That's correct, it is low level.
Also, remember that there has been a DBus update recently.
"powersave -U" not working may be a DBus problem, but I'm interested whether or not the hibernation subsystem in the kernel works. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=343874
User seife@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c35
--- Comment #35 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c36
--- Comment #36 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c37
--- Comment #37 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=343874
User rjw@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c38
Rafael Wysocki
https://bugzilla.novell.com/show_bug.cgi?id=343874
User teheo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=343874#c39
Tejun Heo
participants (1)
-
bugzilla_noreply@novell.com