Bruce Dubbs <bruce.dubbs <at> gmail.com> writes:
>
> Rosario Turco wrote:
>
> > I haven't got /dev/sda4, my /dev/sda has got only two (sda1 e sda2)
> > brw-rw---- 1 root daemon 8, 0 Jan 2 18:31 /dev/sda
> > brw-rw---- 1 root daemon 8, 1 Jan 2 18:31 /dev/sda1
> > brw-rw---- 1 root daemon 8, 2 Jan 2 18:31 /dev/sda2
> > brw-rw---- 1 root daemon 8, 16 Jan 2 18:31 /dev/sdb
> > brw-rw---- 1 root daemon 8, 17 Jan 2 18:31 /dev/sdb1
> > brw-rw---- 1 root daemon 8, 18 Jan 2 18:31 /dev/sdb2
> > brw-rw---- 1 root daemon 8, 19 Jan 2 18:31 /dev/sdb3
> > brw-rw---- 1 root daemon 8, 20 Jan 2 18:31 /dev/sdb4
> >
> > So i have modified grub.cfg with
> > set root=(hd0,1)
> > and
> > root=/dev/sda2
> >
> > with boot on /dev/sda1
> >
> > In fstab i have done the same
> > /dev/sda1 /boot ext3 ...
> > /dev/sda2 / ext3 ....
> >
> > Now i obtain this error:
> > ...... (i cannot read all because is very speed ... How can read all?
> > Is there alog?)
> >
> > list of all partions:
> > 0800 sda
> > 0801 sda1
> > 0802 sda2
> > 0803 sda3
> > 0804 sda4
> > 0b00 sr0 driver
> > No filesystem could mount root, tried: ext3 vfat msdos iso9660
> > Kernel panic: not syncing: VFS: Unable to mount root fs on unknown
> > block(8,2)
> >
> > I am blocked.
> >
> > Then i cannot use 8.4.3 Testing teh configuration with Fedora 14, because
> > /sbin/reboot restarts all and doesn't show prompt grub>
>
> Do you get a menu before it starts to build? If so type 'c' when it
> comes up and enter commands there.
>
> I'd also recommend cutting down the grub.cfg file to the minimum and
> posting it here, You really only need something like this to start:
>
> insmod ext2
> set root=(hd0,1)
>
> menuentry "Linux 2.6.36.2-lfs" {
> linux /linux-2.6.36.2-lfs root=/dev/sda1 ro
>
> But it really sounds like you are booting, but there is a problem with
> the parameters. Note that the 'set root=(hd0,1)' is for grub and
> 'root=/dev/sda1' is for the linux kernel.
>
> -- Bruce
>
I have reduced grub.cfg at minimum as your suggest.
Now the error is:
xxx] md: ... autorun DONE.
VFS: Cannot open root device "sda1" or un-known block(8,1)
Please append a correct "root=" boot options. Here are the available partitions:
0800 nnnnn sda driver: sd
0802 sda2
0803 sda3
0804 sda4
0b00 nnnn sr0 driver: sr
No filesystem could mount root, tried: ext3 vfat msdos iso9660
Kernel panic: not syncing: VFS: Unable to mount root fs on unknown block(8,1)
GRUB.CFG
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
insmod ext2
set root='(hd1,1)'
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "GNU/Linux, with Linux 2.6.36-lfs-6.7" --class gnu-linux --class gnu
--class os {
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set c544afb8-6417-4d14-89e0-5aa35173c3c3
echo Loading Linux 2.6.36-lfs-6.7 ...
linux /boot/vmlinux-2.6.36-lfs-6.7 root=/dev/sda1 ro
}
### END /etc/grub.d/10_linux ###
FSTAB
/dev/sdb1 / ext3 defaults 1 1
/dev/sdb2 /home ext3 defaults 1 1
/dev/sdb3 swap swap pri=1 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts gid=4,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
My /dev now is:
/dev/sda
/dev/sda1
/dev/sda2
/dev/sdb
/dev/sdb1
/dev/sdb2
/dev/sdb3
Is it possible to see a log of the complete error? For example the output of
dmesg ...
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page