PDA

View Full Version : [SOLVED] How does Grub Rescue work?



davethewave83
January 14th, 2012, 03:42 AM
I wanted to make a backup of my OS so I used dd to copy the entire partition to another drive, when I tried to boot, it didn't boot because the UUID was different from what is in the /boot/grub/grub.cfg of the original drive. This makes sense to me, and I do understand that in order to fix it I could simply edit the grub.cfg from a liveCD or another OS and give it the proper UUID, however, I am making this post for educational purposes and not to troubleshoot a pending problem.

I wish to know if it is possible to issue a command at the grub rescue prompt to manually boot into the OS, I imagine this should be possible, but perhaps not. Perhaps the grub rescue is for something else entirely.

If anyone can enlighten me on this matter and what commands are possible at the grub rescue I would be most grateful, thanks!

Herman
January 14th, 2012, 07:49 AM
Rescue Mode (''grub rescue>'') Booting (https://help.ubuntu.com/community/Grub2#Rescue_Mode_.28.27.27grub_rescue.3E.27.27.29 _Booting)

mikewhatever
January 14th, 2012, 08:01 AM
Check out the Grub2 howto: https://help.ubuntu.com/community/Grub2#Command_Line_and_Rescue_Mode

As for UUID, you can change the UUID of the file system to want it was with 'sudo tune2ts -U UUID /dev/sdXY'.

davethewave83
January 14th, 2012, 09:32 PM
Awesome, thanks for the resources guys.