Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   grubby details of grub2 (http://www.linux-archive.org/ubuntu-user/435101-grubby-details-grub2.html)

Ric Moore 10-03-2010 09:30 PM

grubby details of grub2
 
On Sun, 2010-10-03 at 14:12 -0700, Kevin O'Gorman wrote:
> I'm running Lucid on my laptop, and have been transported into the
> grub2 reality. At least I think so because
> of the huge changes in /boot/grub/. I no longer understand much of
> it.
>
> Somewhat to my amazement I got it working. I even dual boot to Vista.
> Problem is that I want to change
> where that Vista entry appears in the menu, and I have NO clue. I
> heard that menu.lst no longer exists,
> and that configuration now goes in grub.cfg. Then I notice the
> warning not to touch that file because it's
> automatically generated. I find myself unable to sort out the layers
> of the new setup.
>
> Since all I ordinarily use is the first Linux entry and the Vista
> entry, I'd like to move Vista up to the top or second
> spot. That's it. I figure it might take me a day to figure this out,
> but free days are hard to come by and I'm
> hoping somebody can give me a short recipe.
>
> Thanks in advance....

Or, just bend to the inevitable and let it be. There ain't NOTHING like
it used to be. And, there is the possibility that making changes will
just end in tears and madness. So, I just cycle straight through to
"Acceptance" in the Cycle-of-Grief. That spares me the first four stages
"Denial", "Anger", "Bargaining" and "Depression". They all hurt. :) Ric


--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
Linux user# 44256


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

"Kevin O'Gorman" 10-03-2010 09:40 PM

grubby details of grub2
 
On Sun, Oct 3, 2010 at 2:30 PM, Ric Moore <wayward4now@gmail.com> wrote:

On Sun, 2010-10-03 at 14:12 -0700, Kevin O'Gorman wrote:

> I'm running Lucid on my laptop, and have been transported into the

> grub2 reality. *At least I think so because

> of the huge changes in /boot/grub/. *I no longer understand much of

> it.

>

> Somewhat to my amazement I got it working. *I even dual boot to Vista.

> Problem is that I want to change

> where that Vista entry appears in the menu, and I have NO clue. *I

> heard that menu.lst no longer exists,

> and that configuration now goes in grub.cfg. *Then I notice the

> warning not to touch that file because it's

> automatically generated. *I find myself unable to sort out the layers

> of the new setup.

>

> Since all I ordinarily use is the first Linux entry and the Vista

> entry, I'd like to move Vista up to the top or second

> spot. *That's it. *I figure it might take me a day to figure this out,

> but free days are hard to come by and I'm

> hoping somebody can give me a short recipe.

>

> Thanks in advance....



Or, just bend to the inevitable and let it be. There ain't NOTHING like

it used to be. And, there is the possibility that making changes will

just end in tears and madness. So, I just cycle straight through to

"Acceptance" in the Cycle-of-Grief. That spares me the first four stages

"Denial", "Anger", "Bargaining" and "Depression". They all hurt. :) Ric
I understand and appreciate the wisdom of this attitude, really. *But in this
case it means I have to give up on something that's quite useful to me, becauseI use it a few times every day, and my menu being quite long I'm not happyabout having to do so much navigation.

I'm not ready for acceptance, but I'm not gonna die if it takes some extra work, either.*--
Kevin O'Gorman, PhD


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

Goh Lip 10-03-2010 09:42 PM

grubby details of grub2
 
On Monday 04,October,2010 05:12 AM, Kevin O'Gorman wrote:

> Somewhat to my amazement I got it working. I even dual boot to Vista.
> Problem is that I want to change
> where that Vista entry appears in the menu, and I have NO clue. I heard
> that menu.lst no longer exists,
> and that configuration now goes in grub.cfg. Then I notice the warning
> not to touch that file because it's
> automatically generated. I find myself unable to sort out the layers of
> the new setup.
>
> Since all I ordinarily use is the first Linux entry and the Vista entry,
> I'd like to move Vista up to the top or second
> spot. That's it. I figure it might take me a day to figure this out,
> but free days are hard to come by and I'm
> hoping somebody can give me a short recipe.
>

Kevin, there are several methods you can choose...
o modify the grub.cfg anyway (despite warning, it's ok, minor amendment)
o use the 'update manager'
o modify the default at /etc/default/grub
o add vista entry to and amend /etc/grub.d/40_custom to 07_custom

The first 3 is fairly straightforward but you need to watch out for any
kernel upgrades and you have to redo it once more as the default number
will be changed.

The 4th method will be permanent and vista will be at the top of the
menu list, don't forget to update-grub to effect the change.

But I use none of these.

Good luck and take care - Goh Lip




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

Rashkae 10-03-2010 09:56 PM

grubby details of grub2
 
On 10-10-03 05:12 PM, Kevin O'Gorman wrote:
> I'm running Lucid on my laptop, and have been transported into the
> grub2 reality. At least I think so because
> of the huge changes in /boot/grub/. I no longer understand much of it.
>
> Somewhat to my amazement I got it working. I even dual boot to
> Vista. Problem is that I want to change
> where that Vista entry appears in the menu, and I have NO clue. I
> heard that menu.lst no longer exists,
> and that configuration now goes in grub.cfg. Then I notice the
> warning not to touch that file because it's
> automatically generated. I find myself unable to sort out the layers
> of the new setup.
>
> Since all I ordinarily use is the first Linux entry and the Vista
> entry, I'd like to move Vista up to the top or second
> spot. That's it. I figure it might take me a day to figure this
> out, but free days are hard to come by and I'm
> hoping somebody can give me a short recipe.
>
There are, unfortunately, no short recipes.

But I will start off by letting you know this. There is no need to fear
the warning about not editing grub.cfg. Nothing particularly bad will
happen to you if you do. The only thing you need to be aware of is that
the file is auto-generated, and will be regenerated whenever the package
manager feels like (ex: when a kernel is updated, or even when you want
to make a change to grub and run grub-update.). So that makes it a bad
place to make changes that your system needs to boot reliably (ie,
custom kernel parameters, for example.). If, however, the prospect of
the menu returning to it's default state with little or no warning
doesn't frighten you, then by all means, hack grub.cfg to your liking.

As you probably already know, the grub.cfg file is generated by the
scripts in the /etc/grub.d directory.

Those scripts are executed in alphabetical order (hence why they are
numbered,) so one easy change you can make is:

mv 30_os-prober 15_os-prober

os-prober is the script that finds and adds Windows to the grub menu, so
by making it run before memtest, then memtest, at least will be below
windows in the grub menu.

You might also want to suppress the linux rescue mode entries. You can
specify that in the /etc/default/grub file. Remove the # to uncomment
"GRUB_DISABLE_LINUX_RECOVERY="true" ".

After that, use your favorite package manager to remove any older kernel
images you have.

If these steps do not make the menu look the way you like, then the next
step is to craft your own menu entries. That's what the
/etc/grub.d/40_custom file is for. Copy the sections you want from
grub.cfg file, and paste them into 40_custom. Then, you give those
custom entries top billing with:

mv 40_custom 09_custom (which will make it run before the automatically
generated entries)

There is one important caveat to that last method which makes it the
least advised. You will have to manually make any updates to the custom
entries. If you boot from one of those entries, you will not
automatically benefit from kernel updates that come as part of your
regular system update process.



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

"Kevin O'Gorman" 10-05-2010 08:53 PM

grubby details of grub2
 
On Sun, Oct 3, 2010 at 2:56 PM, Rashkae <ubuntu@tigershaunt.com> wrote:

On 10-10-03 05:12 PM, Kevin O'Gorman wrote:

> I'm running Lucid on my laptop, and have been transported into the

> grub2 reality. *At least I think so because

> of the huge changes in /boot/grub/. *I no longer understand much of it.

>

> Somewhat to my amazement I got it working. *I even dual boot to

> Vista. *Problem is that I want to change

> where that Vista entry appears in the menu, and I have NO clue. *I

> heard that menu.lst no longer exists,

> and that configuration now goes in grub.cfg. *Then I notice the

> warning not to touch that file because it's

> automatically generated. *I find myself unable to sort out the layers

> of the new setup.

>

> Since all I ordinarily use is the first Linux entry and the Vista

> entry, I'd like to move Vista up to the top or second

> spot. *That's it. *I figure it might take me a day to figure this

> out, but free days are hard to come by and I'm

> hoping somebody can give me a short recipe.

>

There are, unfortunately, no short recipes.



But I will start off by letting you know this. *There is no need to fear

the warning about not editing grub.cfg. *Nothing particularly bad will

happen to you if you do. *The only thing you need to be aware of is that

the file is auto-generated, and will be regenerated whenever the package

manager feels like (ex: when a kernel is updated, or even when you want

to make a change to grub and run grub-update.). *So that makes it a bad

place to make changes that your system needs to boot reliably (ie,

custom kernel parameters, for example.). *If, however, the prospect of

the menu returning to it's default state with little or no warning

doesn't frighten you, then by all means, hack grub.cfg to your liking.



As you probably already know, the grub.cfg file is generated by the

scripts in the /etc/grub.d directory.



Those scripts are executed in alphabetical order (hence why they are

numbered,) so one easy change you can make is:



mv 30_os-prober 15_os-prober



os-prober is the script that finds and adds Windows to the grub menu, so

by making it run before memtest, then memtest, at least will be below

windows in the grub menu.



You might also want to suppress the linux rescue mode entries. *You can

specify that in the /etc/default/grub file. *Remove the # to uncomment

"GRUB_DISABLE_LINUX_RECOVERY="true" ".



After that, use your favorite package manager to remove any older kernel

images you have.



If these steps do not make the menu look the way you like, then the next

step is to craft your own menu entries. *That's what the

/etc/grub.d/40_custom file is for. *Copy the sections you want from

grub.cfg file, and paste them into 40_custom. *Then, you give those

custom entries top billing with:



mv 40_custom 09_custom (which will make it run before the automatically

generated entries)



There is one important caveat to that last method which makes it the

least advised. *You will have to manually make any updates to the custom

entries. *If you boot from one of those entries, you will not

automatically benefit from kernel updates that come as part of your

regular system update process.


Thanks.* Between the answers from you and Goh, I think I can handle it.
--
Kevin O'Gorman, PhD


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


All times are GMT. The time now is 03:32 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.