boot and now chroot problem

steve huskey iccaros at comcast.net
Sat Jan 10 17:17:18 PST 2004


I am working with lfs 5.0 
Had zero problems compiling 
(I'm lucky) until now.

I did my first reboot and received all kinds of errors telling me my
superblock was corrupt. so I did a fsck like the error told me to to
change to a different superblock but to no avail. so I moved all the
data to a diffrent partition (copy) did a mkfs.ext3 to reformat the
partition and copied all the data back. I now get the partition to boot
but now I get a a kernel panic no init found. I have tried to give the
kernel a init=3 in grubs menu.1st but that did not fix it. I also can
not chroot back in to the partition it says 


[root at steveslinux mnt]# chroot $LFS /usr/bin/env -i \
>     HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
>     PATH=/bin:/usr/bin:/sbin:/usr/sbin \
>     /bin/bash --login
chroot: /usr/bin/env: No such file or directory
[root at steveslinux mnt]#

if anyone has any ideals I would appreciate it.

system information 
FIC NFORCE2 MOTHERBOARD 
AMD 2500xp
512 MEGS 400mhz DDR 


here is my grub menu
 # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this
file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda3
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2129.nptl)
	root (hd0,0)
	kernel /vmlinuz-2.4.22-1.2129.nptl ro root=LABEL=/ hdd=ide-scsi rhgb
	initrd /initrd-2.4.22-1.2129.nptl.img
title steve kernel (2.4 LFS-5.0-CORE)
	root (hd1,1)
	kernel /boot/lfskernel  init=3 ro 
title (2.6)	
	root (hd0,0)
        kernel /bzImage	
I looked through the fact and the error kernel panic no init found : try
passing init= to kernel

here is my partition table

 Disk /dev/hde: 20.4 GB, 20491075584 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot    Start       End    Blocks   Id  System
/dev/hde1          2368      2491    996030   82  Linux swap
/dev/hde2   *         1      1702  13671283+  83  Linux
/dev/hde3          1703      2367   5341612+  83  Linux
 
Partition table entries are not in disk order

here is the drives / dir 
drwxr-xr-x    2 root     root         4096 Jan 10 10:10 bin
drwxr-xr-x    3 root     root         4096 Jan 10 13:13 boot
drwxr-xr-x    4 root     root         4096 Jan 10 02:39 dev
drwxr-xr-x    5 root     root         4096 Jan 10 13:50 etc
drwxr-xr-x    2 root     root         4096 Jan  9 15:40 home
drwxr-xr-x    4 root     root         4096 Jan 10 13:12 lib
drwx------    2 root     root         4096 Jan  8 09:05 lost+found
drwxr-xr-x    2 root     root         4096 Jan  9 15:40 mnt
drwxr-xr-x    9 root     root         4096 Jan 10 02:49 opt
drwxr-xr-x    2 root     root         4096 Jan  9 15:40 proc
drwxr-x---    2 root     root         4096 Jan 10 12:14 root
drwxr-xr-x    2 root     root         4096 Jan 10 02:43 sbin
-rw-r--r--    1 root     root          414 Jan 10 20:14 somefile
drwxr-xr-x    2 root     root         4096 Jan  8 22:38 source
drwxrwxrwt    2 root     root         4096 Jan 10 13:12 tmp
drwxr-xr-x   13 root     root         4096 Jan  9 14:24 tools
drwxr-xr-x   11 root     root         4096 Jan 10 00:27 usr
drwxr-xr-x   12 root     root         4096 Jan  9 15:45 var

if anyone has an answer I thank you for your help





More information about the lfs-support mailing list