Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

With every boot my HDDs randomly change places, as in sometimes my root partition is on sda, while other times it books on sdb.Its really not bothersome as I use UUID for fstab and such, but its really just annoying. Does anybody know if there is a way to keep it from changing? I am using an IDE drive and a SATA drive.

share|improve this question

The kernel gives no guarantee that these devices will retain the same device node names (ie, sda, sdb, etc) when the machine is booted. The names depend on the order in which the devices are discovered, which can be arbitrary.

This is exactly why we use the UUID and/or labels where possible. If you want to reference a specific disk, the symlinks in /dev/disk/by-* might be useful for you.

share|improve this answer
Yes, I already know that. But I would think there would be some waqy to help control which which id detected first, considering one is SATA and the other is IDE. – Vladashram Aug 21 '12 at 1:03
The important point here is that the order is arbitrary. The kernel probes for ATA (ie, SATA and IDE) devices in parallel to reduce boot times. This means that there is no specified order. Is there a reason you don't want to use the symlinks? – Jeremy Kerr Aug 21 '12 at 1:55
No real specific reason, I just think it would be a little more orderly. I often use UUID. Thank you for your help. – Vladashram Aug 21 '12 at 8:12

Your Answer


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.