On 01/08/2015 07:50 PM, [email protected] wrote: > > > Le 08-01-2015 14:35, Armin K. a écrit : > >> On 01/08/2015 07:02 PM, [email protected]: >> Le 08-01-2015 12:38, Pierre Labastie a écrit : Le 08/01/2015 15:30, >> [email protected] écrit : Le 08-01-2015 05:06, Pierre Labastie a >> écrit : Le 08/01/2015 03:44,[email protected] >> <mailto:[email protected]>a écrit : Hi! when I boot, it fails with >> '.... unable to mount root fs on unknown block 0,0 [...] >> ----------------------LFS------------------------------------------------------------------------------------------- >> /dev/sda8 9,9G 2,3G 7,1G 25% /mnt/lfs */dev/sda7 97M 9,6M 83M 11% >> /mnt/lfs/boot* /dev/sda9 3,0G 69M 2,8G 3% /mnt/lfs/var /dev/sda10 5,0G 840M >> 3,9G 18% /mnt/lfs/usr udev 10M 0 10M 0% /mnt/lfs/dev tmpfs 982M 0 982M 0% >> /mnt/lfs/run to boot the LFS, I add a new entry in /etc/grub.d/40_custom of >> the host, then ran update-grub menuentry "LFS 7.6 on sda7" { insmod ext2 set >> root='(hd0,7)' echo 'Chargement de Linux LFS...' linux >> /vmlinuz-3.16.2-lfs-7.6 root=/dev/sda7 ro echo 'Chargement de Linux LFS...' >> } As far as I understand your setup you should keep: insmod > part_gpt and the "linux" line should be: linux /vmlinuz-3.16.2-lfs-7.6 > root=/dev/sda8 ro But that does not explain the error you see. You may be > missing some switches in the kernel config, concerning either your disk > hardware (with standard ATA disks, you need to enable several switches in > "Serial ATA and Parallel ATA drivers"), or the GPT partition scheme (you need > "EFI GUID partition support", maybe the first thing to check). Pierre The > "linux" line should be: linux /vmlinuz-3.16.2-lfs-7.6 root=/dev/sda*7* ro > since it's the boot partition, sda8 is / For linux, "root" is '/', and, since > '/' is on /dev/sda8, I confirm that the linux line should have > "root=/dev/sda8". The boot partition is only "root" for grub. Hence the > "root=(hd0,7)" in the grub commands. Pierre As i'm understanding, the new > customized entry should be menuentry "LFS 7.6" { insmod part_gpt insmod ext2 > set root='(hd0,gpt7)' echo 'Chargement de Linux LFS...' linux > /vmlinuz-3.16.2-lfs-7.6 root=/dev/sda8 ro echo > 'Chargement de Linux LFS...2' } i kept gpt7 for set root; and i kept > /vmlinuz! right! The link below is the /boot/grub/grub.cfg of my host system, > the last entry (in green) is the LSF System (i will changed it now) /dev/sda7 > is the boot partition mounted in /boot (/mnt/lfs/boot in the host system) > http://www.pierre-selosse.net/lfs/echecBoot.html [1] [1] pierre Links: ------ > [1] http://www.pierre-selosse.net/lfs/echecBoot.html [1] > > Running grub-mkconfig in your LFS chroot should give you the correct > GRUB options to use. > > HI Armin > > I did not want to overwrite the boot loader set by the host system. > > Do you mean i should install grub from the chroot before run > grub-mkconfig. > > Then i could add en entry for the first (host) system? > > Pierre > > > Links: > ------ > [1] http://www.pierre-selosse.net/lfs/echecBoot.html > > >
As I said, running grub-mkconfig should give you the correct grub options to use. I said nothing about overwriting an existing bootloader or a configuration file. The command only outputs bunch of text, among which is the menuentry line. -- Note: My last name is not Krejzi.
signature.asc
Description: OpenPGP digital signature
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
