Dan McGhee wrote: >> Since my post of just an hour ago, my options have been reduced to >> one--write to the MBR.
> And that's what I did. I got booted successfully except that I learned > that I had not set a password for root nor added any other users so I > didn't get to "play." I generally edit /etc/passwd with: root::0:0:root:/root:/bin/bash Notice that there is no x between the first and second colon. This will let you log on as root without a password. Of course I recommend you change that after you can successfully boot! > If the goal was to get a working LFS system, I achieved it. If the goal > was to learn more about Grub 2, I achieved it. Congratulations. > If the goal was to > manipulate grub successfully as the book says or to have it work like > I've seen it work other places, I failed. Not failed. You just need to learn a little more. Take a look at this for a bit more advanced usage: http://linuxfromscratch.org/pipermail/lfs-dev/2009-December/063355.html I agree that the GRUB2 documentation leaves a bit to be desired, but it has been updated fairly recently: http://www.gnu.org/software/grub/manual/html_node/index.html It does help to understand what is going on: grub-mkdevicemap merely creates /boot/grub/device.map grub-install copies all the modules to /boot/grub and creates img files. /boot/grub/boot.img is the new MBR. /boot/grub/core.img is the main grub program that is capable of reading /boot/grub and loading modules. It actually resides in the first track or the hard disk between the MBR and the first partition. For the common DOS type partition, it is limited to 62 512-byte sectors. It has the modules needed to read /boot embedded in the image. grub-mkconfig probes the disk and writes /boot/grub/grub.cfg. We really don't need this for LFS as we can write our own cfg file. It calls a series of bash scripts in /etc/grub.d/. grub-setup writes boot.img and core.img to the 1st track of the hard disk. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page