Grub: Error 21, Selected disk does not exist

Michael msd4824 at yahoo.com
Wed Feb 25 18:23:16 PST 2009


I'm going through Linux From Scratch v6.4, and I'm on Chapter 8.4.  Currently, I'm running Linux completely off of an external hard drive, while I'm also building my Linux From Scatch build onto a seperate partition on that disk.  The laptop already has one hard drive in it, but I'm not really touching it.

Here's what happens:

grub> root (hd0,4)

Error 21: Selected disk does not exist


And here's my fdisk -l from the host system...  

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x75e22e49

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1348    10827778+  82  Linux swap / Solaris
/dev/sda2            1349       30401   233368222+   5  Extended
/dev/sda5            1349        2636    10345828+  83  Linux
/dev/sda6            2637       30401   223022331   83  Linux

Disk /dev/sdb: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbd7bbd7b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        7296    58605088+   7  HPFS/NTFS



As I said, we're on the external hard drive, sda.  I'm not really sure what sda2 is, so I've just sorta been ignoring it.  sda5 is the LFS build, while sda6 is the host system.  I'm completely ignoring sdb1.

So, what am I doing wrong that's causing Grub to not setup?  Thanks!



      



More information about the lfs-support mailing list