Grub set up
Alan McKinnon
alan at linuxholdings.co.za
Tue Jul 4 10:58:34 UTC 2006
On Tue, 2006-07-04 at 06:12 -0400, Richard E. Barmann wrote:
> What I am attempting to do is set up my dual boot with linux (dapper Dan) and
> windowsXP again. When I upgraded I messed it up by doing the reinstall.
> Any help would be appreciate
> On Tuesday 04 July 2006 3:13 am, Alan McKinnon wrote:
> > sudo fdisk -l
> root at dick-desktop:~# sudo fdisk -l
>
> Disk /dev/hda: 80.0 GB, 80026361856 bytes
> 255 heads, 63 sectors/track, 9729 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 1 5629 45214911 83 Linux
> /dev/hda2 * 9637 9728 733320 82 Linux swap / Solaris
> Partition 2 does not end on cylinder boundary.
> /dev/hda3 5630 9543 31439205 83 Linux
> /dev/hda4 9544 9636 747022+ 5 Extended
> /dev/hda5 9544 9636 746991 82 Linux swap / Solaris
>
> Partition table entries are not in disk order
>
> Disk /dev/hdb: 20.5 GB, 20525137920 bytes
> 240 heads, 63 sectors/track, 2651 cylinders
> Units = cylinders of 15120 * 512 = 7741440 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hdb1 * 1 2552 19293088+ 7 HPFS/NTFS
> /dev/hdb2 2553 2650 740880 f W95 Ext'd (LBA)
> /dev/hdb5 2553 2650 740848+ e W95 FAT16 (LBA)
> root at dick-desktop:~#
You have an odd disk and partition order there, but no matter, Linux and
grub can handle that. And the disks are all full so the partition order
on hda doesn't really matter much more.
I assume your Linux / is on hda1 and hda3 is some other partition -
maybe /home? If not, then change the numbers as appropriate below.
Your /boot/grub/menu.lst file probably needs to look something like
this:
title Linux
root (hd0,0)
kernel /boot/vmlinuz-<insert rest of kernel file name here>
initrd /boot/initrd.img-<insert rest of file name here>
title Windows
rootnoverify (hd1,0)
chainloader +1
Try that, let me know how it goes. If you can't get to the file to edit
it, you can enter these lines directly into the grub boot screen. Do you
know how to do that?
alan
More information about the ubuntu-users
mailing list