Yes I will be happy to give the kernel log but I'm not familiar with command line. Can you please give me the command I need to use to get the kernel log about USB problem I mention.
2011/9/5 Matej Kenda <matej...@gmail.com> > The change that supposedly fixes this issue was added to Linux kernel > 3.0.1 and should be in the Linux kernel used in Oneiric as well. > > Can you provide kernel log from the time of the disconnect? > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/349767 > > Title: > external USB hard drive disconnects > > Status in The Linux Kernel: > Confirmed > Status in “linux” package in Ubuntu: > Won't Fix > Status in “linux” source package in Lucid: > Confirmed > > Bug description: > This is a new external drive enclosure. > > I can easily reproduce this: > > Plug in the usb cable and power up the drive. System log shows: > > Mar 27 11:05:07 XPS-1 kernel: [ 7259.584108] usb 2-2: new high speed USB > device using ehci_hcd and address 7 > Mar 27 11:05:07 XPS-1 kernel: [ 7259.720027] usb 2-2: configuration #1 > chosen from 1 choice > Mar 27 11:05:07 XPS-1 kernel: [ 7259.757608] Initializing USB Mass Storage > driver... > Mar 27 11:05:07 XPS-1 kernel: [ 7259.762530] scsi5 : SCSI emulation for > USB Mass Storage devices > Mar 27 11:05:07 XPS-1 kernel: [ 7259.768158] usbcore: registered new > interface driver usb-storage > Mar 27 11:05:07 XPS-1 kernel: [ 7259.768167] USB Mass Storage support > registered. > Mar 27 11:05:12 XPS-1 kernel: [ 7264.769258] scsi 5:0:0:0: Direct-Access > WDC WD16 00JB-75GVA0 08.0 PQ: 0 ANSI: 0 > Mar 27 11:05:12 XPS-1 kernel: [ 7264.773347] sd 5:0:0:0: [sdb] 312499999 > 512-byte hardware sectors: (159 GB/149 GiB) > Mar 27 11:05:12 XPS-1 kernel: [ 7264.793936] sd 5:0:0:0: [sdb] Write > Protect is off > Mar 27 11:05:12 XPS-1 kernel: [ 7264.801920] sd 5:0:0:0: [sdb] 312499999 > 512-byte hardware sectors: (159 GB/149 GiB) > Mar 27 11:05:12 XPS-1 kernel: [ 7264.804738] sd 5:0:0:0: [sdb] Write > Protect is off > Mar 27 11:05:12 XPS-1 kernel: [ 7264.804760] sdb: sdb1 > Mar 27 11:05:12 XPS-1 kernel: [ 7264.837230] sd 5:0:0:0: [sdb] Attached > SCSI disk > Mar 27 11:05:12 XPS-1 kernel: [ 7264.837377] sd 5:0:0:0: Attached scsi > generic sg2 type 0 > Mar 27 11:05:13 XPS-1 kernel: [ 7265.513967] kjournald starting. Commit > interval 5 seconds > Mar 27 11:05:13 XPS-1 kernel: [ 7265.513995] EXT3-fs warning: maximal > mount count reached, running e2fsck is recommended > Mar 27 11:05:13 XPS-1 kernel: [ 7265.515031] EXT3 FS on sdb1, internal > journal > Mar 27 11:05:13 XPS-1 kernel: [ 7265.515040] EXT3-fs: recovery complete. > Mar 27 11:05:13 XPS-1 kernel: [ 7265.522316] EXT3-fs: mounted filesystem > with ordered data mode. > > Now if I do anything that causes reads from the drive (in this case > "du -sh /media/disk", I get the following in the log: > > Mar 27 11:05:48 XPS-1 kernel: [ 7300.911188] usb 2-2: reset high speed USB > device using ehci_hcd and address 7 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.173948] sd 5:0:0:0: [sdb] Result: > hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK > Mar 27 11:05:49 XPS-1 kernel: [ 7301.174001] usb 2-2: USB disconnect, > address 7 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.174266] sd 5:0:0:0: [sdb] Result: > hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK > Mar 27 11:05:49 XPS-1 kernel: [ 7301.174448] sd 5:0:0:0: [sdb] Result: > hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK > Mar 27 11:05:49 XPS-1 kernel: [ 7301.174617] sd 5:0:0:0: [sdb] Result: > hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK > Mar 27 11:05:49 XPS-1 kernel: [ 7301.174776] sd 5:0:0:0: [sdb] Result: > hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK > Mar 27 11:05:49 XPS-1 kernel: [ 7301.174956] lost page write due to I/O > error on sdb1 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175588] ------------[ cut here > ]------------ > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175594] WARNING: at > /build/buildd/linux-2.6.28/fs/buffer.c:1186 mark_buffer_dirty+0x7d/0xa0() > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175599] Modules linked in: > usb_storage aes_i586 aes_generic xt_limit xt_tcpudp ipt_LOG ipt_MASQUERADE > xt_DSCP ipt_REJECT nf_conntrack_irc nf_conntrack_ftp xt_state i915 drm > binfmt_misc ppdev bnep bridge stp kvm_intel kvm kqemu input_polldev joydev > sbp2 lp parport iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack > nf_defrag_ipv4 iptable_mangle iptable_filter ip_tables x_tables > snd_hda_intel arc4 ecb snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy > snd_seq_oss iwlagn iwlcore snd_seq_midi snd_rawmidi snd_seq_midi_event > uvcvideo snd_seq snd_timer snd_seq_device led_class compat_ioctl32 videodev > hid_dell snd psmouse mac80211 soundcore intel_agp usbhid serio_raw agpgart > snd_page_alloc v4l1_compat video cfg80211 sdhci_pci sdhci iTCO_wdt > iTCO_vendor_support output dcdbas ohci1394 ieee1394 tg3 fbcon tileblit font > bitblit softcursor [last unloaded: pcspkr] > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175756] Pid: 14093, comm: du Not > tainted 2.6.28-11-generic #37-Ubuntu > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175761] Call Trace: > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175771] [<c0500ae1>] ? > printk+0x18/0x1f > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175779] [<c0139ad4>] > warn_on_slowpath+0x54/0x80 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175788] [<c033d600>] ? > vt_console_print+0x1f0/0x320 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175797] [<c0502b68>] ? > __lock_text_start+0x8/0x20 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175804] [<c033d640>] ? > vt_console_print+0x230/0x320 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175812] [<c02cbbbb>] ? > string+0x2b/0xe0 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175819] [<c033d410>] ? > vt_console_print+0x0/0x320 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175827] [<c013a2a9>] ? > release_console_sem+0x1c9/0x200 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175836] [<c01dd9fd>] > mark_buffer_dirty+0x7d/0xa0 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175844] [<c0219e36>] > ext3_commit_super+0x46/0x70 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175852] [<c021c138>] > ext3_handle_error+0x48/0xb0 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175858] [<c0500ae1>] ? > printk+0x18/0x1f > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175865] [<c021c261>] > ext3_error+0x51/0x60 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175872] [<c0212f06>] > __ext3_get_inode_loc+0x296/0x300 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175881] [<c01cfea7>] ? > get_new_inode_fast+0xe7/0x120 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175888] [<c01d0ae3>] ? > iget_locked+0x53/0x60 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175894] [<c0212fc5>] > ext3_iget+0x55/0x3d0 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175903] [<c01ccb15>] ? > d_rehash+0x45/0x60 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175909] [<c02187e1>] > ext3_lookup+0x81/0xd0 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175916] [<c0502d08>] ? > _spin_lock+0x8/0x10 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175923] [<c01ce767>] ? > d_alloc+0x137/0x190 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175931] [<c01c6ac7>] > real_lookup+0xa7/0x110 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175938] [<c01c6bb5>] > do_lookup+0x85/0xc0 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175945] [<c01c7125>] > __link_path_walk+0x535/0xb30 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175953] [<c01c7b74>] > path_walk+0x54/0xb0 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175961] [<c01c7d0e>] > do_path_lookup+0xae/0x190 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175968] [<c01c894a>] > user_path_at+0x4a/0x80 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175975] [<c01c10ae>] > vfs_lstat_fd+0x1e/0x50 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175982] [<c01c1228>] > sys_fstatat64+0x48/0x60 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175990] [<c0103f6b>] > sysenter_do_call+0x12/0x2f > Mar 27 11:05:49 XPS-1 kernel: [ 7301.175999] [<c0500000>] ? > relay_hotcpu_callback+0x4d/0xbd > Mar 27 11:05:49 XPS-1 kernel: [ 7301.176034] ---[ end trace > 9ff3116a5fd25f1f ]--- > Mar 27 11:05:49 XPS-1 kernel: [ 7301.177450] lost page write due to I/O > error on sdb1 > Mar 27 11:05:49 XPS-1 kernel: [ 7301.177527] lost page write due to I/O > error on sdb1 > > I have not gotten the stack trace every time this happens, so that may > be incidental to the fundamental problem. > > ProblemType: Bug > Architecture: i386 > DistroRelease: Ubuntu 9.04 > MachineType: Dell Inc. XPS M1330 > Package: linux-image-2.6.28-11-generic 2.6.28-11.37 > ProcCmdLine: root=UUID=52bfcdb8-5615-4225-b411-3cc63da13a24 ro quiet > splash crashkernel=384M-2G:64M@16M,2G-:128M@16M > ProcEnviron: > PATH=(custom, user) > LANG=en_US.UTF-8 > SHELL=/bin/bash > ProcVersionSignature: Ubuntu 2.6.28-11.37-generic > SourcePackage: linux > > To manage notifications about this bug go to: > https://bugs.launchpad.net/linux/+bug/349767/+subscriptions > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/349767 Title: external USB hard drive disconnects To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/349767/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs