Hello everyone

I have followed the LFS book and installed LFS on my laptop. However, I have
been trying several days now to boot it and I keep failing. This is a
problem probably related to /etc/fstab (mounting more generally) or GRUB 2.

I used Kubuntu 10.10 (x86) to compile LFS. The output of

"
sudo sfdisk -l
"

is

"
Disk /dev/sda: 14593 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+   7649-   7649-  61440000   83  Linux
/dev/sda2      14020+  14593-    574-   4603905    5  Extended
/dev/sda3       7649+  14019-   6371-  51174400   83  Linux
/dev/sda4          0       -       0          0    0  Empty
/dev/sda5      14020+  14593-    574-   4603904   82  Linux swap / Solaris
"

Kubuntu 10.10 is installed on /dev/sda1 and LFS on /dev/sda3.

I used GRUB 2 that is installed on /dev/sda1 (the one that ships with
Kubuntu 10.10) to boot LFS. However, it did not work. So then, I rebooted
and while in grub>, I gave the command

"
ls (hd0,msdos3)/
"

which printed out the following:

"
lost+found sources sys
"

This apparently means that /boot, as well as the rest of directories in
/mnt/lfs, are not mounted. If I boot to Kubuntu and give

"
ls /mnt/lfs
"

I get

"
bin  boot  dev  device.map  etc  home  lib  media  mnt  opt  proc  root
 sbin  sources  srv  sys  tmp  usr  var
"

Finally, I tried the following while on Kubuntu 10.10:

"
su - root

mount -v --bind /dev $LFS/dev

mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys

chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ '
PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login

/sbin/reboot
"

and I got the following output:

"
WARNING: could not determine runlevel - doing soft reboot
  (it's better to use shutdown instead of reboot from the command line)
shutdown: /dev/initctl: No such file or directory
init: /dev/initctl: No such file or directory
"

I'd be grateful if you could help me sort this out...

All the best

Theodore
-- 
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