From: lfs-support-boun...@linuxfromscratch.org [mailto:lfs-support-boun...@linuxfromscratch.org] On Behalf Of Hugh Sent: Monday, August 31, 2009 8:47 AM To: LFS Support List Subject: Re: Problem In Making The LFS System Bootable
On Mon, Aug 31, 2009 at 5:59 PM, Amir Khezrian<amir.khezr...@gmail.com> wrote: > Hi everyone > > I have a problem in section 8.4(making the LFS System Bootable, LFS 6.4) > I have two hard disks. the fisrt one is for host system as master and the > second one is for LFS as slave. > things that i did in section 8.4 was : > - - - - - - - -- - -- -- ---- - -- - ----- > root :/# grub > grub > root (hd1,0) > grub > setup (hd1) > > > cat > /boot/grub/menu.lst << "EOF" > # Begin /boot/grub/menu.lst > # By default boot the first menu entry. > default 0 > # Allow 30 seconds before booting the default. > timeout 30 > # Use prettier colors. > color green/black light-green/black > # The first entry is for LFS. > title LFS 6.4 > root (hd0,1) > kernel /boot/lfskernel-2.6.27.4 root=/dev/hdb1 > EOF > > - - - - - - - -- - -- -- ---- - -- - ----- > > but when i boot from the second hard (by removing the the first hard), i > just encounter with this error : > > root (hd1,0) > Error 21 : selected disk does not exist I think you figured out that hard drives are dynamically named at boot time- unplugging the primary (hd0) means that the remaining drive is now (hd0). > > and when i just changed the menu.lst file as : > > - - - - - - - -- - -- -- ---- - -- - ----- > cat > /boot/grub/menu.lst << "EOF" > # Begin /boot/grub/menu.lst > # By default boot the first menu entry. > default 0 > # Allow 30 seconds before booting the default. > timeout 30 > # Use prettier colors. > color green/black light-green/black > # The first entry is for LFS. > title LFS 6.4 > root (hd0,0) > kernel /boot/lfskernel-2.6.27.4 root=/dev/hda1 > EOF > - - - - - - - -- - -- -- ---- - -- - ----- > this time i saw this error : > > root (hd0,0) > Error 11: unrecognized device starting > > I don't what is wrong here ? > Thanks for any help I would do this: Enter grub's shell with this command: grub type setup (hd and don't hit enter- hit tab. Grub will give you a list of options. This will tell you what grub can read- you may need to compile in support for additional hardware or filesystems (directly, not as modules). Also, make sure your mtab and fstab are correct. Does this help? >I am wondering if the second hard disk is still the second hard disk >if you removed the first one. You may need to keep it there. >I'm not answering your question but rather bring here my own one. >I compile the system successfully(it should be) but can't boot it up. >I installed LFS in /dev/sda4, vista was installed in /dev/sda1 and mbr >also belong to vista >i setup the grub as root(hd0,3), setup(hd0,3) but got the same error >message: Error 11: unrecognized device starting or 'unrecognized >selected disks' >Why? See above.... -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page