On Wed, Dec 30, 2020 at 03:07:11PM -0600, Bruce Dubbs wrote: > On 12/30/20 12:50 PM, Ken Moffat wrote: > > On Tue, Dec 29, 2020 at 10:04:19PM -0600, Brian Hagen wrote: > > > Hello: > > > > > > After numerous passes to reach the finish line on LFS 9.1, I got a > > > working system installed. The prompt reads "-bash-5.0#". However, the > > > grub installer did not go well. It presents a message "WELCOME TO > > > GRUB!", and then goes nowhere. Only a reboot regains control. > > > > > > I was able to access the new LFS system by using a System Rescue CD > > > version 7.01. It has a menu option with a utility named "findroot". That > > > utility searches for partitions that have an init function and lists > > > them. Choosing the new LFS partition brings up a login prompt. Once > > > logged in, I could see that the new LFS system is working. It can ping > > > LAN and WAN IP addresses. However, without a workable ftp or sftp > > > facility, I am not certain how to add more networking capabilities. > > > > > [...] > > > > But perhaps the easiest solution (who knows, it might work, and > > probably nothing lost if it doesn't) is to boot to the LFS system > > from SRCD, check that the disk is showing up as /dev/sda, and then > > rerun 'grub-install /dev/sda'. You will need /dev /proc /sys to be > > mounted for that, I've never used 'findroot', perhaps it has already > > mounted all three. If not, from another SRCD tty bind them to > > wherever the LFS system is mounted (ISTR SRCD reserves /mnt for its > > own use but lets you create directories beneath it - from the second > > SRCD tty 'mount' should show everything including where the LFS > > system is. > > The problem with grub is that it depends on the host system. If /boot is > not a separate partition, then it is on the host OS partition and difficult > to get to from LFS. (You have to mount the initial OS partition to get to > it.) > > If you installed grub with grub-install within chroot without a separate > /boot partition, then it probably is looking at the LFS partition's /boot > directory. You should have /boot/grub/grub.cfg, but if you just copied what > is in LFS, then you don't get the option of booting to the original host OS. > The kernel and initrd for that will be on a different partition from the LFS > system. >
True, but I was recalling his post from 21st Dec (LFS on sda1, swap on sda5, host system apparently removed). > Note also that the grub.cfg file in LFS has to be customized for the actual > LFS partition used (set root=(hdx,y); root=/dev/<device&partition). Yes. From memory his root= was wrong, but since grub had not managed to load a linux kernel that was not the immediate problem. Unfortunately, configuring a kernel (and getting grub set up adequately) is now one of the hardest parts of LFS. ĸen -- (The Balancing Monks) use small brass weights, none of them bigger than a fist. They work. Well, obviously they work. The world has not tipped up yet. -- The Thief Of Time -- 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