# # scsidev: SCSI utility for linux
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

scsidev: SCSI utility for linux

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.

Some material is very old and may be incorrect today

© February 2005 Bruce Garlock

I recently built an external SCSI enclosure, using an old tower. I used 3 SCSI drives, and built a LVM, so I could concatenate the drives together into one large drive, to host my temporary video scratch files. Everything went well, until I rebooted. One of the SCSI drives, I had to assign a lower SCSI ID, since I ran out of jumpers! I only needed on more jumper to give the drive a higher SCSI ID, like 12, so I have it one of my lower ID's that was unused (3). When I rebooted, I forgot about how Linux allocates the SCSI device names, which is basically a first come first serve allocation. /dev/sda would be linked to the lowest SCSI HD ID. If you have a mix of SCSI devices, like scanners, ZIP disks, and even ide-scsi emulation, then things get complicated quickly. Especially if you add and remove the SCSI devices while your system is powered up.

I started reading the SCSI 2.4 HOWTO, to see if there was a better way of taking care of how linux names SCSI devices. I think a lot of these issues are addressed in 2.6, but I have not had time to test out that kernel yet, especially on production equipment. The HOWTO points to a very useful utility which helps overcome the way linux 2.4 names SCSI devices. It basically creates a /dev/scsi directory, and the naming of the SCSI devices stay the same. This way, you can point to those devices in /etc/fstab or you can even create aliases that are easy to remember like /dev/scsi/scsiscanner, /dev/scsi/scsizip, or /dev/dvdburner.

Have a look at this utility, which should probably help a lot of folks out who have SCSI on their system, and have a lot of mixed SCSI devices like I do. It should really simplify SCSI naming, and make things more organized if you need to add and remove any SCSI devices while your system is running:



If you found something useful today, please consider a small donation.

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> scsidev: SCSI utility for linux

Inexpensive and informative Apple related e-books:

Take Control of the Mac Command Line with Terminal, Second Edition

Take Control of OS X Server

iOS 10: A Take Control Crash Course

Take Control of Apple Mail, Third Edition

Take Control of Automating Your Mac

More Articles by © Bruce Garlock

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure, or nothing. (Helen Keller)

Linux posts

Troubleshooting posts

This post tagged:









Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode