Unable to boot from USB
I've created a permanent Linux installation on a USB drive, for the most part following this guide. Everything boots fine on my machine, but when I plug it into another computer, GRUB errors with ERROR: device 'UUID=...' not found. Skipping fsck. and then drops me into an emergency shell. I've regenerated the fstab and the GRUB config, but the USB still boots only on the machine I created it on.
Help?
EDIT: After manually booting with the fallback image and editing the fstab, everything boots just fine.
Edited 15 May 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 0 · 100% up
- Kind
- Text
- ID
- bowsve
20 comments
You need repartition your drive, and change it to mbr, or you need add 0xEF02 part to the GPT drive, for grub boot record Look at this https://wiki.archlinux.org/index.php/GRUB#GUID_Partition_Table_(GPT)_specific_instructions
P.s.: sorry for my bad English... :)
Thats really strange, because I already have a BIOS boot partition.
Please Show your fstab
Dont repartition the drive
You got gpt?
Noob question: what is GPT and how do I know I have it?
As root user type:
gdisk -l /dev/sda
If the output of the above command shows like this,then you have MBR disk,
Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: not present
If the output shows like this then you have GPT disk,
Partition table scan: MBR: protective BSD: not present APM: not present GPT: present
What I think is happening is GRUB doesn't know where to boot from, because for some reason the UUID changed. If you have GPT, do blkid, and take note of your root partitions (/) PARTUUID. Then, go to your grub configuration file, (/boot/grub/grub.cfg),
and find a way to add a boot entry for your root partition that uses the PARTUUID you got
Just to make sure I'm doing this right, I found:
And I changed it too:
I dont see any immediate fault. The best way to see if it works is to just try it. Update me please
That's a funny link you got there. What's wrong with this guide here?
The only difference between installing on an internal disk and an external one (in modern Linux) is that the external one is easier removable, and you'll want to drop the autodetect hook from mkinitcpio.
Edit: after reading more comments, stop fiddling with UUIDs! They don't just change for no reason. Drop the
autodetecthook, regenerate your initrd and watch it work. Then read the wiki on why it does.Please explain how, am a stupid noob.
Also, a lot of things need to be changed if you're installing on a USB. Its not the same thing. True, most of the parts are similar.
And my problem is this: I can't find the true UUID of the root partition on the computer I'm planning to use the USB on, and the kernel won't load.
In your
/etc/mkinitcpio.confyou have a lineHOOKS=(...), remove the wordautodetectfrom it. Remember that lines starting with#are comments, so edit the line that doesn't have one. After that, runmkinitcpio -Pas root to regenerate.I have another Arch install on my external HDD and the only thing I did differently was encrypting the partition before formatting it (and, obviously, all the configuration changes needed for encrypted root). And of course removing autodetect.
What do you mean with the "true UUID"? If it boots on one PC, then the UUID in Grub must be correct, otherwise it wouldn't even boot there.
That guide is basically just a simplified version of the official installation guide, with very few additions and a lot of assumptions.
Replace /dev/sdX to the UUID=... records
Tried that already, didn't work.
This will not help, grub does not use fstab for booting AFAIK.