LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   RHEL4U2 (kernel 2.6.9-22.EL) doesn't detect USB HDD on boot, require manual re-plug (http://www.linuxquestions.org/questions/linux-kernel-70/rhel4u2-kernel-2-6-9-22-el-doesnt-detect-usb-hdd-on-boot-require-manual-re-plug-781633/)

pyktam 01-12-2010 02:06 AM

RHEL4U2 (kernel 2.6.9-22.EL) doesn't detect USB HDD on boot, require manual re-plug
 
Refers to RHEL R4 Update 2 (kernel 2.6.9-22.EL)

Kernel doesn't detect the USB HDD if it's attached prior to boot. After boot process complete, unplugging & re-plugging in works. BUT I need it to be auto-mounted through reboot, so this is not a solution.

Any clues why it doesn't got detected & registered on boot (when attached)?

/etc/fstab:-
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
/dev/sdb1 /media/usbdisk ext3 pamconsole,exec,noauto,managed 0 0

***NOTE: The last line above is automatically added by system upon re-plugging. It's *not* present right after boot.

/etc/mtab:-
/dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/sda1 /boot ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/sdb1 /media/usbdisk ext3 rw,nosuid,nodev 0 0


Some possibly related lines from messages log:- (full boot time log available for examination)

Jan 7 10:29:54 hklab-gw kernel: hub 3-0:1.0: USB hub found
Jan 7 18:29:38 hklab-gw rc.sysinit: -e
Jan 7 10:29:54 hklab-gw kernel: hub 3-0:1.0: 2 ports detected
Jan 7 10:29:54 hklab-gw acpid: acpid startup succeeded
Jan 7 18:29:39 hklab-gw udevsend[770]: starting udevd daemon
Jan 7 10:29:54 hklab-gw kernel: ACPI: PCI interrupt 0000:00:1d.2[C] -> GSI 11 (level, low) -> IRQ 11
Jan 7 18:29:39 hklab-gw scsi.agent[782]: disk at /devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0
Jan 7 10:29:54 hklab-gw kernel: uhci_hcd 0000:00:1d.2: UHCI Host Controller
Jan 7 18:29:39 hklab-gw start_udev: Starting udev: succeeded
Jan 7 10:29:54 hklab-gw kernel: usb 1-3: new high speed USB device using address 2
Jan 7 18:29:41 hklab-gw udevsend[1113]: starting udevd daemon
..
..
..
Jan 7 10:29:56 hklab-gw kernel: usb 1-3: control timeout on ep0in
Jan 7 10:29:56 hklab-gw kernel: ip_tables: (C) 2000-2002 Netfilter core team
Jan 7 10:29:56 hklab-gw kernel: usb 1-3: device not accepting address 2, error -71
Jan 7 10:29:56 hklab-gw kernel: usb 1-3: new high speed USB device using address 3
..
..
..
Jan 7 10:30:13 hklab-gw login(pam_unix)[2636]: session opened for user root by LOGIN(uid=0)
Jan 7 10:30:13 hklab-gw -- root[2636]: ROOT LOGIN ON tty1
Jan 7 10:30:31 hklab-gw kernel: usb 1-3: USB disconnect, address 3

***NOTE: This is the point I unplug then replug the USB HDD.

Jan 7 10:30:33 hklab-gw kernel: usb 1-3: new high speed USB device using address 5
Jan 7 10:30:33 hklab-gw kernel: Initializing USB Mass Storage driver...
Jan 7 10:30:33 hklab-gw kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jan 7 10:30:33 hklab-gw kernel: Vendor: Seagate Model: Desktop Rev: 0130
Jan 7 10:30:33 hklab-gw kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 7 10:30:33 hklab-gw kernel: SCSI device sdb: 2930277168 512-byte hdwr sectors (1500302 MB)
Jan 7 10:30:33 hklab-gw kernel: sdb: assuming drive cache: write through
Jan 7 10:30:33 hklab-gw kernel: sdb: sdb1
Jan 7 10:30:33 hklab-gw kernel: Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
Jan 7 10:30:33 hklab-gw scsi.agent[3314]: disk at /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host1/target1:0:0/1:0:0:0
Jan 7 10:30:34 hklab-gw kernel: usbcore: registered new driver usb-storage
Jan 7 10:30:34 hklab-gw kernel: USB Mass Storage support registered.
Jan 7 10:30:34 hklab-gw fstab-sync[3377]: added mount point /media/usbdisk for /dev/sdb1

unSpawn 02-01-2010 04:24 PM

Quote:

Originally Posted by pyktam (Post 3823393)
Kernel doesn't detect the USB HDD if it's attached prior to boot. After boot process complete, unplugging & re-plugging in works. BUT I need it to be auto-mounted through reboot, so this is not a solution. Any clues why it doesn't got detected & registered on boot (when attached)?

While the U8 2.6.9-88 kernel may provide improvements over the U4 2.6.9-22 one, since no HW specs or configuration is given, I can only say I know some machines don't react well to some external USB drive chipsets. If moving up to U8 is out of the question and if you can not test a different casing slash machine combo then maybe if you google://site:bugzilla.redhat.com +RHEL4 +"usb-storage" you might find related issues.

//NTLB


All times are GMT -5. The time now is 05:04 PM.