Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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

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

You must log in to answer this question.