Comment 2 for bug 33106

Revision history for this message
Kevin McGehee (kevin-mcgehee) wrote :

I had a similar error when reinstalling a fresh copy of Ubuntu Dapper the other day. My drive configuration is as follows:

/dev/hda: DVD-RW drive

Disk /dev/hdd: 20.0 GB, 20000000000 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/hdd1 * 1 2430 19518943+ 7 HPFS/NTFS

Disk /dev/sda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 2117 17004771 83 Linux
/dev/sda2 2118 2367 2008125 82 Linux swap / Solaris
/dev/sda3 2368 9730 59143297+ 83 Linux

Currently, grub, when run from the LiveCD or the install, reports the following configuration:

grub> geometry (hd0,0)
drive 0x80: C/H/S = 2431/255/63, The number of sectors = 39062500, /dev/hdd
   Partition num: 0, Filesystem type unknown, partition type 0x7

grub> geometry (hd1,0)
drive 0x81: C/H/S = 9730/255/63, The number of sectors = 156312576, /dev/sda
   Partition num: 0, Filesystem type is ext2fs, partition type 0x83
   Partition num: 1, Filesystem type unknown, partition type 0x82
   Partition num: 2, Filesystem type is ext2fs, partition type 0x83

The default groot was (hd1,0), as reported by the LiveCD and my filesystem, but I had to change this manually to (hd0,0) in order to be mapped to the same drive at boot.

Why does grub at boot report different disk order than grub after booting?