Perey
July 1st, 2009, 05:30 PM
Hi folks,
I'm doing a clean install of Kubuntu 9.04 AMD64 on a brand new computer, and it's turning into a bit of a saga.
Pertinent hardware info
Core 2 Duo E7400 CPU
2GB DDR3 RAM
500GB SATA hard drive
What I think the problem is right now: GRUB tries to boot /dev/sda1, when the root is on /dev/sda3.
Live CD boots fine, though it doesn't recognise my USB keyboard at the boot menu; I've used a PS2 keyboard to select different options there, namely the disk and memory scans, which check out fine.
At first, I just let the installer run with the default partitioning. That got me an "Error 18" on next boot; a bit of research shows this is caused by the boot loader not being in the first 1023 cylinders.
So I reinstalled, manually partitioning as follows:
/dev/sda1: ext3, /boot, ~128MB
/dev/sda5: swap, ~4GB
/dev/sda6: ext3, /, all remaining space (~490GB)
(Note that sda5 and sda6 are now sda2 and sda3 for reasons explained below; also, sda1 is now ext2. Just so nobody gets confused.)
My recollection gets a bit fuzzy here; I think next I started getting "Error 16", and tweaking some BIOS settings fixed that. (fsck -f -y reports everything is fine on both / and /boot.)
Anyway, it went through a few different errors and lots more BIOS tweaking and poking around on my part, plus a couple more reinstalls from scratch. Where it's at now is that, sometimes, GRUB gives me an "Error 25" at stage 1.5; most of the information I can find on this error relates to dual boot and/or multiple disk and/or upgrade scenarios. But that's okay, because most of the time, it hits stage 1.5, sits there for some time, then the screen clears and it tells me:
Boot from (hd0,0) ext2 788523f6-b5ad-46bc-a9ea-9f4ad092cec8
This seems odd, because doesn't (hd0,0) mean /dev/sda1, i.e. /boot? And shouldn't it be trying to boot from the root partition, namely /dev/sda3 or (hd0,2)? That's all I've been able to guess at, anyway. I have no idea how to change this. (menu.lst? Can't find any mention of (hd0,0) in there. Maybe it's done by UUID?)
Various things I've tried, at varying levels of craziness and desperation:
Poking around in menu.lst
Under "Advanced..." in the installer, changed boot location from /dev/sda to /dev/sda1
Moving logical partitions to physical partitions (i.e. sda5,6 to sda2,3)
Making /boot ext2 instead of ext3
Enabling AHCI
Disabling NX
Various crazy ideas I haven't tried yet:
Using i386 instead of amd64
Using Ubuntu instead of Kubuntu
Splitting up the big partition, putting root on a smaller one
The following may be of use:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 blocks
Disk identifier: 0x00049156
Device Boot Start End Blocks Id System
/dev/sda1 * 1 16 128488+ 83 Linux
/dev/sda2 17 514 4000185 82 Linux swap / Solaris
/dev/sda3 515 60801 484255327+ 83 Linux
ubuntu@ubuntu:~$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="788523f6-b5ad-46bc-a9ea-9f4ad092cec8" TYPE="ext2"
/dev/sda2: TYPE="swap" UUID="7767743d-04bb-4c35-8906-5b97d984feca"
/dev/sda3: UUID="ea4c9f51-ca46-41cc-a9ad-e02fcab69e79" TYPE="ext3"
I've attached menu.lst.
I'm doing a clean install of Kubuntu 9.04 AMD64 on a brand new computer, and it's turning into a bit of a saga.
Pertinent hardware info
Core 2 Duo E7400 CPU
2GB DDR3 RAM
500GB SATA hard drive
What I think the problem is right now: GRUB tries to boot /dev/sda1, when the root is on /dev/sda3.
Live CD boots fine, though it doesn't recognise my USB keyboard at the boot menu; I've used a PS2 keyboard to select different options there, namely the disk and memory scans, which check out fine.
At first, I just let the installer run with the default partitioning. That got me an "Error 18" on next boot; a bit of research shows this is caused by the boot loader not being in the first 1023 cylinders.
So I reinstalled, manually partitioning as follows:
/dev/sda1: ext3, /boot, ~128MB
/dev/sda5: swap, ~4GB
/dev/sda6: ext3, /, all remaining space (~490GB)
(Note that sda5 and sda6 are now sda2 and sda3 for reasons explained below; also, sda1 is now ext2. Just so nobody gets confused.)
My recollection gets a bit fuzzy here; I think next I started getting "Error 16", and tweaking some BIOS settings fixed that. (fsck -f -y reports everything is fine on both / and /boot.)
Anyway, it went through a few different errors and lots more BIOS tweaking and poking around on my part, plus a couple more reinstalls from scratch. Where it's at now is that, sometimes, GRUB gives me an "Error 25" at stage 1.5; most of the information I can find on this error relates to dual boot and/or multiple disk and/or upgrade scenarios. But that's okay, because most of the time, it hits stage 1.5, sits there for some time, then the screen clears and it tells me:
Boot from (hd0,0) ext2 788523f6-b5ad-46bc-a9ea-9f4ad092cec8
This seems odd, because doesn't (hd0,0) mean /dev/sda1, i.e. /boot? And shouldn't it be trying to boot from the root partition, namely /dev/sda3 or (hd0,2)? That's all I've been able to guess at, anyway. I have no idea how to change this. (menu.lst? Can't find any mention of (hd0,0) in there. Maybe it's done by UUID?)
Various things I've tried, at varying levels of craziness and desperation:
Poking around in menu.lst
Under "Advanced..." in the installer, changed boot location from /dev/sda to /dev/sda1
Moving logical partitions to physical partitions (i.e. sda5,6 to sda2,3)
Making /boot ext2 instead of ext3
Enabling AHCI
Disabling NX
Various crazy ideas I haven't tried yet:
Using i386 instead of amd64
Using Ubuntu instead of Kubuntu
Splitting up the big partition, putting root on a smaller one
The following may be of use:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 blocks
Disk identifier: 0x00049156
Device Boot Start End Blocks Id System
/dev/sda1 * 1 16 128488+ 83 Linux
/dev/sda2 17 514 4000185 82 Linux swap / Solaris
/dev/sda3 515 60801 484255327+ 83 Linux
ubuntu@ubuntu:~$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="788523f6-b5ad-46bc-a9ea-9f4ad092cec8" TYPE="ext2"
/dev/sda2: TYPE="swap" UUID="7767743d-04bb-4c35-8906-5b97d984feca"
/dev/sda3: UUID="ea4c9f51-ca46-41cc-a9ad-e02fcab69e79" TYPE="ext3"
I've attached menu.lst.