On 25-05-2012 06:07, Omar wrote: > Thank you, Ken and Fernando. I've had a try about your suggestions. The > results is below. > >>________________________________ >> 发件人: Fernando de Oliveira >>收件人: LFS Support List >>发送日期: 2012年5月25日, 星期五, 上午 10:14 >>主题: Re: [lfs-support] lfs7.1 cannot boot >> >>On 24-05-2012 11:07, Ken Moffat wrote: >>> On Thu, May 24, 2012 at 03:07:34PM +0800, Omar wrote: >>>> Hi, all: >>>> I finished all work of the LFS 7.1 book except the error when > booting my LFS.
[...] >> >>Please, if you can, provide the output of >> >> cat /etc/lsb-release > > Run this cmd with root on Ubuntu: > > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=10.04 > DISTRIB_CODENAME=lucid > DISTRIB_DESCRIPTION="Ubuntu 10.04.4 LTS" > I asked this, just to be sure what is the system running after boot. >> >>I believe you have first to fix Ubuntu, and doing so, the other part >>will be fixed as well. > > Yes, I backup the entire VM directory of Ubuntu10.04. Just a copy. This is good, then. > >> >>If you can boot into Ubuntu, run as root: >> >> grub-install /dev/sda >> >>to get back the original grub in the MBR. >> >>Then, as root, run >> >> update-grub >> >>This will create a new grub.cfg in /etc/boot/grub which will have also a >>menuentry for LFS. >> > > I run update-grub with root and check the file /boot/grub/grub.cfg in > the end of which it has contained the description of LFS7.1 like below. > ### BEGIN /etc/grub.d/30_os-prober ### > menuentry "GNU/Linux, Linux 3.2.6-lfs-7.1 (on /dev/sdb1)" { > insmod ext2 > set root='(hd1,1)' > search --no-floppy --fs-uuid --set 63a59ea4-b2dd-4ede-a506-14b8d0a951c5 > linux /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1 ro > } > ### END /etc/grub.d/30_os-prober ### I would expect the following entries should run your system, if not, probably there is a problem with the kernel options. ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'GNU/Linux, with Linux 3.2.6-lfs-7.1' --class gnu-linux --class gnu --class os { load_video insmod gzio insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set=root 63a59ea4-b2dd-4ede-a506-14b8d0a951c5 echo 'Loading Linux 3.2.6-lfs-7.1 ...' linux /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sda1 ro } menuentry 'GNU/Linux, with Linux 3.2.6-lfs-7.1 (recovery mode)' --class gnu-linux --class gnu --class os { load_video insmod gzio insmod part_msdos insmod ext2 set root='(hd1,msdos1)' search --no-floppy --fs-uuid --set=root 63a59ea4-b2dd-4ede-a506-14b8d0a951c5 echo 'Loading Linux 3.2.6-lfs-7.1 ...' linux /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sdb1 ro single } ### END /etc/grub.d/30_os-prober ### > > After rebooting select LFS 7.1 in the boot option(ubuntu can start up > and run correctly.) and appear the same errors as before. > ...md: ... autorun DONE. > Root-NFS: on NFS server address...... > > (1)Then I do a test according to what Ken said. Ken has replied. After you try his suggestions, if successful, please, skip the rest of this message. I will try to coordinate my reply to include some observations about what I read in Ken's reply. I am trying to help too, because I have LFS in VMware Player. > So! If the above all prompt that LFS 7.1 really need its own initrd.img. > I don't know how to generate it now because lfs7.1 book doesn't contain > the content. I'll search and have some other tries. As Ken wrote, no need for initrd. Some of the things I will write below are different from the book, but I think they are worth a try. For the grub.cfg menu, after chrooting into LFS, you can save the LFS grub menu with a different filename, as Ken suggested, and generate a new one automatically with the command grub-mkconfig -o /boot/grub/grub.cfg As said before, this will overwrite /boot/grub/grub.cfg!!! The generated menu would have menu entries similar to the ones I gave above, but with "/etc/grub.d/10_linux", instead of "/etc/grub.d/30_os-prober". For the kernel scsi options, I have the following (obtained by trial and error, so some might be irrelevant). I removed commented (not set) lines. # SCSI device support ... # grep -i scsi /boot/config-3.3.6 > /home/fernando/tmp/grep-config-3.3.6.log # sed -i '/^#/d' /home/fernando/tmp/grep-config-3.3.6.log # cat /home/fernando/tmp/grep-config-3.3.6.log CONFIG_SCSI_MOD=y CONFIG_SCSI=y CONFIG_SCSI_DMA=y CONFIG_SCSI_NETLINK=y CONFIG_SCSI_PROC_FS=y CONFIG_SCSI_CONSTANTS=y CONFIG_SCSI_WAIT_SCAN=m CONFIG_SCSI_SPI_ATTRS=y CONFIG_SCSI_FC_ATTRS=y CONFIG_SCSI_SAS_ATTRS=y CONFIG_SCSI_LOWLEVEL=y CONFIG_ISCSI_BOOT_SYSFS=y CONFIG_SCSI_HPSA=y CONFIG_SCSI_MPT2SAS=y CONFIG_SCSI_MPT2SAS_MAX_SGE=128 CONFIG_SCSI_MPT2SAS_LOGGING=y CONFIG_VMWARE_PVSCSI=m -- []s, Fernando
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page