Grub set up
Richard E. Barmann
reb68 at bellsouth.net
Tue Jul 4 11:59:04 UTC 2006
On Tuesday 04 July 2006 6:58 am, Alan McKinnon wrote:
> 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
This is what I have after changing the last command. With this I get no
action, (not even press any key to continue).
----
title Ubuntu, kernel 2.6.15-25-386makeactive
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-25-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.15-25-386
savedefault
boot
makeactivemakeactive
title Ubuntu, kernel 2.6.15-25-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-25-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.15-25-386
boot
title Ubuntu, kernel 2.6.15-23-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot
title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.15-23-386
boot
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu itemmakeactives below from the
Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda3.
title Ubuntu, kernel 2.6.12-9-386 (on /dev/hda3)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda3.
title Ubuntu, kernel 2.6.12-9-386 (recovery mode) (on /dev/hda3)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda3.
title Ubuntu, memtest86+ (on /dev/hda3)
root (hd0,2)
kernel /boot/memtest86+.bin
savedefault
boot
title Windows XP
rootnoverify (hd1,0)
chainloader +1
-----
Do I need map? to fool windows.? I hope you can help me get this correct.
More information about the ubuntu-users
mailing list