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 two hard drives:

  • internal (SATA)
  • external (USB).

Before updating Linux (Fedora), the internal drive was in /dev/sda and the external drive in /dev/sdb. Now, after updating, those two are switched.

How do I move the internal drive back to /dev/sda?

share|improve this question

migrated from stackoverflow.com Nov 16 '11 at 14:05

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

You can statically assign /dev nodes using udev rules, this should work for you if you wish to switch /dev/sdb and /dev/sda.

http://www.thelinuxdaily.com/2010/01/statically-assign-dev-nodes-to-hardware-devices-in-linux/

share|improve this answer
add comment

Put simply: You don't. If you want persistent names to identify hard disks, you use the disk ID with the symlinks provided in /dev/disk/by-id.

share|improve this answer
add comment

Your Answer

 
discard

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