Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What do you want to change about it? They show on screen in your menu the way they are listed in the grub.cfg file. If you want to change which boots by default, change the entry in /etc/default/grub file:
Quote:
GRUB_DEFAULT=0
You will see a line like the one above. Change the 0 to whichever default you want. Counts from zero rather than one.
If that's not what you're looking for, be more specific.
Thank you !I have two OS, one is Winxp and the other one is Ubuntu, I want to change the default OS to boot is WinXP instead of Ubuntu. But the way, any GUI apps that help ? I don't familiar with the OS and the path and the text editors.
Boot Ubuntu. Hold down the Ctrl+Alt+t keys simultaneously. This will open a terminal where you type: sudo cat /boot/grub/grub.cfg. This will open the grub.cfg file. Look at the entries which begin with 'menuentry' and count down to the one for xp. Make a note of it. At the prompt in the terminal, type: sudo gedit /etc/default/grub. This will open that file and you can edit the line I refer to above. Replace the zero (0) with whatever number you have from the xp entry. Save and close and reboot.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
As I understand it Ubuntu uses GRUB2 so editing grub.cfg manually isn't a good idea and won't survive an update to any packages involved in booting either. This thread on the Ubuntu forums explains how to change the default entry, amongst other things: http://ubuntuforums.org/showthread.php?t=1302743
sudo gedit /etc/default/grub. This will open that file and you can edit the line I refer to above. Replace the zero (0) with whatever number you have from the xp entry. Save and close and reboot
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.