Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Have multiple drives on the server. I'm booting up to rescue mode and seems like the /dev/sd* do not map in the same sequence as normal.

What is the best way to figure out which drive is which? Perhaps just giving me the manufacture information or by connection?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

There are a lot of different approaches. First you can try mounting the various /dev/sd* devices and looking at their contents.

If you're using LVM, the volumes should appear in /dev/vgname/lvname no matter what /dev/sd* devices they come up as. Same for software raid devices (MD).

If your disks have labels, there is probably a map in /dev/disk/by-label.

If you keep your fstab by UUID (not a bad idea), there's a map in /dev/disk/by-uuid/.

share|improve this answer
    
Hm, I don't seem to have by-label on my box (Fedora 13). –  Belmin Fernandez Dec 19 '10 at 5:21
    
I just found parted -l and like that option better but thanks! –  Belmin Fernandez Dec 22 '10 at 10:44

Look at the symlinks in /dev/disk/by-id.

share|improve this answer

I use the command: df -a

It shows the name of each device /dev/sd* and where its mounted, it also gives some filesystem usage statistics.

Also you could look at the contents of /etc/fstab but if your devices aren't mapping as usual, then maybe this file won't be correct.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.