Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

So I installed Ubuntu onto a USB flash drive (like actually installed it, not made a LiveUSB. I used an existing liveUSB to press install and put it on the other USB drive instead of that one). Now when I installed it, the USB drive was located in /dev/sdc, but when I try to boot from it, it is located at /dev/sdb, and I get the error /dev/sdc1 does not exist. How can that be fixed?

Is there a way to make this work on any position (e.g. sda / adb / adc etc...)?

share|improve this question

1 Answer 1

You need to work with UUID's. Some time ago Ubuntu started using UUID's because it is not known in what order USB devices are mounted (1 might be mounting quicker at a given time than at another given time).

All you need to know can be found here: https://help.ubuntu.com/community/Fstab

To get a list of all the UUIDs, use one of the following two commands:

sudo blkid
ls -l /dev/disk/by-uuid

Example mounting with UUID:

UUID=3f8c5321-7181-40b3-a867-9c04a6cd5f2f  /media/data  ext3  relatime,noexec  0  2

So in short ...

  • get the UUID
  • edit /etc/fstab on the USB stick
  • replace /dev/sdb1 with the UUID
share|improve this answer
    
where is /etc/fstab found? liveUSB on whicj I install linux from or USB where it is installed? –  Iddo Gino Apr 2 '13 at 14:20
    
I just checked and the file (on the USB with installed ubuntu on it) already has the UUID. it says on the last line UUID = .....[uuid - checked and it is correct] / ext2 errors=remount-ro 0 1 –  Iddo Gino Apr 2 '13 at 14:29
    
#1 fstab on the usb #2 that is weird... It is the one thing I know that could cause this. UUID should always be the same (unless you re-calculate it yourself). –  Rinzwind Apr 2 '13 at 14:46
    
no the UUID of the Ubuntu USB is already found in the fstab file. it isthe correct UUID bu the problem still accurs –  Iddo Gino Apr 2 '13 at 14:53
    
well turns out changing the file doesnt help at all and the same problem keeps on happening –  Iddo Gino Apr 2 '13 at 15:06

Your Answer

 
discard

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.