Em 18-08-2012 16:21, Emerson Yesupatham escreveu:

...

> My host PC is Fedora 14.
> It has two Hard disks.
> /dev/sda has Fedora 14 (/dev/sda1 is /boot partition in Host PC)
> /dev/sdb has LFS-7.0 (/dev/sdb3 is / partition (LFS is located))
>  
> I can say I have skipped Section 8.4 (Using Grub to Set up the Boot
> process), I mean I have modified the host PC's GRUB boot loaders'
> menu.lst file to include my newly built lfs kernel. Host PC's
> menu.lst/grub.conf looks like below:
>  
> ########################
> #Begin grub.conf
> default=0
> timeout=8
> splashimage=(hd0,0)/grub/splash.xpm.gz
> #hiddenmenu
> title Fedora (2.6.35.6-45.fc14.i686)
>  root (hd0,0)
>  kernel /vmlinuz-2.6.35.6-45.fc14.i686 ro
> root=UUID=9fe0cddd-fe18-4d2b-825c-5fb4d788caf3 rd_NO_LUKS rd_NO_LVM
> rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us
> nomodeset rhgb quiet
>  initrd /initramfs-2.6.35.6-45.fc14.i686.img
> # Emerson added the below three lines to boot lfs kernel from /dev/sda1
> (/boot of host PC) and to mount LFS root (/) which is in /dev/sdb3
> title Linux (3.1-lfs-7.0)
>  root (hd0,0)
>  kernel /vmlinuz-3.1-lfs-7.0 root=/dev/sdb3 ro
> #End grub.conf. 
> ##########################

Just a suggestion,

If you upgrade Fedora and a new kernel is installed, menu.lst/grub.conf
will be overwritten. To be safe, mak always a backup, after editing:

cp -v grub.conf grub.conf-`date +%Y.%m.%d`.


-- 
[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to