kosmos
June 16th, 2008, 03:22 PM
[problem has been solved. My BIOS had an incorrect disk config, changing it from 2,1,3 back to 1,2,3 fixed the problem. I had been unknowingly booting from sdb, but mounting from sda when I really needed to boot from sda]
I just did an upgrade from Gutsy to Hardy. When I rebooted, I got an error 15 from grub as it tried to boot the default kernel ( 2.6.24-18 ). So I tried some other entries in the grub menu and kernel 2.6.22-14 boots up ok. I've googled around and tried to figure this out, but I'm stumped and feeling dunderpated. I've seen plenty of people report error 15 related problems from grub, but it's usually a case of dual boot with Windows, or with a mix of IDE and SATA drives, not when there are 2 very similar kernel entries where one entry works and another doesn't.
(I do have 3 SATA drives, sda, sdb and sdc, but I've elided some entries from the listings below, hoping to be concise).
I have separate boot and root partitions, and use volume labels:
/etc/fstab:
LABEL=root / ext3 defaults,errors=remount-ro 0 1
LABEL=boot /boot ext3 defaults 0 2
fdisk -l /dev/sda:
Device Boot Start End Blocks Id System
/dev/sda1 1 11 88326 83 Linux
/dev/sda2 12 985 7823655 83 Linux
/dev/sda3 986 91201 724660020 83 Linux
blkid shows:
/dev/sda1: LABEL="boot" UUID="9658158b-70ab-4891-9a40-553cd653d2c4" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: LABEL="root" UUID="752de295-93d5-496b-b189-031157bc769b" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: UUID="134991a7-bb16-4327-a678-f88117333e78" TYPE="crypt_LUKS"
/dev/sdb1: LABEL="boot2" UUID="9658158b-70ab-4891-9a40-553cd653d2c4" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb2: LABEL="root2" UUID="752de295-93d5-496b-b189-031157bc769b" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb3: LABEL="data2" UUID="5f1226f7-8c3d-4413-84ad-8059aabc46eb" SEC_TYPE="ext2" TYPE="ext3"
/boot contains:
-rw-r--r-- 1 root root 1052627 Feb 11 22:30 System.map-2.6.22-14-generic
-rw-r--r-- 1 root root 1152174 May 28 18:56 System.map-2.6.24-18-generic
-rw-r--r-- 1 root root 417807 Feb 11 22:30 abi-2.6.22-14-generic
-rw-r--r-- 1 root root 420224 May 28 18:56 abi-2.6.24-18-generic
-rw-r--r-- 1 root root 67666 Feb 11 22:30 config-2.6.22-14-generic
-rw-r--r-- 1 root root 74186 May 28 18:56 config-2.6.24-18-generic
-rw-r--r-- 1 root root 8274005 Jun 15 19:51 initrd.img-2.6.22-14-generic
-rw-r--r-- 1 root root 8709617 Jun 15 22:36 initrd.img-2.6.24-18-generic
-rw-r--r-- 1 root root 1743752 Feb 11 22:30 vmlinuz-2.6.22-14-generic
-rw-r--r-- 1 root root 1903448 May 28 18:56 vmlinuz-2.6.24-18-generic
/boot/grub contains:
-rw-r--r-- 1 root root 197 Jun 16 08:00 default
-rw-r--r-- 1 root root 30 Sep 20 2007 device.map
-rw-r--r-- 1 root root 8056 Jun 16 08:00 e2fs_stage1_5
-rw-r--r-- 1 root root 7904 Jun 16 08:00 fat_stage1_5
-rw-r--r-- 1 root root 16 Jun 16 08:00 installed-version
-rw-r--r-- 1 root root 8608 Jun 16 08:00 jfs_stage1_5
-rw-r--r-- 1 root root 5149 Jun 15 22:33 menu.lst
-rw-r--r-- 1 root root 7324 Jun 16 08:00 minix_stage1_5
-rw-r--r-- 1 root root 9632 Jun 16 08:00 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 Jun 16 08:00 stage1
-rw-r--r-- 1 root root 108356 Jun 16 08:00 stage2
-rw-r--r-- 1 root root 9276 Jun 16 08:00 xfs_stage1_5
The 2 relevant entries from my menu.lst:
title Ubuntu 8.04, kernel 2.6.24-18-generic
root (hd0,0)
kernel /vmlinuz-2.6.24-18-generic root=LABEL=root ro
initrd /initrd.img-2.6.24-18-generic
quiet
title Ubuntu 8.04, kernel 2.6.22-14-generic
root (hd0,0)
kernel /vmlinuz-2.6.22-14-generic root=LABEL=root ro
initrd /initrd.img-2.6.22-14-generic
quiet
I don't understand why root is specified as (hd0,0), I would expect it to be (hd0,1), since / is on /dev/sda2. I would also expect booting 2.6.22-14 to fail, because it uses the same specification as 2.6.24-18, but it doesn't fail, it boots fine. I've tried making a test entry in menu.lst, changing hd0,0 to hd0,1:
title TEST Ubuntu 8.04, kernel 2.6.24-18-generic
root (hd0,1)
kernel /vmlinuz-2.6.24-18-generic root=LABEL=root ro
initrd /initrd.img-2.6.24-18-generic
quiet
But this also gives a grub error 15.
I do vaguely remember some boot issues with past upgrades, and perhaps I confused things by dd'ing my /dev/sda1, /dev/sda2 to /dev/sdb1, /dev/sdb2 (respectively, for backup) in the past, but I thought I had straightened those issues out a long time ago, and I had fixed things up the way I like with a simple partitoning and volume labels.
So, I'm stuck and I really need some enlightenment. Please help I'm going nuts! Thanks.
I just did an upgrade from Gutsy to Hardy. When I rebooted, I got an error 15 from grub as it tried to boot the default kernel ( 2.6.24-18 ). So I tried some other entries in the grub menu and kernel 2.6.22-14 boots up ok. I've googled around and tried to figure this out, but I'm stumped and feeling dunderpated. I've seen plenty of people report error 15 related problems from grub, but it's usually a case of dual boot with Windows, or with a mix of IDE and SATA drives, not when there are 2 very similar kernel entries where one entry works and another doesn't.
(I do have 3 SATA drives, sda, sdb and sdc, but I've elided some entries from the listings below, hoping to be concise).
I have separate boot and root partitions, and use volume labels:
/etc/fstab:
LABEL=root / ext3 defaults,errors=remount-ro 0 1
LABEL=boot /boot ext3 defaults 0 2
fdisk -l /dev/sda:
Device Boot Start End Blocks Id System
/dev/sda1 1 11 88326 83 Linux
/dev/sda2 12 985 7823655 83 Linux
/dev/sda3 986 91201 724660020 83 Linux
blkid shows:
/dev/sda1: LABEL="boot" UUID="9658158b-70ab-4891-9a40-553cd653d2c4" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: LABEL="root" UUID="752de295-93d5-496b-b189-031157bc769b" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: UUID="134991a7-bb16-4327-a678-f88117333e78" TYPE="crypt_LUKS"
/dev/sdb1: LABEL="boot2" UUID="9658158b-70ab-4891-9a40-553cd653d2c4" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb2: LABEL="root2" UUID="752de295-93d5-496b-b189-031157bc769b" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb3: LABEL="data2" UUID="5f1226f7-8c3d-4413-84ad-8059aabc46eb" SEC_TYPE="ext2" TYPE="ext3"
/boot contains:
-rw-r--r-- 1 root root 1052627 Feb 11 22:30 System.map-2.6.22-14-generic
-rw-r--r-- 1 root root 1152174 May 28 18:56 System.map-2.6.24-18-generic
-rw-r--r-- 1 root root 417807 Feb 11 22:30 abi-2.6.22-14-generic
-rw-r--r-- 1 root root 420224 May 28 18:56 abi-2.6.24-18-generic
-rw-r--r-- 1 root root 67666 Feb 11 22:30 config-2.6.22-14-generic
-rw-r--r-- 1 root root 74186 May 28 18:56 config-2.6.24-18-generic
-rw-r--r-- 1 root root 8274005 Jun 15 19:51 initrd.img-2.6.22-14-generic
-rw-r--r-- 1 root root 8709617 Jun 15 22:36 initrd.img-2.6.24-18-generic
-rw-r--r-- 1 root root 1743752 Feb 11 22:30 vmlinuz-2.6.22-14-generic
-rw-r--r-- 1 root root 1903448 May 28 18:56 vmlinuz-2.6.24-18-generic
/boot/grub contains:
-rw-r--r-- 1 root root 197 Jun 16 08:00 default
-rw-r--r-- 1 root root 30 Sep 20 2007 device.map
-rw-r--r-- 1 root root 8056 Jun 16 08:00 e2fs_stage1_5
-rw-r--r-- 1 root root 7904 Jun 16 08:00 fat_stage1_5
-rw-r--r-- 1 root root 16 Jun 16 08:00 installed-version
-rw-r--r-- 1 root root 8608 Jun 16 08:00 jfs_stage1_5
-rw-r--r-- 1 root root 5149 Jun 15 22:33 menu.lst
-rw-r--r-- 1 root root 7324 Jun 16 08:00 minix_stage1_5
-rw-r--r-- 1 root root 9632 Jun 16 08:00 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 Jun 16 08:00 stage1
-rw-r--r-- 1 root root 108356 Jun 16 08:00 stage2
-rw-r--r-- 1 root root 9276 Jun 16 08:00 xfs_stage1_5
The 2 relevant entries from my menu.lst:
title Ubuntu 8.04, kernel 2.6.24-18-generic
root (hd0,0)
kernel /vmlinuz-2.6.24-18-generic root=LABEL=root ro
initrd /initrd.img-2.6.24-18-generic
quiet
title Ubuntu 8.04, kernel 2.6.22-14-generic
root (hd0,0)
kernel /vmlinuz-2.6.22-14-generic root=LABEL=root ro
initrd /initrd.img-2.6.22-14-generic
quiet
I don't understand why root is specified as (hd0,0), I would expect it to be (hd0,1), since / is on /dev/sda2. I would also expect booting 2.6.22-14 to fail, because it uses the same specification as 2.6.24-18, but it doesn't fail, it boots fine. I've tried making a test entry in menu.lst, changing hd0,0 to hd0,1:
title TEST Ubuntu 8.04, kernel 2.6.24-18-generic
root (hd0,1)
kernel /vmlinuz-2.6.24-18-generic root=LABEL=root ro
initrd /initrd.img-2.6.24-18-generic
quiet
But this also gives a grub error 15.
I do vaguely remember some boot issues with past upgrades, and perhaps I confused things by dd'ing my /dev/sda1, /dev/sda2 to /dev/sdb1, /dev/sdb2 (respectively, for backup) in the past, but I thought I had straightened those issues out a long time ago, and I had fixed things up the way I like with a simple partitoning and volume labels.
So, I'm stuck and I really need some enlightenment. Please help I'm going nuts! Thanks.