Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an HP xw8200 workstation running linux with two small, fast SCSI drives hooked up to the onboard LSI SCSI controller. The drives get labeled /dev/sda & /dev/sdb in /dev, respectively. I have a large SATA disk that I want to add to the system to store data, but every time I connect it, it's /dev gets assigned sda & the two scsi drives are assigned sdb,c, which messes with the boot procedure. How can I get this SATA drive to use sdc?

share|improve this question
1  
Why are you not using labels or UUIDs for boot? –  Ignacio Vazquez-Abrams Mar 22 '11 at 10:32
    
I am using LVM & that is how fstab was generated. –  churnd Mar 22 '11 at 10:50
    
@churnd You can modify fstab to use UUID or labels, UUID=[uuid] and LABEL=[label] respectively. The UUID can be detected with blkid (run it as root). The label can be found with ls -l /dev/disk/by-label/ –  Lekensteyn Dec 3 '11 at 13:13

1 Answer 1

You could attempt to use udev (that daemon that controls the /dev filesystem) to write some rules that change the /dev entry for the SATA, and then modify your fstab to accomidate this.

You can find out how to write a udev entry (the page mostly covers USB devices, but that and the man pages should help you get a good idea on how to do it) by following the link above.

HackADay might expand your knowledge on udev rules a little bit as well.

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.