Paul Rogers wrote:
I'll keep this short, because it should go offline.
You guys are generally my "go to guys"--not surprizingly because we're
all running LFS. Would anyone have the time, inclination and experience
to bat back and forth some ideas on fixing a problem I'm having since
moving my LFS system(s) from one drive SMART said was having some
trouble to a larger, brand-new drive, since which GRUB is going into
rescue mode. What's going on makes no sense to me! So naturally I
haven't found the "fix". If you're willing, please respond to the email
below. Thank you all.
We could probably do an analysis and figure out what is going one, but the
quick and dirty solution is to install a distro like debian with custom
partitioning. Then just copy the LFS partition to the new drive and edit
/boot/grub/grub.cfg.
What I've done is
cd /boot/grub/
cp grub.cfg grub.cfg.orig
vim grub.cfg
You can remove 90% of the cruft and just leave the debian menuentry and
add an LFS menuentry. Below is what mine looks like.
Note that I always use a separate /boot partition, but if you use a gpt
partition table, you will also need a 1M grub partition.
-- Bruce
set default=1 # Zero based
set timeout=5
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
menuentry 'Linux Mint 17.2 Xfce 64-bit' {
insmod gzio
linux /vmlinuz-3.16.0-38-generic
root=UUID=3b35b7db-f76b-4a32-baa7-814538d95ee1 ro
initrd /initrd.img-3.16.0-38-generic
menuentry 'LFS SVN-20160104' {
linux /vmlinuz-4.3.3-SVN-20160104 root=/dev/sda4 ro raid=noautodetect
}
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page