DIGIT-ARC read-only archive · snapshot: July 23, 2026

I wanna edit my GRUB. . help me.

12 posts · originally from https://geek.digit.in/community/threads/i-wanna-edit-my-grub-help-me.71431/

Gigacore
Gigacore Original post #1
Oct 24, 2007 at 5:41 PM
Hi guys, i've Windows XP and Linux Mint installed on my machine. By default Linux Mint is in the first line of the GRUB boot loader as usually. . and windows xp is at the last. . .

How to place XP in the First Line?

How can i edit this boot list. . . just like we do in BootConfig in Windows is there any way to re-arrange this list.?
[xubz]
[xubz] #2
Oct 24, 2007 at 5:44 PM
Post your menu.lst here (preferably in
Code:
 tag), Its just a matter of changing the order of the Entries in the file.
Gigacore
Oct 24, 2007 at 5:50 PM
Well,

* Linux Mint, Kernel 2.6.20-15-generic
* Linux Mint, kernel 2.6.20-20-15-generic(recovery mode)
* Linux Mint, memtest86+
* Other Operating Systems:
* Microsoft Windows XP pro

note: each * represents one line
[xubz]
[xubz] #4
Oct 24, 2007 at 6:05 PM
Well, Um.. I meant /boot/grub/menu.lst

If you open that as root, you'll see that Windows XP is at the Dead bottom of the file. Just Put it on top of the Linux Mint Entries. That should probably do.
Gigacore
Oct 24, 2007 at 6:12 PM
^ bro, the file is read only, what shall i do now?
M
Oct 24, 2007 at 6:19 PM
You need to edit it as root.
Code:
sudo nano -w /boot/grub/menu.lst
Just change the line
Code:
default 0
to
Code:
default 4
Gigacore
Oct 24, 2007 at 6:22 PM
oh thanks for that bro. . . i'll check it later . . . we have a power cut here
praka123
Oct 24, 2007 at 6:42 PM
@mehulved's solution makes ur grub waits n seconds if not selected boot windows.
so dont change default 0 in menu.lst instead in linux gksudo gedit /boot/grub/menu.lst and "cut" the entries for windows above the first entry.it will solve ur problem.that is windows will be shown as first entry also default will be windows too.
Gigacore
Oct 24, 2007 at 7:03 PM
thankx xubz . . .

and Mehul bro thanks bro :)

Praka. . . i did it . . . its working thanks :)

THANKS to all once again

* * RESOLVED * *
The_Devil_Himself
Oct 24, 2007 at 7:10 PM
^^dude you installed Mint from digit DVD?
I dunno why but mint doesn't install correctly on my PC.After installation when I booted up My PC showed...no Boot device....please check cables.Then I had to format my full hard disk:( and install XP MCE again.Now I am waiting for my gutsy CD to arrive.
QwertyManiac
Oct 24, 2007 at 7:12 PM
Use a GUI tool instead. :)

Go for SUM (Start-Up Manager)
*web.telia.com/~u88005282/sum/index.html

Works with almost all debian based distributions, and specially Ubuntu. Linux Mint is just that :)

P.s. Since you already did it, just beware before you get an kernel upgrade applied, it sometimes wipes out your Windows entry. Backup the grub/menu.lst somewhere for reference on how to add Windows again.
Gigacore
Gigacore #12
Oct 24, 2007 at 7:15 PM
@ qwerty thanks for that :)

@ devil, yes i installed from digit's dvd :)