Editing and enhancing grub food selection
I would certainly such as to modify the Grub food selection that shows up, to relocate one line and also remove others.
I have an Inspiron 1420 that featured Ubuntu 7.10. When it required a new drive, I mounted Windows 7, the initial OS, and afterwards it appeared that 10.04 desired its very own dividing. I possibly need to have examined specifically what I was doing first (renowned last words).
What I would certainly such as to do is remove the 7.10 lines totally, so I can surprise every little thing because dividing and also utilize it as/ residence for 10.04. I would certainly additionally such as to relocate the Windows 7 align to 2nd from the top, so starting in Windows would certainly be a fast 2 keystrokes as opposed to adhering to the line right down. Striking the Grub modify key thought of vague guidelines, and also given that this is the boot loader I would certainly sort of instead not screw it up regrettable.
So, what's the most effective means to do this?
Short solution : Delete the 7.10 dividing, modify the documents in
/etc/grub.d/ as required, after that run
Long solution : The edit setting in the boot menu is suggested for short-lived edits, for recuperation or screening objectives generally. To transform the alternatives completely you require too right into the OS that mounted Grub to the boot block and also transform the Grub arrangement there.
Ubuntu 10.04 usages Grub2 by default, which removes
menu.lst and also autogenerates
grub.cfg each time update-grub is run. I would not modify that documents by hand as your adjustments will likely get surprised (update-grub is instantly pursued numerous updates, specifically those managing the bit ).
The first point I would certainly do is see to it you're making use of Grub from your 10.04 dividing, and also not your 7.10. I think starting right into 10.04 and also running
sudo update-grub needs to suffice. If it runs great, you're making use of the proper Grub. If it does not, it needs to give a mistake message you can make use of to identify what requires to be done.
To remove the 7.10 access, it could be as straightforward as simply cleaning that dividing and afterwards running
sudo update-grub. A lot of the Grub2 access are autodetected, so if it no more identifies the bootable bit it will not detail it. If that does not clear it, the documents to modify stay in
/etc/grub.d/, seek a documents or area details to 7.10 and also delete it (seeing to it to support any kind of documents you edit/delete first ), after that rerun
sudo update-grub. If you screw something up, you can repair it by placing your supported documents back and also rerunning
sudo update-grub, although you might require too off your recuperation disc if you take care of to surprise your 10.04 access in some way.
Reordering is more difficult, they originate from the order of the files in
/etc/grub.d/ and also the order within those manuscripts. The Windows access originates from
30_os-prober, so you can relabel it
11_os-prober to place it after the access from
10_linux yet that would not make it the 2nd access and also I'm not exactly sure if that would certainly brake with updates.
If you do not mind having the Windows access first and also Linux 2nd (yet default ) what I did rather was to replicate
01_custom and afterwards replicated the Windows menuentry area from
/boot/grub/grub.cfg verbatim. That placed Windows as the first access, and also you can after that modify
/etc/default/grub and also placed
GRUB_DEFAULT=1 to make the 2nd access (it counts from 0 ) the default (thinking that's 10.04 ). Keep in mind that this will certainly replicate the Windows access in your boot menu, which you can remove the replicate by getting rid of the execute little bit from
30_os-prober, yet I recommend leaving it in instance you require the autoprobed access from os-prober later on.
Tell the Ubuntu 10.04 to enforce its very own Grub2 (
grub-pcplan ) for starting, if you have not done so currently (the installment program might have recycled the existing Grub from 7.04 ). It might be as straightforward as
sudo update-grub sudo grub-install /dev/sda
yet examine https://help.ubuntu.com/community/Grub2 if you have problem. Do not stress if you see something concerning 7.04 : it's anticipated and also safe.
Remove the 7.04 installment.
update-grubonce more on the 10.04 system. This moment it need to just supply too Ubuntu 10.04 and also Windows.
I can not consider a very easy means of having the Windows access in between the regular Linux access and also the rescue Linux access. Yet I assume in your scenario the Windows access will certainly be last, so you can boot it with End Enter.