Hello,
I have a box to dual boot Win2k and RedHat9. The PC has two HDDs, Win2k installed in the master HDD (hda) and LINUX in the slave disk (hdb1). The system boots with GRUB.
I'm currently running on kernel 2.4.20-6 but wanted to upgrade to 2.6.10. The kernel compiled and all the appropriate files were created and set in place. Please see at the end of message for files listed in /boot.
I thought this grub problem would be fixed in 2.6.10, but is not. Unfortunately I cannot switch to lilo because the RH install is in the second disk and I get an error when running /bin/lilo.
Any ideas will be appreciated. Thanks in advanced.
-af
========================================================================= DETAILS
In the grub.conf file I have entries for the original kernel 2.4.20-6 and for win2k, and they both boot fine, and an entry for the new kernwl 2.6.10.
My grub.conf looks like this:
#boot=/dev/hdb1 default=1 timeout=10 splashimage=(hd1,0)/boot/grub/splash.xpm.gz title RH26 root (hd1,0) kernel /boot/vmlinuz-2.6.10 ro root=LABEL=/ hdc=ide-scsi initrd /boot/initrd-2.6.10.img title Red Hat Linux (2.4.20-6) root (hd1,0) kernel /boot/vmlinuz-2.4.20-6 ro root=LABEL=/ hdc=ide-scsi initrd /boot/initrd-2.4.20-6.img title DOS rootnoverify (hd0,0) chainloader +1 .........................
My problem is when tryng to boot with kernel 2.6.10, The system hangs with this message:
Kernel panic - not syncing: No init found. Try passing init= option to kernel
So I booted with a floppy and did this boot: linux init=/sbin/init root=/dev/hdb1 <enter>
But got the same error. What am I missing?
........
Things I've tried
-o- created fresh initrd.img: done the mkinitrd -f -v initrd-kernelversion.img kernelversion
-o- create new boot floppy: mkbootdisk --device /dev/fd0 2.6.10
-o- tried /bin/lilo to replace grub, but got error
"Warning: /dev/hdb1 is not on the first disk
Fatal : sector 20196056 too large for linear mode (try 'lba32'instead)
-o- also tried a trick posted in RHs list Using the hex number for major and minor device number in grub.conf: kernel /boot/vmlinuz-2.4.18-3 ro root=3003
============================================================= MY HARD DISKS PARTITIONS LOOK LIKE THIS:
# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 3824 30716248+ 7 HPFS/NTFS /dev/hda2 3825 9728 47423880 f Win95 Ext'd (LBA) /dev/hda5 3825 7139 26627706 7 HPFS/NTFS /dev/hda6 7140 9728 20796111 7 HPFS/NTFS
Disk /dev/hdb: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hdb1 * 1 2295 18434556 83 Linux /dev/hdb2 2296 3825 12289725 7 HPFS/NTFS /dev/hdb3 3826 4865 8353800 7 HPFS/NTFS
================================================================ THE FILES AS LISTE IN THE /boot directory:
# ls -l /boot
total 10580
-rw-r--r-- 1 root root 5824 Jan 24 2003 boot.b
-rw-r--r-- 1 root root 1318156 Jan 26 13:28 bzImage.mykern.26Jan2005
-rw-r--r-- 1 root root 612 Jan 24 2003 chain.b
-rw-r--r-- 1 root root 44309 Feb 27 2003 config-2.4.20-6
drwxr-xr-x 2 root root 4096 Jan 26 14:50 grub
-rw-r--r-- 1 root root 150549 Aug 2 15:36 initrd-2.4.20-6.img
-rw-r--r-- 1 root root 85509 Jan 26 13:31 initrd-2.6.10.img
-rw-r--r-- 1 root root 473 Aug 2 15:36 kernel.h
-rw-r--r-- 1 root root 23108 Feb 24 2003 message
-rw-r--r-- 1 root root 21282 Feb 24 2003 message.ja
lrwxrwxrwx 1 root root 20 Aug 2 15:36 module-info -> module-info-2.4.20-6
-rw-r--r-- 1 root root 15436 Feb 27 2003 module-info-2.4.20-6
-rw-r--r-- 1 root root 640 Jan 24 2003 os2_d.b
lrwxrwxrwx 1 root root 19 Jan 26 14:44 System.map -> System.map-2.4.20-6
-rw-r--r-- 1 root root 520099 Feb 27 2003 System.map-2.4.20-6
-rw-r--r-- 1 root root 809057 Jan 26 13:31 System.map-2.6.10
-rw-r--r-- 1 root root 809057 Jan 26 13:30 System.map-2.6.10.old
-rw-r--r-- 1 root root 3193468 Feb 27 2003 vmlinux-2.4.20-6
lrwxrwxrwx 1 root root 16 Jan 26 14:44 vmlinuz -> vmlinuz-2.4.20-6
-rw-r--r-- 1 root root 1122363 Feb 27 2003 vmlinuz-2.4.20-6
-rw-r--r-- 1 root root 1318156 Jan 26 13:31 vmlinuz-2.6.10
-rw-r--r-- 1 root root 1318156 Jan 26 13:30 vmlinuz-2.6.10.old
=============================================================================
-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list