I'm just starting out with Slackware, so sorry for any stupid mistakes.
As suggested,I tried to switch to a generic kernel. I used the mkinitrd command generator script:
Code:
./mkinitrd_command_generator.sh /boot/vmlinuz-generic-smp-2.6.33.4-smp
,used the mkinitrd:
Code:
mkinitrd -c -k 2.6.33.4-smp -f ext4 -r /dev/sda1 -m jbd2:mbcache:ext4 -o /boot/initrd.gz
changed the lilo.conf:
Quote:
# Linux bootable partition config begins
# initrd created with 'mkinitrd -c -k 2.6.33.4-smp -f ext4 -r /dev/sda1 -m jbd2:mbcache:ext4 -o /boot/initrd.gz'
image = /boot/vmlinuz-generic-smp-2.6.33.4-smp
initrd = /boot/initrd.gz
root = /dev/sda1
label = 2.6.33.4-smp
read-only
# Linux bootable partition config ends
|
and ran lilo as recommended. It ran with one warning about lba assumed,my computer is old but can boot fine from whatever cylinder.
After reboot I got the error:
Code:
/boot/initrd.gz: loading kernel modules from initrd.image:
mount:mounting /dev/sda on /mnt failed:no such file or directory
ERROR: no /sbin/init found on root dev (or not mounted).Trouble ahead.
You can try and fix it. Type exit when things are done.
bin/sh: can't access tty:job control turned off.
Any attempt to intervene resulted in what looks like a kernel panic and a traceback.
My hardware: (old for learning purposes)
Linux mirkwood 2.6.33.4-smp #2 SMP Wed May 12 22:47:36 CDT 2010 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz GenuineIntel GNU/Linux
I'm running an adaptec scsi controller which the huge kernel seems to run with the:
Quote:
Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
|
Could this be the missing driver?
I followed the instructions in README.initrd with all the expected results.
I checked this forum and it seems that others have had similar problems.
http://www.linuxquestions.org/questi...orking-800757/
http://www.linuxquestions.org/questi...tor-sh-793557/
However, the fixes suggested involved things I was not sure about like changing symlinks in /boot (no mention of such in the docs) or things I had already done.
In light of other posts I am enclosing the output of the mkinitrd command generator,current lilo.conf and ls -al /boot
Quote:
output:
#
# mkinitrd_command_generator.sh revision 1.40
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:
mkinitrd -c -k 2.6.33.4-smp -f ext4 -r /dev/sda1 -m jbd2:mbcache:ext4 -o /boot/initrd.gz
# An entry in 'etc/lilo.conf' for kernel '/boot/vmlinuz-generic-smp-2.6.33.4-smp' would look like this:
# Linux bootable partition config begins
# initrd created with 'mkinitrd -c -k 2.6.33.4-smp -f ext4 -r /dev/sda1 -m jbd2:mbcache:ext4 -o /boot/initrd.gz'
image = /boot/vmlinuz-generic-smp-2.6.33.4-smp
initrd = /boot/initrd.gz
root = /dev/sda1
label = 2.6.33.4-smp
read-only
# Linux bootable partition config ends
lilo.conf:
...
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda1
label = Linux
read-only
# Linux bootable partition config ends
#
# Linux bootable partition config begins
# initrd created with 'mkinitrd -c -k 2.6.33.4-smp -f ext4 -r /dev/sda1 -m jbd2:mbcache:ext4 -o /boot/initrd.gz'
image = /boot/vmlinuz-generic-smp-2.6.33.4-smp
initrd = /boot/initrd.gz
root = /dev/sda1
label = 2.6.33.4-smp
read-only
ls -al /boot:
total 24268
drwxr-xr-x 3 root root 4096 2010-06-24 15:40 ./
drwxr-xr-x 21 root root 4096 2010-06-21 18:31 ../
lrwxrwxrwx 1 root root 37 2010-06-21 18:10 README.initrd -> /usr/doc/mkinitrd-1.4.5/README.initrd
lrwxrwxrwx 1 root root 32 2010-06-21 18:09 System.map -> System.map-huge-smp-2.6.33.4-smp
-rw-r--r-- 1 root root 1282716 2010-05-13 08:00 System.map-generic-2.6.33.4
-rw-r--r-- 1 root root 1322225 2010-05-13 05:41 System.map-generic-smp-2.6.33.4-smp
-rw-r--r-- 1 root root 2041855 2010-05-13 08:28 System.map-huge-2.6.33.4
-rw-r--r-- 1 root root 2086543 2010-05-13 06:48 System.map-huge-smp-2.6.33.4-smp
-rw-r--r-- 1 root root 512 2010-06-21 18:34 boot.0800
-rw-r--r-- 1 root root 168 2010-06-21 18:34 boot_message.txt
lrwxrwxrwx 1 root root 28 2010-06-21 18:09 config -> config-huge-smp-2.6.33.4-smp
-rw-r--r-- 1 root root 108261 2010-05-13 08:00 config-generic-2.6.33.4
-rw-r--r-- 1 root root 108627 2010-05-13 05:41 config-generic-smp-2.6.33.4-smp
-rw-r--r-- 1 root root 108235 2010-05-13 08:28 config-huge-2.6.33.4
-rw-r--r-- 1 root root 108601 2010-05-13 06:48 config-huge-smp-2.6.33.4-smp
-rw-r--r-- 1 root root 5040 2010-02-16 22:44 diag1.img
drwxr-xr-x 11 root root 4096 2010-06-23 19:41 initrd-tree/
-rw-r--r-- 1 root root 1610432 2010-06-23 19:41 initrd.gz
-rw------- 1 root root 126976 2010-06-24 15:40 map
-rw-r--r-- 1 root root 14174 2010-02-15 03:57 slack.bmp
lrwxrwxrwx 1 root root 29 2010-06-21 18:09 vmlinuz -> vmlinuz-huge-smp-2.6.33.4-smp
-rw-r--r-- 1 root root 2545840 2010-05-13 08:00 vmlinuz-generic-2.6.33.4
-rw-r--r-- 1 root root 2662400 2010-05-13 05:41 vmlinuz-generic-smp-2.6.33.4-smp
-rw-r--r-- 1 root root 5243760 2010-05-13 08:28 vmlinuz-huge-2.6.33.4
-rw-r--r-- 1 root root 5421536 2010-05-13 06:48 vmlinuz-huge-smp-2.6.33.4-smp
|
Sorry,if there is too much detail. Can someone give me a good clue where I went wrong.
Thanks.
Adam