LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-15-2005, 02:38 PM   #1
JimWright043
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
Prob' in adding a second USB drive


Hello all,

I've got a small embedded Linux box and a USB hub connected to it. If I plug one USB drive in I can mount it just fine as /dev/sda1. When I plug a second USB drive in I can't mount it as /dev/sdb1.

I created the nodes using these commands (from the root):
mknod dev/sda b 8 0
mknod dev/sda1 b 8 1
mknod dev/sdb b 9 0
mknod dev/sdb1 b 9 1

I then added these lines to:
/dev/sda1 /mnt/flasha vfat noauto,user 0 0
/dev/sdb1 /mnt/flashb vfat noauto,user 0 0

I then created both mnt directories. I restarted the board with out the usb drives plugged in. When I plug the first one in I get this:
# hub.c: new USB device builtin.OHC-1.4, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Generic Model: STORAGE DEVICE Rev: 0128
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 2001888 512-byte hdwr sectors (1025 MB)
sda: Write Protect is off
Partition check:
sda: sda1

Plugging in the second drive:
# hub.c: new USB device builtin.OHC-1.3, assigned address 4
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: SanDisk Model: Cruzer Mini Rev: 0.2
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
SCSI device sdb: 1000944 512-byte hdwr sectors (512 MB)
sdb: Write Protect is off
sdb: sdb1


When I mount the first usb drive it works the command line i use is:
# mount /dev/sda1

However when I mount the second drive I get this:
# mount /dev/sdb1
mount: Mounting /dev/sdb1 on /mnt/flashb failed: No such device or address


I've tried this plugging the drives in, in the other order. I've plugged in each drive seperately and each mounts as sda1 fine.

Can someone tell me what I'm doing wrong with the sdb1 mount?

-Jim
 
Old 07-15-2005, 03:00 PM   #2
[|RoA|]RoadRunner
Member
 
Registered: Jul 2005
Distribution: LFS
Posts: 43

Rep: Reputation: 15
Maybe Your mknods for sdb were wrong? I don't know many about, but found this link: http://lists.suse.com/archive/suse-l...-May/2541.html

Ignore the german words if You don't understand them. The important lines there start with mknod, chown, chmod.
 
Old 07-18-2005, 11:18 AM   #3
JimWright043
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
RoadRunner,

That was the problem, thank you for this solution.

I used:
mknod sdb b 8 16
mknod sdb1 b 8 17

and that worked.

-Jim
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
freecom classic 250 GB external usb hard drive prob slzckboy Linux - Hardware 2 11-10-2005 01:01 PM
Usb and other hardware permission prob artois_val Mandriva 1 09-30-2005 02:21 PM
adding second harddrive&usb thumb drive mbjbdc Linare 4 09-21-2004 07:29 AM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM
usb keyboard prob malix Linux - Hardware 0 09-08-2002 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration