[lfs-support] LFS USB Flash Boot Error --- the final stage...

JIA Pei jp4work at gmail.com
Fri Jan 4 17:00:01 PST 2013


Hi, Bruce:


Thank you for your reply. I've already tested what you suggested, the
current /boot/grub/grub.cfg is like:


*menuentry "MyLinux (SVN-20130102) (on /dev/sdd1)" --class gnu-linux
--class gnu --class os {*
* insmod part_msdos*
* insmod ext2*
* set root='(hd3,msdos1)'*
* search --no-floppy --fs-uuid --set=root
a2d0f92a-eca8-4121-a998-99c70d4df67b*
* linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102 root=/dev/sdd1 root-delay=10 ro
*
*}*


I tested the following too

*menuentry "MyLinux (SVN-20130102) (on /dev/sdd1)" --class gnu-linux
--class gnu --class os {*
* insmod part_msdos*
* insmod ext2*
* set root='(hd3,1)'*
* search --no-floppy --fs-uuid --set=root
a2d0f92a-eca8-4121-a998-99c70d4df67b*
* linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102 root=/dev/sdd1 root-delay=10 ro
*
*}*
*
*
*
*
Still the same, it doesn't work for me. And, I think *set
root='(hd3,msdos1)'* is more reasonable because at grub terminal, I got
http://visionopen.com/questions/lfs_svn_20130102_usbflash_grubls.jpg
I guess *(hd3, msdos1)* should be ok.
And I still kept obtaining
http://www.visionopen.com/questions/lfs_svn_20130102_usbflash_boot.jpg .


Now, I changed the settings to
*menuentry "MyLinux (SVN-20130102) (on /dev/sdd1)" --class gnu-linux
--class gnu --class os {*
* insmod part_msdos*
* insmod ext2*
* set root='(hd3,1)'*
* linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102 root=/dev/sdd1 rootfstype=ext4
root-delay=10 ro*
*}*

because I formatted the system to ext4 .
Now, I continuously get this error
*No filesystem could mount root, tried: ext3 ext4 fuseblk*
*Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(8,1)*
http://visionopen.com/questions/lfs_svn_20130102_usbflash_vfs.jpg*
*
*
*
*
*
Gentoo users say they solve the problem by unticking some items during the
configuration of kernel (please refer to
http://forums-web1.gentoo.org/viewtopic-t-916776-start-0.html ), which
doesn't make sense to me.
1) I see ext4 has been enabled (more ticks) for my kernel configuration
2) If more ticks only bring problems, why the default kernel setting
intends to use a problematic configuration?


In sum:
1) adding *rootfstype=ext4* doesn't work for me as shown above
2) I did tick a lot of items during Kernel configuration



Please, do help...


cheers



*
*


On Fri, Jan 4, 2013 at 8:51 AM, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:

> JIA Pei wrote:
>
> >
> > My configuration of booting LFS is also pasted:
> > *menuentry "MyLinux distribution (on /dev/sdd1)" --class gnu-linux
> --class
> > gnu --class os {*
> > * insmod gzio*
> > * insmod part_msdos*
> > * insmod ext2*
> > * set root='(hd3,msdos1)'*
> > * search --no-floppy --fs-uuid --set=root
> > a2d0f92a-eca8-4121-a998-99c70d4df67b*
> > * echo 'Loading MyLinux ...'*
> > * linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102
> > root=UUID=a2d0f92a-eca8-4121-a998-99c70d4df67b ro recovery nomodeset *
> > * echo 'Loading MyLinux ...'*
> > *}*
> >
> >
> > 1) Some users told me that in order to use UUID, an *initrd must be
> built*,
> > instead of only *vmlinuz*. However, it seems LFS manual doesn't mention *
> > initrd* quite clearly.
>
> Where in the book do you see a search line and use of uuid on the linux
> line?
>
> > What else am I missing?
>
> You keep changing things from the book without knowing what you are
> doing and then asking what went wrong.  Do you see a problem with this?
>
> # set root tells GRUB where to look for kernels
> set root=(hd3,1)
>
> # The linux command line tells the kernel the location of the root fs
> linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102  root=/dev/sdd1 ro
>
>
> You may want to review the section 'About initramfs' after you get the
> base system up.
>
>    -- Bruce
>
>
>
>    -- Bruce
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>



-- 

Pei JIA

Email: jp4work at gmail.com
cell:    +1 604-362-5816

Welcome to Vision Open
http://www.visionopen.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20130104/24035590/attachment.html>


More information about the lfs-support mailing list