Grub final hurdle
I have created grub iso brunt it to cd, do I just insert the disc What do cd,s show up as sda,hda etc. or do I use [code]grub-install --grub-setup=/bin/true /media/cdrom
|
What exactly are you trying to do?
|
I am at Section 8.4 in the 6.7 book setting up grub. I have 10gig drive with only lfs build on it I now want to set grub up so as to boot system. Having googled some more I think I need to miss some parts of 8.4 Do I just need to install grub now, if so where? fdisk -l shows hda1 I have installed lfs on hda2 is swap I did try
Code:
grub-install --grub-setup=/bin/true /dev/hda1 |
Hi,
Quote:
If LFS is the only "distro" on your system and you do need grub, don't spend too much time on chapter 8.4.1 (do read it, just don't do the commands). You can always use the liveCD to get access and repair stuff if needed Start with 8.4.2. Setting Up the Configuration, read it first a few times and then follow the steps given. Quote:
Hope this helps. |
Grub itself is installed onto the bootloader of your hard drive. As far as what you are trying to run, it would need to be /dev/hda and not hda1
EDIT: druuna beat me to it. |
ok ran
Code:
grub-install --grub-setup=/bin/true /dev/hda Code:
grub-mkconfig -o /boot/grub/grub.cfg |
Can you post the output of "mount" (without the quote)?
|
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw) |
Try mounting hda to /mnt and run update-grub.
|
mkdir /mnt/hda1
cd /mnt mount dev/hda1 returned special device /dev/hda1 dose not exist. Just a thought I still have the original build of lfs in tty2 which shows fdisk -l dev/hda1 * Is this causing the problem??? |
Hi,
It looks like you stopped and restarted somewhere along the line and did not remount some of the mount-points. If you reboot for whatever reason you need to remount some mount-points en re-enter the chrooted environment. These steps (when working on chapter 6 and beyond): Code:
#6.2.2 Now you are set up to continue. Hope this helps. |
Done as you said druuna and got grub loaded but when starting pc kernel panic,
Code:
Root-NFS No VFS server available giving up grub.cfg shows almost the same as book version, insmod ext3 set root=(hda,1) search --no-floppy --fs-uuid --set 915852a7-859e-45a6-9ff0-d3ebfdb5cea2 linux /boot/vmlinux-2.6.35.4-lfs-6.7 root=/dev/hda1 ro single The bold bits are the difference to book. Code:
grub-mkdevicemap --device-map=device.map then Code:
grub-install --grub-setup=/bin/true /dev/hda |
Quote:
Quote:
To be honest I don't think this line is needed at all, but I haven't tried playing with it yet, so leave it as mentioned in the book. Quote:
Quote:
You might still get some errors: The output posted talks about sda and not hda (which you used). If the above 2 changes don't solve all the problems change this line: linux /boot/vmlinux-2.6.35.4-lfs-6.7 root=/dev/hda1 ro single into: Code:
linux /boot/vmlinux-2.6.35.4-lfs-6.7 root=/dev/sda1 ro single |
I tried the setting as described plus some varibles but got a failure
Code:
Populating /dev with device nodes |
Quote:
as druuna already stated in his earlier post you will have to change /dev/hda1 to /dev/sda1 in /boot/grub/grub.cfg. Do NOT run grub again. The problem is that the kernel on the liveCD exposes your hdd as /dev/hdXX. The newer kernel of the LFS system, however, exposes them as /dev/sdXX. Also check your /etc/fstab for correct device-names. Your swap partition is also falsely named as /dev/hda2. It should be /dev/sda2. |
All times are GMT -5. The time now is 08:49 AM. |