[SOLVED] 8.4. Using GRUB to Set Up the Boot Process Problem please help me !!!
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
For the 8.4.1 question... The grub-mkrescue command depends upon xorriso. Xorriso is not part of LFS, so it has to be installed sort of as a side-project, so-to-speak. Xorriso is in the BLFS book. All of this is stated in 8.4.1. Section 8.4.1 merely creates an emergency boot disk (which everyone should possess anyway) in case you bust your host system's boot loader doing chapter 8. So either install xorriso and create the boot disk according to 8.4.1, or download and burn a Super GRUB 2 Disk (a free and popular emergency boot disk). I recommend against proceeding without possessing (and knowing how to use) a boot disk if you intend to do the grub-install step in chapter 8 (otherwise, it's not too risky to proceed without a boot disk at this time IMO).
For the 8.4.2 question... That stuff is no longer valid. See the LFS 7.2 errata. So you have to skip that. I would just try (hd1,1) in the grub.cfg for /dev/sdb1. It might just work, and it sure won't hurt anything to try.
For the 8.4.3 question... I would use the example in the book and change the set root= command to (hd1,1) and the root= kernel parameter to /dev/sdb1.
My recommendation is NOT to do the grub-install step in chapter 8 at this time. It will replace your host system's boot loader with LFS's which you don't know is even going to boot yet. I would skip the grub-install step for now, create the grub.cfg file, and take the necessary steps to add the LFS system to the boot menu of the host system's boot loader and boot it from there.
Please follow the instructions we posted! If anything is unclear DO NOT just execute commands.
You are still executing commands from 8.4: Do not do any steps from chapter 8.4!!! There is no point in doing these steps if your hosts grub is used. To emphasize: None of the steps from 8.4 should be done. Skip that chapter.
You might have just overwritten your hosts boot loader by executing grub-install /dev/sda........ I'm not sure if the following will work.
As stated in post #4: You need to run the following command from your host as root:
Code:
update-grub
When that command finishes, post the lfs related part from /boot/grub/grub.cfg (on your host!).
inittab and fstab aren't commands but configuration files...........
From LFS post the content of those files!
Make sure you understand what is being done, if you don't you will probably mess up your LFS build and possibly your host.
Please follow the instructions we posted! If anything is unclear DO NOT just execute commands.
You are still executing commands from 8.4: Do not do any steps from chapter 8.4!!! There is no point in doing these steps if your hosts grub is used. To emphasize: None of the steps from 8.4 should be done. Skip that chapter.
You might have just overwritten your hosts boot loader by executing grub-install /dev/sda........ I'm not sure if the following will work.
As stated in post #4: You need to run the following command from your host as root:
Code:
update-grub
When that command finishes, post the lfs related part from /boot/grub/grub.cfg (on your host!).
inittab and fstab aren't commands but configuration files...........
From LFS post the content of those files!
Make sure you understand what is being done, if you don't you will probably mess up your LFS build and possibly your host.
Sorry I am very new for linux and LFS, and Im oversea student so Language is a little problem when i try to study this.
Some chapter i understand and Some i'm not.
3. When i use update-grub command from my root system.
This is output:
Quote:
root@princezidane-virtual-machine:/mnt/lfs# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-29-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-29-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
Found Linux From Scratch (7.2) on /dev/sdb1
done
when i use command whereis grub.cfg
output is:
Quote:
grub: /etc/grub.d /usr/lib/grub /usr/share/grub
4.If i dont use command grub-install /dev/sda
When i finished 9.3 Reboot the System, It not boot LFS but it boot my distribution (Ubuntu).
Last edited by princezidane; 12-20-2012 at 03:14 AM.
Sorry I am very new for linux and LFS, and Im oversea student so Language is a little problem when i try to study this.
Some chapter i understand and Some i'm not.
Language can be a problem, but a basic understanding of Linux is assumed (vi. Prerequisites). I doubt if your basic Linux knowledge is sufficient.
Quote:
1.my inittab
This looks OK.
Quote:
2.fstab
This also looks OK.
Quote:
3. When i use update-grub command from my root system.
This is output:
Quote:
root@princezidane-virtual-machine:/mnt/lfs# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-29-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-29-generic-pae
Found memtest86+ image: /boot/memtest86+.bin Found Linux From Scratch (7.2) on /dev/sdb1
done
That also looks OK, a LFS entry is found (the bold part).
Quote:
4.If i dont use command grub-install /dev/sda
When i finished 9.3 Reboot the System, It not boot LFS but it boot my distribution (Ubuntu).
Like I said before: Forget about the grub-install /dev/sdX command.
When you boot you get a menu with several options, one of those is LFS. Select it (arrow down/up) and press enter.
Do chapter 8.3, its about your kernel which is rather important. Without it you create all sorts of problems. Fix this first.
You can skip 7.10 (Configuring the Linux Console) if you want/need to. It isn't the cause of your error.
sorry i tell you wrong i skip8.4.
What cause of this problem?
To resolve this problem what is chapter that I should to start from it again?(I use vmware and i snapshot when I finished each chapter )
Anyway in chapter 8.2 i skip
Quote:
hdparm -I /dev/sda | grep NCQ
my lfs is in sdb2 type 3.
Can I skip this step or not?
Last edited by princezidane; 12-20-2012 at 04:11 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.