View Full Version : Hotpluging? Plz help
Firewing1
2005-11-08, 07:24 PM CST
Hey,
I have a 120 GB external drive
it mounts automatically when I plug it in, but I've noticed if i boot my system with the HD already plugged it, it will activate /dev/sda but not /dev/sda1,2,5 or 6. Wierd. So, it sees the drive, but won't create the sub-drives, so to speak.
I use USB 2.0, and usb-storage module IS activated.
Firewing1
CrystalCowboy
2005-11-09, 09:02 AM CST
"activate" "create" - I don't understand your use of terminology.
I take it the drive is being recognized; that if you do "/sbin/fdisk -l", the disk ald all its partitions show up?
But the partitions are not being mounted?
Do you have entries for the partitions in your /etc/fstab file? If so, please list them.
Firewing1
2005-11-09, 08:45 PM CST
Yes. /etc/fstab is OK, and by activated and created I mean this:
1) The system sees a new Full speed device
2) System looks further; Mass USB Storage device sda is activated, created whatever, the file /dev/sda is created.
3) Although the drive is recognized, the individual partiton files (/dev/sda1,2,5,6) are not created until I replug it.
Firewing1
Firewing1
2005-11-10, 08:14 PM CST
bump...
Firewing1
Firewing1
2005-11-12, 01:21 PM CST
Hmmm.. this is my dmesg:
...
ehci_hcd 0000:02:0a.2: EHCI Host Controller
ehci_hcd 0000:02:0a.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:02:0a.2: irq 10, io mem 0xfe1ef800
ehci_hcd 0000:02:0a.2: USB 2.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v2.3
...
So my USB is "activated" so to speak, as in kernel module is loaded. Ready to plug in devices.
then, a few lines down:
usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 2-1: new full speed USB device using uhci_hcd and address 2
2 devices using address 2. Conflict?
...
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
...
Vendor: WDC WD12 Model: 00LB-55EDA0 Rev: 15.0
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
SCSI device sda: 234441649 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
SCSI device sda: 234441649 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
sda:<4>
...
See? It sees my drive, know's there's 4 partitons, but won't load them.
EDIT: Solved it. Changed ports.
Firewing1
Firewing1
2005-11-14, 03:15 PM CST
Ok, again, more info. I did reboot, and this comes up in # cat /proc/bus/usb/devices:
T: Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12c8 ProdID=1f03 Rev= 1.00
S: Manufacturer=XIMETA, Inc.
S: Product=NDAS / USB 2.0 Storage Device
S: SerialNumber=100000011BA4
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
So it's there alright. Plus, in dmesg, /dev/sda1,2,5,6 are created, are there. But something later on in the boot removes them. I CAN select the drive and print geometry info in /sbin/parted, even though sda1,2,5,6 aren't there. ???
dmesg:
Adding 522072k swap on /dev/hdb5. Priority:-1 extents:1
Vendor: WDC WD12 Model: 00LB-55EDA0 Rev: 15.0
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
SCSI device sda: 234441649 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
SCSI device sda: 234441649 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
sda: sda1 sda2 sda3 < sda5<4>nvidia: module license 'NVIDIA' taints kernel.
sda6 >
EDIT: IF I do this:
# /sbin/rmmod usb-storage
# /sbin/modprobe usbstorage
It will work again. Also, just wondering why modpobe will add usb-storage OK, but insmod command can't find the module for usb-storage
Firewing1
bitrain
2005-11-15, 02:43 AM CST
Can you post your lsmod before you do the rmmod? And one after you do the modprobe? My soundcard required a similar procedure because it loaded a usb module and the normal driver.
Firewing1
2005-11-16, 02:32 PM CST
It's fine... i fixed it... I just had to remove the usb module and re-load it. Now, it loads on bootup.
Firewing1
bitrain
2005-11-17, 02:13 AM CST
It's fine... i fixed it... I just had to remove the usb module and re-load it. Now, it loads on bootup.
Firewing1
Please file a bug, as this is not supposed to be necessary.
Firewing1
2005-11-17, 08:32 AM CST
I will... I like the Fedora Wiki page, it's nice and clean, to the point... check it out people!
Firewing1
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.