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.