Re: How can I tell what drive is sdb?
From: Nagilum <hidden>
Date: 2010-01-27 18:10:37
----- Message from matthew.garman@gmail.com ---------
Date: Wed, 27 Jan 2010 08:29:50 -0600
From: Matt Garman [off-list ref]
Subject: Re: How can I tell what drive is sdb?
To: Steven Haigh [off-list ref]
Cc: linux-raid@vger.kernel.org
On Wed, Jan 27, 2010 at 8:21 AM, Steven Haigh [off-list ref] wrote:quoted
On 28/01/2010, at 1:18 AM, Jan Ceuleers wrote:quoted
Matt Garman wrote:quoted
quoted
Is there a way to identify what drive is what?Another tedious approach: use smartctl or hdparm as suggested above to get an initial mapping of /dev/sdX to serial number. Then, disconnect the SATA cable of all but one drive, and reboot. Now look at what /dev/sda's serial number is, and compare that to the initial mapping. Eventually /dev/sda will correspond to /dev/sdb when all drives are connected. If the controller supports hotswap, you could do something similar without so many reboots. This scheme makes the assumption that it's easier to pull SATA cables than just look at the drive's serial numbers.
blkid could also be used to identify the drives. It should work with all types of drives SCSI/SATA/PATA/USB/... ----- End message from matthew.garman@gmail.com ----- ======================================================================== # _ __ _ __ http://www.nagilum.org/ \n icq://69646724 # # / |/ /__ ____ _(_) /_ ____ _ nagilum@nagilum.org \n +491776461165 # # / / _ `/ _ `/ / / // / ' \ Amiga (68k/PPC): AOS/NetBSD/Linux # # /_/|_/\_,_/\_, /_/_/\_,_/_/_/_/ Mac (PPC): MacOS-X / NetBSD /Linux # # /___/ x86: FreeBSD/Linux/Solaris/Win2k ARM9: EPOC EV6 # ======================================================================== ---------------------------------------------------------------- cakebox.homeunix.net - all the machine one needs..