Announcement

News: Chakra 2013.03 Benz Released: Release Notes - Download - A good place to start: Beginner's Guide - For pasting any code/info please use paste.chakra. Please read Forum Etiquette.

#26 2012-04-10 23:18:01

thecdn
Newbie
Registered: 2008-12-30
Posts: 4

Re: Switch from Burg to Grub2.

If I have several distros  installed, how can I change which one is the default to boot into? As far as I can tell running update-grub only detects installed distros. I don't see where I can modify the default boot distro. I repartitioned my comp over the weekend and currently have:
/sda1 - Win7
/sda5 - swap
/sda6 - Chakra
/sda7 - future distro
/sda8 - future distro
/sda9 - future distro
/sda10 - future distro

I noticed that if I boot into Win7, the next time the comp boots up it boots on Win7, and the same with Chakra. I want to keep my default boot - Chakra, the same no matter what I booted into last.

I'm very familiar with original grub and edited the menu all the time as I installed/unstalled multiple distros. I'd like to be able to do the same with Chakras grub2. The alternative is to install PClinuxOS and use it's grub as I have been doing for years.

Thanks for any help/info.

Offline

#27 2012-04-11 00:07:20

SteveK
Forum Moderator
From: UK
Registered: 2011-09-22
Posts: 1,074

Re: Switch from Burg to Grub2.

Hi,
Edit /etc/default/grub so that the line GRUB_DEFAULT=saved  reflects the number of the menu entry of the OS you wish to use as default, counting from 0.
e.g.

GRUB_DEFAULT=3

You can do it by name also

GRUB_DEFAULT='Chakra Linux, with Standard-Kernel'

After this you will need to run sudo update-grub to write these changes to /boot/grub/grub.cfg
More here:
http://www.gnu.org/software/grub/manual … figuration
under GRUB_DEFAULT

Offline

Board footer

Powered by FluxBB 1.4.8