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.

2 Answers 2

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


share|improve this answer

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

Your Answer


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