I want to customize the results of grub-update

4 views
Skip to first unread message

Kevin O'Gorman

unread,
Mar 22, 2012, 10:55:42 PM3/22/12
to Ubuntu Help and User Discussions
Using grub-update on 10.04.04 LTS on my Gateway laptop, dual booted
with Win 7, I get a really perverse menu.
One used to be able to edit those things by hand with legacy GRUB, but
I don't know how to do it with GNU GRUB.
What's wrong? The default is the first item in the menu, with is a
windows recovery partition that GRUB thinks is Vista.
What's wrong with that?
1) I want the default to be Ubuntu
2) I don't want to see the recovery partition in position 1; I'd
prefer it at the end.

Is there a way to do this so it keeps happening?

--
Kevin O'Gorman, PhD

--
ubuntu-users mailing list
ubuntu...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Pongo A. Pan

unread,
Mar 22, 2012, 11:23:41 PM3/22/12
to ubuntu...@lists.ubuntu.com
On Thu, 2012-03-22 at 19:55 -0700, Kevin O'Gorman wrote:
> Using grub-update on 10.04.04 LTS on my Gateway laptop, dual booted
> with Win 7, I get a really perverse menu.
> One used to be able to edit those things by hand with legacy GRUB, but
> I don't know how to do it with GNU GRUB.
> What's wrong? The default is the first item in the menu, with is a
> windows recovery partition that GRUB thinks is Vista.
> What's wrong with that?
> 1) I want the default to be Ubuntu
> 2) I don't want to see the recovery partition in position 1; I'd
> prefer it at the end.
>
> Is there a way to do this so it keeps happening?

>
You can hand-edit /boot/grub/grub.cfg. It shouts at you that you should
not, but I do it all the time with no tragic results so far. Of course
you'll have to do it again with the next kernel upgrade. I keep a copy
of my changes and just add in the new stanzas I upgrade kernels.

--
pongo pan
Thu, 22 Mar 2012 20:22:16 -0700
Epicurus up 3:17, 1 user, load average: 0.03, 0.03, 0.05
Linux 3.0.0-16-generic
Linux Mint 12 Lisa, gnome-session 3.2.1, Cinnamon 1.4.0

d~_*b

unread,
Mar 23, 2012, 12:51:06 AM3/23/12
to Ubuntu user technical support, not for general discussions
On Thursday 22 Mar 2012 7:55:42 PM Kevin O'Gorman wrote:
> Using grub-update on 10.04.04 LTS on my Gateway laptop, dual booted
> with Win 7, I get a really perverse menu.
> One used to be able to edit those things by hand with legacy GRUB, but
> I don't know how to do it with GNU GRUB.
> What's wrong? The default is the first item in the menu, with is a
> windows recovery partition that GRUB thinks is Vista.
> What's wrong with that?
> 1) I want the default to be Ubuntu

If you dont wnt to edit the .cfg at location : 'grep -i 'default'
/boot/grub/grub.cfg' file that update-grub creates after every update then you
can always edit the grub defaults file. 'grep -i 'default' /etc/default/grub'

It holds the default values used by update-grub to create the .cfg file

> 2) I don't want to see the recovery partition in position 1; I'd
> prefer it at the end.
>

To change the order of entries, you can always
1. make a backup of the .cfg and then simply cut & paste the code in the order
you want.
Else try fiddling with the files in 'ls /etc/grub.d/'

> Is there a way to do this so it keeps happening?

However I always say take backups
But if you prefer GUI then here are some pointers
http://www.howtogeek.com/howto/43471/how-to-configure-the-linux-grub2-boot-
menu-the-easy-way/

http://kde-apps.org/content/show.php?content=139643

Good Luck

--
& Ru

Kevin O'Gorman

unread,
Mar 23, 2012, 10:39:33 PM3/23/12
to d~_*b, Ubuntu user technical support, not for general discussions

Thanks, this helped a lot. I'm now much happier with the boot process.


--
Kevin O'Gorman, PhD

--

Kevin O'Gorman

unread,
Mar 23, 2012, 11:47:56 PM3/23/12
to d~_*b, Ubuntu user technical support, not for general discussions
On Thu, Mar 22, 2012 at 9:51 PM, d~_*b <theunkno...@gmail.com> wrote:

> http://www.howtogeek.com/howto/43471/how-to-configure-the-linux-grub2-boot-
> menu-the-easy-way/

The page exists, but the download of grub-customizer fails.


--
Kevin O'Gorman, PhD

--

NoOp

unread,
Mar 24, 2012, 10:27:42 PM3/24/12
to ubuntu...@lists.ubuntu.com
On 03/22/2012 07:55 PM, Kevin O'Gorman wrote:
> Using grub-update on 10.04.04 LTS on my Gateway laptop, dual booted
> with Win 7, I get a really perverse menu.
> One used to be able to edit those things by hand with legacy GRUB, but
> I don't know how to do it with GNU GRUB.
> What's wrong? The default is the first item in the menu, with is a
> windows recovery partition that GRUB thinks is Vista.
> What's wrong with that?
> 1) I want the default to be Ubuntu
> 2) I don't want to see the recovery partition in position 1; I'd
> prefer it at the end.
>
> Is there a way to do this so it keeps happening?
>

https://duckduckgo.com/?q=help.ubuntu+%2B+grub2
<https://help.ubuntu.com/community/Grub2>

Reply all
Reply to author
Forward
0 new messages