I followed all the steps as outlined and ended up with
a VFS kernel panic on reboot! The only odd message I
got after menuconfig was cp /usr/src/linux-2.4.22/.config /usr/src/linux
tools/build -b bbootsect bsetup compressed/bvmlinux.out CURRENT > bzImage
Root device is (3, 67)
Boot sector 512 bytes.
Setup is 2520 bytes.
System is 1213 kB
warning: kernel is too big for standalone boot from floppy
make[1]: Leaving directory `/usr/src/linux-2.4.22/arch/i386/boot'
Here are the steps
remember the only reason I am recompiling is to add SCSI support, not upgrading in any sense)
$ cd /usr/src
me@darkstar:/usr/src$ ls -alc
total 10
drwxr-xr-x 5 root root 192 Nov 24 2003 ./
drwxr-xr-x 44 root root 2216 Jun 26 02:30 ../
-rw-r--r-- 1 root root 567 Nov 24 2003 2.4.22.nat.diff
lrwxrwxrwx 1 root root 12 Nov 24 2003 linux -> linux-2.4.22/
drwxr-xr-x 15 root root 584 Nov 24 2003 linux-2.4.22/
drwxr-xr-x 7 root root 168 Nov 24 2003 rpm/
drwxr-xr-x 2 root root 432 Nov 24 2003 xfs-2.4.22/
me@darkstar:/usr/src$ file linux
linux: symbolic link to linux-2.4.22
me@darkstar:/usr/src$ ls
2.4.22.nat.diff linux@ linux-2.4.22/ rpm/ xfs-2.4.22/
me@darkstar:/usr/src$ su
Password:
root@darkstar:/usr/src# rm linux
ln -s /usr/src/linux-x.x.x /usr/src/linux
cd linux
make mrproper
cp /usr/src/linux-2.4.22/.config /usr/src/linux
make menuconfig
make dep
make clean
make bzImage
make modules
make modules_install
rm -rf /boot/System.map
rm -rf /boot/vmlinuz
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.22
cp /usr/src/linux/System.map /boot/System.map-2.4.22
Make the new links:
ln -s /boot/vmlinuz-2.4.22 /boot/vmlinuz
ln -s /boot/System.map-2.4.22 /boot/System.map
There was no initrd.img
No change was really needed in lilo.conf. All I did is change the line
label = Linux
with
label=Linux2.4.22
/sbin/lilo
and then I got the kernel panic
Now, what do I do?
I booted a Knoppix CD
cd /mnt/hdb3/usr/src
root@ttyp0[src]# ls
2.4.22.nat.diff linux linux-2.4.22 rpm xfs-2.4.22
root@ttyp0[src]# ls -l
total 7
-rw-r--r-- 1 root root 567 2003-09-03 02:12 2.4.22.nat.diff
lrwxrwxrwx 1 root root 21 2004-08-09 22:03 linux -> /usr/src/linux-2.4.22
drwxr-xr-x 15 root root 712 2004-08-09 22:54 linux-2.4.22
drwxr-xr-x 7 root root 168 2002-12-12 21:23 rpm
drwxr-xr-x 2 root root 432 2003-09-05 00:03 xfs-2.4.22
root@ttyp0[src]#
ls -alc
total 10
drwxr-xr-x 5 root root 192 2004-08-09 22:03 .
drwxr-xr-x 44 root root 2216 2004-06-26 01:30 ..
-rw-r--r-- 1 root root 567 2003-11-24 00:47 2.4.22.nat.diff
lrwxrwxrwx 1 root root 21 2004-08-09 22:03 linux -> /usr/src/linux-2.4.22
drwxr-xr-x 15 root root 712 2004-08-09 22:54 linux-2.4.22
drwxr-xr-x 7 root root 168 2003-11-24 00:44 rpm
drwxr-xr-x 2 root root 432 2003-11-24 00:47 xfs-2.4.22
I guess I must either go through the kernel configuration again, making sure to add /dev/hdb3 infornt of everything,
e.g. /usr/src->/dev/hdb3/usr/src
and hope for better luck
or use the Slack CD to reinstall(I am afraid it might screw my partitions though), i.e. format the /home
partition
Any tips?