usb partitions jump around

Asked by Jerry Story

I have a 300 gig usb hard drive divided into 3 partitions of 100 gigs each.

The problem is every time I boot (Feisty) these partitions jump around.
For example 'disk' becomes 'disk-1', 'disk-1' becomes 'disk-2', etc.
Everything else is okay.

This is what I have in mtab.
/dev/sdc6 /media/disk ext3 rw,noexec,nosuid,nodev 0 0
/dev/sdc5 /media/disk-1 ext3 rw,noexec,nosuid,nodev 0 0
/dev/sdc1 /media/disk-2 ext3 rw,noexec,nosuid,nodev 0 0

I edited mtab but it somehow got changed.

How can I make the partitions not jump around?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ralph Janke (txwikinger) said :
#1

Thanks for the question.

You can assign the drives via its UUID blockid-label. This won't change between boots.

Run

blkid

to obtain the ids for your different partitions and then add them into the /etc/fstab file instead of the device file.

UUID=<blk id disk1> /media/disk-1 ext3 rw,noexec,nosuid,nodev 0 0

I hope this helps

Can you help with this problem?

Provide an answer of your own, or ask Jerry Story for more information if necessary.

To post a message you must log in.