On 6/17/19 8:26 AM, Vineet Jain wrote:
I have finally reached the stage where I need to make changes to the
grub bootloader which will then bring up the LFS i have constructed.
I did make the grub-img.iso file for precautionary purposes as stated.
And just for the purposes of a sanity check I booted my system with this
iso file. The bootup worked with this backup iso file and it got me to
the grub prompt.
But now how do we use this bootup to rectify the system ?
What are we supposed to do, to bring back the system online and restore
it to its previous state ?
Also is there a way to revert back to my previous grub loader where I
have the Ubuntu and Windows options to choose from once I am
successfully done constructing LFS ?
If you are using the iso command prompt, just insert
linux /boot/vmlinuz-5.1.10-lfs-SVN-20190616 root=/dev/sda2 ro
changing the kernel name and root partition to match what you have on
your system and tell grub to boot.
If you do not have a separate boot partition, then you didn't change the
existing configuration. You can mount the original partition on a
directory like /mnt/old. Then look ant /mnt/old/boot/grub/grub.cfg.
That file is quite complicated, but you really only need to look at the
menuconfig items and copy those to the new grub.cfg, modifying the
location of the kernel and initrd files so grub can find them.
An alternative is to run grub-mkconfig, but that creates a very complex
configuration that will probably need to be manually updated.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style