LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 01-29-2003, 08:44 PM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
USB HDD Mounting Question


I have a WD 82.6GB internal HDD installed in an external USB2.0 drive bay connected to my computer. Previously, I assume through SCSI emulation, it was considered /dev/sda. Now, for some reason, it's not mounting properly. I have the following command in my /etc/rc.local

mount /dev/sda1 /backup

Now this mount is no longer working. I assume that the device has changed. I grabbed the following out of /var/log/messages:

Jan 29 20:35:27 localhost kernel: usb.c: USB disconnect on device 2
Jan 29 20:35:55 localhost kernel: hub.c: USB new device connect on bus4/1, assigned device number 3
Jan 29 20:35:55 localhost kernel: usb.c: USB device 3 (vend/prod 0xc0b/0xb001) is not claimed by any active driver.
Jan 29 20:35:58 localhost /etc/hotplug/usb.agent: Setup usb-storage for USB product c0b/b001/1110
Jan 29 20:35:58 localhost kernel: Initializing USB Mass Storage driver...
Jan 29 20:35:58 localhost kernel: usb.c: registered new driver usb-storage
Jan 29 20:35:58 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices

I'm pretty sure that this excerpt from the log is after I realized that the drive wasn't mounted and unplugged the drive and turned it off and plugged it back in and turned it on.


Now that you have the background info, my question is this: How do I determine what device the drive is? I found it before on a wild guess.
 
Old 01-30-2003, 06:56 AM   #2
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
I have a USB smartdrive that i mounted with linux basically the same way you did with a hard drive.

mount /dev/sda1 /mnt/usb

that's basically what i did, maybe the fault was in your choice of sda over sda1?
 
Old 01-30-2003, 07:50 AM   #3
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
have you added ANY other block devices such as HDDs CDs CDRs CDRWs DVDs Zips LS-120s etc?

if any of these use scsi emulation, like your USB drive does they can "bump" the drive out of sda and make it sdb or sdc.
 
Old 01-30-2003, 08:00 AM   #4
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
Who was that in referance to? hehe

Uhh that is why i have the usb ( since it is temporary like a florry disk) as sda1.
 
Old 01-30-2003, 09:13 AM   #5
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
I didn't add anything at all. It was working, I rebooted my machine, and then it wasn't working. Given that little excerpt from my log, I'd say that it's definitely being recognized and it's plugged in correctly and such. The only other USB device is my mouse, so those lines must be in reference to the USB HDD.

I tried mounting /dev/sdb1 (it only has one partition, so I know that at least the number is right), but that didn't work either.

I thought that maybe there was some utility or log file I could consult to find out what scsi device it was being emulated as.
 
Old 01-30-2003, 02:57 PM   #6
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Another touch of information I've found while snooping around - Here is what I *used* to get in my /var/log/messages when booting when the USB HDD worked correctly:

Jan 26 01:45:05 localhost kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Jan 26 01:45:05 localhost kernel: SCSI device sda: 160836480 512-byte hdwr sectors (82348 MB)
Jan 26 01:45:05 localhost kernel: sda: sda1
Jan 26 01:45:05 localhost kernel: EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended


Now I get:

Jan 29 20:35:55 localhost kernel: hub.c: USB new device connect on bus4/1, assigned device number 3
Jan 29 20:35:55 localhost kernel: usb.c: USB device 3 (vend/prod 0xc0b/0xb001) is not claimed by any active driver.
Jan 29 20:35:58 localhost /etc/hotplug/usb.agent: Setup usb-storage for USB product c0b/b001/1110
Jan 29 20:35:58 localhost kernel: Initializing USB Mass Storage driver...
Jan 29 20:35:58 localhost kernel: usb.c: registered new driver usb-storage
Jan 29 20:35:58 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices


Please help! I'm stumped!!

Last edited by gauge73; 01-30-2003 at 03:03 PM.
 
Old 01-30-2003, 05:42 PM   #7
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
have u unplugged the usb in between this problems?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting a USB HDD novacek Linux - Hardware 1 10-08-2005 03:54 AM
USB HDD Mounting - which filesystem? grim1234 Linux - Hardware 2 08-17-2004 12:55 PM
External USB HDD not mounting glk Linux - Hardware 1 01-22-2004 10:14 AM
Removeable HDD mounting question. lil_slice Linux - Hardware 2 11-07-2003 07:33 PM
Mounting Extarnal USB laptop HDD OhLordy Linux - Hardware 3 09-20-2003 04:45 AM


All times are GMT -5. The time now is 12:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration