Configure GRUB
Peter Garrett
peter.garrett at optusnet.com.au
Thu Jan 10 06:14:50 UTC 2008
On Thu, 10 Jan 2008 00:31:30 -0200
"Jan Kauffman" <jan.kauffman at gmail.com> wrote:
[big snips]
# Entry for /dev/hda5 :
UUID=647C48557C482460 /media/hda5 ntfs-3g defaults,locale=en_US.UTF-8 0 1
# Entry for /dev/sda1 :
UUID=0EEE24FAEE24DBA9 /media/sda1 ntfs-3g defaults,locale=en_US.UTF-8 0 1
# Entry for /dev/hda6 :
this looks a bit peculiar - notice that fstab has both hda and sda
entries... and thinks sda1 is ntfs, whereas grub thinks hd0,0 ( your
first partition) is your linux partition ( ext3) - and grub is right, since
Linux boots
The UUID appears to agree between grub and the fstab for /dev/hda1
Do you have any idea where the /dev/sda1 is coming from? The fstab seems
to think it is ntfs and thus Windows, too... this doesn't make a lot of
sense unless you have another ntfs formatted drive, and you don't mention
that.
Part of the problem may be that Windows is on /dev/hda5 , which is
the first "logical" partition on an "extended" partition.
If I remember correctly, Windows doesn't like being anywhere but /dev/hda1
or /dev/sda1 - (hd0,0) in GRUB-speak. I'm not sure if windows needs to be
on a primary partition to boot. hda5 is a logical partition ( i.e. not
primary)
Someone who knows more about Windows might want to correct my assumptions
here, but I would try two things:
1) Run
sudo cfdisk /dev/hda
and mark /dev/hda5 as bootable, (toggle the bootable flag for hda5) write
that change in cfdisk, quit cfdisk
2) Edit /boot/grub/menu.lst .
Put the following in /boot/grub/menu.lst AT THE BOTTOM , *after* the line
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows
root (hd0,4)
makeactive
chainloader +1
Back up your /boot/grub/menu.lst before editing it, of course - fiddling
with boot-loaders is particularly prone to rendering the whole system
unbootable, but you can repair that if absolutely necessary, by using a
live CD or similar to move files back into place.
Peter
--
"INX Is Not X" based on Ubuntu 7.04 Live CD: http://inx.maincontent.net
Screenshots slideshow: http://inx.maincontent.net/album/1.png.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080110/602897e1/attachment.sig>
More information about the ubuntu-users
mailing list