[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GRUB bootloader issue



Jeremy Merritt wrote:

> I need help figuring out what is going on with my
> Debian / GRUB bootloader. Because of some Windoze
> issues, I had to re-install XP on my machine. It
> discarded the grub loader and now you can only boot to
> XP from hda1. I consulted with another Debian user who
> said to simply run 'grub-install /dev/hda1' off of a
> live CD. I tried that with hda, hda1, and hdb2 (debian
> partition) just to be sure, and it gave the same error
> every time. Here is an example of the error it gave.
> 
>> root@ubuntu:/mnt/hdb2/sbin # grub-install /dev/hda1
>> Probing devices to guess BIOS drives. This may take
>> a long time.
>> Could not find device for /boot: Not found or not a
>> block device.
> 
> fdisk -l returns the following when run from the live
> CD:
> 
> Disk /dev/hda: 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/hda1 * 1 2433 19543041 7 HPFS/NTFS
> /dev/hda2 2434 4865 19535040 5 Extended
> /dev/hda5 2434 3197 6136798+ 83 Linux
> /dev/hda6 3198 3337 1124518+ 82 Linux swap
> /dev/hda7 3338 4865 12273628+ 83 Linux
> 
> Disk /dev/hdb: 61.4 GB, 61492838400 bytes
> 255 heads, 63 sectors/track, 7476 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
> Device Boot Start End Blocks Id System
> /dev/hdb1 1 3188 25607578+ c W95 FAT32 (LBA)
> /dev/hdb2 * 3189 7298 33013575 83 Linux
> /dev/hdb3 7299 7476 1429785 5 Extended
> /dev/hdb5 7299 7476 1429753+ 82 Linux swap
> 
> Disk /dev/hdd: 30.0 GB, 30020272128 bytes
> 255 heads, 63 sectors/track, 3649 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
> Device Boot Start End Blocks Id System
> /dev/hdd1 * 1 3649 29310561 83 Linux
> 
> Any help is appreciated.
> 
Hi Jeremy!

fdisk says hda2 is an extended partition that contains three Linux
partitions.  My *guess* is that your boot partition is hda5 and that's
probably where grub is hiding.

Roby



Reply to: