Grrrr.. Flippin Grub

Soldato
Joined
19 Oct 2002
Posts
8,075
Location
Swindoniantown
I've got XP Home and Ubuntu v7.04 dual booting (Separate Drives), and I had to re-write my Grub so Windows was first in the list (Default) with a 5 second count down so the Wife wouldn't moan!...

All was working well till last week (Saturday Morning) when, After leaving the PC in Linux downloading for me, The Wife Re-Booted (I showed her how as she's a Windows Fan!) so she could work on her College coursework!...

She came storming into the bedroom claiming I'd 'Broken the Computer' and 'It's only going into that Umbungo Thing!'... I had a look and the Grub had been re-written so if went:
Linux Ubuntu...
Linux Ubuntu... (Recovery)
Linux Ubuntu...
Linux Ubuntu... (Recovery)

Instead of:
Windows XP Home
Linux Ubuntu...
Linux Ubuntu... (Recovery)

It doesn't even have Windows as an option!!! :confused:

After a bit of Surfing I found how to edit it back (which ain't easy when your being nagged!!). I also saved a copy of this Re-Edited Grub 'just in case!!'

Now this morning... Guess What!.. its done it again!... Thank God I saved a backup of what I wanted!!!...

Anyone know why/how the Grub edits its self... I had done an 'update' thinngy... not sure what was updated... would this have done it!?!...

I don't want the wife to find it doing that again!, otherwise I'll have to go back to 100% Windows... and I don't want to do that!! :(

Cheers
Sim.
 
I'll moan about it too :D

I can't stand the way it mucks about with the boot config :D

I don't remember it ever changing itself. I think you must have it set to boot first to the last booted OS, but for some reason it's losing the Windows one.
 
if an update was done then its highly likely you got a new kernel, this annoyingly writes itself into grub like

Ubuntu linux 2.6.xxx
Ubuntu linux 2.6.xxx recovery
Ubuntu linux 2.6.yyy

somrthing i used to just sigh over and change back when it happened!
 
I think I've sorted it!... (on the Ubuntu Forums!)... I found this VERY useful info
http://users.bigpond.net.au/hermanzone/p15.htm#groot

Theres a few tweak options in there too!... but The Booting Option I used was to change the

# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
Change the Default to 4, this is only if your boot order looks like this..

## ## End Default Options ##

title Ubuntu, kernel 2.6.20-15-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=fe7bf845-7ce9-4733-b6de-f70f2b62076d ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=fe7bf845-7ce9-4733-b6de-f70f2b62076d ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet

### 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/sda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1
As Windows is the 4th in the list!...

It all boils down to, when there's a Kernel update it re-writes the

### BEGIN AUTOMAGIC KERNELS LIST
Everything in Here!!!.
### END DEBIAN AUTOMAGIC KERNELS LIST
So if you edit anything in there it'll be gone next update!!

Sim :cool:
 
It includes the Extra bit..

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

I think its looking for the word 'title'

dunno really!... it works with a 4 so I don't ask :D
 
Back
Top Bottom