• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Grub menu.lst in ubuntu

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

UnseenMenace

UnseenModerator
Joined
Apr 23, 2001
A friend is attempting to get ubuntu to dual boot with xp with both OS's on different drives... below is a copy of his grub menu.lst and the drive layout... can anyone see whats wrong ???


Physical disk 1. (C)
Partition 1 NTFS Windows XP
Partition 2 NTFS General Storage (D)

Physical Disk 2
Partition 1 Ubuntu
Partition 2 ext3 Swap Partition
Partition 3 NTFS (Storage) (G)
Partition 4 NTFS (storage) (H)
Partition 5 NTFS (storage) (I)

DVD rw Rom Drive (E)
CDRW Drive (F)


-------------------


title Ubuntu, kernel 2.6.17-10-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb1 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot

title Ubuntu, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1

-----------------------------
 
Last edited:
i see nothing wrong with that grub, has he tried fiddling with the root dir settings in case ubuntu is not seeing it as 0,0 ? what is the windows drive showing up as in /media?

what happens when he chooses the xp option from the menu?
 
Last edited:
it does not boot xp... i can see nothing wrong with the grub menu yet can not work out where to look for the problem
 
I dont quite see where what you posted is his entire menu.lst. There is quite a lot missing, granted most of it is comments, but there are a few important things that are mixed in between alot of those comments.

I would suggest going and makign a backup of that menu.lst, then get your friend to go into the terminal and type in sudo nano /boot/grub/menu.lst
He needs to put in his password and then it should take him to a text editor where he can go and edit the menu.lst. I would get rid of the make active as i do not remember seeing that on the ubuntu install i did yesterday. If your friend wants xp to boot before ubuntu, all he has to do is cut the text at the bottom that holds the xp info then past it before all of the linux stuff.
 
Here is a copy of mine. hope this helps but from looking at the one you posted it looks fine. I am running Slackware


Code:
##
############### Acrux @ NaLug ##################
##
### Global settings

## GRUB splash image
splashimage (hd0,2)/boot/grub/MARS.xpm.gz
## define special fore-/background colors for splash screen image
# foreground = FFFFFF
# background = AAAAAA

## shaded text
#shade 1

## time to wait for user interaction
timeout 20

## default boot kernel
default 0

### GRUB Devices:
##
## Linux         Grub
## ======================
## /dev/hda      (hd0)
## /dev/hda1     (hd0,0)
## /dev/hdb      (hd1)
## /dev/hdb1     (hd1,0)
## /dev/fd0      (fd0)

###  FRAMEBUFFER RESOLUTION SETTINGS
##     +-------------------------------------------------+
##          | 640x480    800x600    1024x768   1280x1024
##      ----+--------------------------------------------
##      256 | 0x301=769  0x303=771  0x305=773   0x307=775
##      32K | 0x310=784  0x313=787  0x316=790   0x319=793
##      64K | 0x311=785  0x314=788  0x317=791   0x31A=794
##      16M | 0x312=786  0x315=789  0x318=792   0x31B=795
##     +-------------------------------------------------+

## Default menu entries
title Slackware GNU/Linux
kernel (hd0,2)/boot/vmlinuz-2.6.15 vga=0x315 root=/dev/hda3 ro

title Slackware GNU/Linux (old)
kernel (hd0,2)/boot/vmlinuz-2.6.12 root=/dev/hda3

### Special cases

## Boot special bootimage
#title Memtest
#kernel (hd0,0)/boot/memtest.bin

## Boot FreeDOS
# title freedos
# root (hd0,4)
# makeactive
# chainloader +1
# boot

## Boot Microsoft Windows(TM)
title Windows
root (hd0,0)
makeactive
chainloader +1

## Boot from Floppy
#title floppy
#root (fd0)
#chainloader +1

## Boot with different /boot partition
## /     = /dev/hdb2 = (hd1,1)
## /boot = /dev/hdb1 = (hd1,0)
##
#title Slackware GNU/Linux drive 2
#kernel (hd1,0)/vmlinuz root=/dev/hdb2
 
Unseen Menace: I had the same problem once.Heres what I think is wrong..you have to trick Windows into thinking the drive is booting from it's own MBR and only its own MBR.... try this:

title Windows
root (hd0,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

I'll bet the farm that this will work.
 
Last edited:
Any chance you could check the device map file?
 
Back