GRUB Loader

mwmorph

Diamond Member
Dec 27, 2004
8,877
1
81
I had recently installed Ubuntu Linux 4.10 on my old pc(specs in my rigs. It's the crappy rig) I have Windows 98 on my master drive and Ubuntu on my slave. During the install process, I decided to install the Grub loader to make the system a dual boot. Now i cant seem to be able to move the Windows 98 selection to the top slot so it automatically boots Windows 98 instead of linux(This is primarily my mother's comp and she barely learned how to use windows in 11 years).

How do I change the slots so that windows in the primary boot system? You know, the one that boots automatically after 10 seconds of not selecting a os in GRUB?

Failing at that, if you cant change it, how do i uninstall GRUB and Ubuntu from my pc? I had disconnected the slave drive with ubuntu on it, but then the boot record was gone so i couldnt start up at all without a boot disk.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
You have to edit your grub configuration file.

Generally it's located in /boot/grub/ and it's either menu.lst or grub.conf (most of the time you have both and they are linked so that they are effectively the same file with 2 different names).

Find a line that looks like this:
default 0

It counts like programmers do; Zero is the first number, One is the second entry, Two is the third entry, and so on and so forth.

Make the windows entry the default entry and it will automaticly boot into Windows.
 

TGS

Golden Member
May 3, 2005
1,849
0
0
Originally posted by: mwmorph
how do i get to /boot/grub?

boot off the ubuntu cd and mount /boot if it's not already done automagically.

cd /boot/grub

vi grub.conf

#If the windows 98 entry is the second entry, change the line

default 0

#to

default 1

then hit escape and
:wq! <return>

You should be booting it windows by default. Or you could boot off the windows cd, and do

fdisk /mbr

IIRC
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
you can avoid having to use vi if you want. Vi is a advanced editor.

Try nano.

Like:
nano /boot/grub/menu.lst

The commands are listed on the bottom. For instance if you see ^X that means to hit 'ctl-x' to get that command.

for more details on how to navigate around a command line check out some of the guides in my sig. Introduction to Linux and such.
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
I'm even easier I have a icon in my applications menu that says edit as root that opens gedit with gksu :)