niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » hardware
USB HD SCSI ID Problem
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Strangelite@gmail.com
*nix forums beginner


Joined: 21 Feb 2005
Posts: 3

PostPosted: Fri Feb 18, 2005 8:33 am    Post subject: USB HD SCSI ID Problem Reply with quote

Apologies if this is not the right place.

I have a slackware 10.1 linux System with 6 SATA HD's in it - they
appear as /dev/sda-f -
I also have 6 USB external HD [used as a backup system] - never at the
samne time - but they change 1 /day

the 1st two days are OK as the USB HD show up as
/dev/sdg then /dev/sdh

I hope you can see where I'm going with this...

when I add the 3rd USB HD - I run out of SCSI ID letters in /dev/ -
i.e. there is no
/dev/sdi-m

now the qestion -

how do I add extra sd devies to /dev ?
or is that not sensible ?
or how do I find my extra USB HD in the system and get them mounted?

All help gladly received.
Back to top
Dances With Crows
*nix forums Guru


Joined: 01 Mar 2005
Posts: 328

PostPosted: Fri Feb 18, 2005 2:07 pm    Post subject: Re: USB HD SCSI ID Problem Reply with quote

On 18 Feb 2005 01:33:00 -0800, Strangelite@gmail.com staggered into the
Black Sun and said:
Quote:
Apologies if this is not the right place.

Right place, wrong Subject: . USB devices don't *have* SCSI IDs; the
SCSI device nodes are used because USB Mass Storage commands are pretty
similar to SCSI commands.

Quote:
I have a slackware 10.1 linux System with 6 SATA HDs in it - they
appear as /dev/sda-f . I also have 6 USB external HDs. the 1st two
days are OK as the USB HD show up as /dev/sdg then /dev/sdh
when I add the 3rd USB HD - I run out of SCSI ID letters in /dev/ -
i.e. there is no /dev/sdi-m

how do I add extra sd devies to /dev ? or is that not sensible ?

Of course it's sensible to want to add devices to a static /dev. The
default Slackware installation only includes /dev/sd[a-h] because not
that many people have more than 8 SCSI disks, and the people who do have
that many SCSI disks are assumed to know how to use mknod. "man mknod",
then check /usr/src/linux/Documentation/devices.txt for the major and
minor numbers you need. /dev/sd[i-m] all have major 8, minors vary, so
you could do this:

MINOR=128 # minor for /dev/sdi
for DEV in i j k l m ; do
mknod /dev/sd$DEV b 8 $MINOR
let MINOR=$MINOR+16
done

....this only creates device nodes for the whole disks. If you need
nodes for the partitions on the disks, you'll have to modify the script.

Quote:
or how do I find my extra USB HD in the system and get them mounted?

Slackware is not really for the novice user. If you are a novice user,
you will have a much better time with another distro. HTH,

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / Hire me!
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume
Back to top
John-Paul Stewart
*nix forums Guru


Joined: 20 Feb 2005
Posts: 497

PostPosted: Fri Feb 18, 2005 2:51 pm    Post subject: Re: USB HD SCSI ID Problem Reply with quote

Strangelite@gmail.com wrote:
Quote:
Apologies if this is not the right place.

I have a slackware 10.1 linux System with 6 SATA HD's in it - they
appear as /dev/sda-f -
I also have 6 USB external HD [used as a backup system] - never at the
samne time - but they change 1 /day

the 1st two days are OK as the USB HD show up as
/dev/sdg then /dev/sdh

I hope you can see where I'm going with this...

when I add the 3rd USB HD - I run out of SCSI ID letters in /dev/ -
i.e. there is no
/dev/sdi-m

I see you've already recieved a good answer about creating more entries
in /dev. But I'll also point out that if you unload the usb-storage
module (after removing the USB drive), the kernel will "forget" about
it. Then you reload the module, plug in the next drive, and it will be
/dev/sdg. So by loading and unloading the module you'll always have
your backup at /dev/sdg, if you want.

BTW, it's not entirely clear to me what will happpen after you've used
/dev/sdm. When you re-attach the first hard drive it may not get
re-assigned its former designation of /dev/sdg. It might get /dev/sdn
instead. IOW, there's a chance that the system will just keep counting
until you unload/reload the usb-storage module, reboot, or run out of
SCSI disk nodes (of which there are 256 possibilities).
Back to top
Anton Ertl
*nix forums addict


Joined: 20 Feb 2005
Posts: 91

PostPosted: Sat Feb 19, 2005 8:43 am    Post subject: Re: USB HD SCSI ID Problem Reply with quote

Strangelite@gmail.com (Strangelite@gmail.com) writes:
Quote:
I also have 6 USB external HD [used as a backup system] - never at the
samne time - but they change 1 /day

the 1st two days are OK as the USB HD show up as
/dev/sdg then /dev/sdh

Yes, I have seen this on some kernels. However, the 2.6.5 kernel I
use at home and the 2.6.9 kernel on my laptop seem to always assign
the first free SCSI id to USB-storage devices.

So, I suggest that you try a new kernel.

- anton
--
M. Anton Ertl Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 8:37 am | All times are GMT
navigation Forum index » *nix » Linux » hardware
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Problem Mortgage | Loans | Loans | Credit Cards UK | Actress
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3347s ][ Queries: 16 (0.2387s) ][ GZIP on - Debug on ]