Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Good Morning. I have Windows Vista on sda and Ubuntu 9.10 and Parsix 3.0 on sdb. I just don't understand how grub2 works. When booting, grub2 still gives me a page for ~10 seconds that shows all three OS's and allows me the opportuniy to arrow dow to one to boot into it, but it has Ubuntu set as the default OS, and my wife wants Vista as default. Gotta keep her happy, you know. How can I make Vista the default OS in grub2? Thanks.
and change the default=0
to the number you want
0 is the first entry in the list
Quote:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
Hi Repo. I thank you for information, but that doesn't work in this case. That is what I used to do in my older version of Ubuntu that used grub. This version of Ubuntu uses grub2. It doesn't have a menu.lst.
Thanks aus9. I appreciate your response, but I'm beginning to think that I need to just give up on linux. I had a stroke a while back and my memory took a major hit. Before the stroke, I think I would have understood your response, but its greek to me now. If my memory starts working better, maybe I'll give this another try, but for now, I just can't learn anything. Maybe I'll buy a Mac. Thanks again.
as long as you only have vista and ubuntu 9.10 installed you should be able to do this
"sudo gedit /etc/default/grub"
then edit the line -
GRUB_DEFAULT=0
to
GRUB_DEFAULT=4
save the file, then run
"sudo update-grub"
and hopefully vista will boot first :-)
**edit**
sorry i forgot that you have parsix as well
it depends on where parsix and vista are in your grub menu at boot up
change the number on GRUB_DEFAULT= to the line number of vista minus 1
for example vista is on the 5th line in my grub menu so that why i suggested 4 to you initially
i.e. my grub menu
ubuntu =0
ubuntu recover =1
memtest =2
another memtest =3
Vista =4
Last edited by jimonyzangs; 10-29-2009 at 08:20 PM.
I thought I'd share my thoughts - this way preserves Windows as the default without having to change much else (and will hopefully remain that way after performing various kernel upgrades)
Grub2 relies on a sequence of shell scripts to generate the grub.cfg file, the shell scripts are run in alphabetical order and are found in /etc/grub.d
Code:
majic@hephaestus:~$ cd /etc/grub.d
majic@hephaestus:/etc/grub.d$ ls
00_header 10_linux 30_os-prober 41_custom
05_debian_theme 20_linux_xen 40_custom README
majic@hephaestus:/etc/grub.d$
By shuffling these around, you can make it generate the grub.cfg file in the order that you want. For me, I tend to use linux less commonly than windows, but I play a fair few games on windows that means it makes sense for me to use windows as my primary boot
hephaestus:/etc/grub.d# update-grub
Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found Windows 7 (loader) on /dev/sda1
Found linux image: /boot/vmlinuz-2.6.35.4-majic
Found initrd image: /boot/initrd.img-2.6.35.4-majic
Found linux image: /boot/vmlinuz-2.6.26-2-amd64
Found initrd image: /boot/initrd.img-2.6.26-2-amd64
done
You should find that windows 7 now appears at the top of the list - hope this helps
I thought I'd share my thoughts - this way preserves Windows as the default without having to change much else (and will hopefully remain that way after performing various kernel upgrades)
Grub2 relies on a sequence of shell scripts to generate the grub.cfg file, the shell scripts are run in alphabetical order and are found in /etc/grub.d
Code:
majic@hephaestus:~$ cd /etc/grub.d
majic@hephaestus:/etc/grub.d$ ls
00_header 10_linux 30_os-prober 41_custom
05_debian_theme 20_linux_xen 40_custom README
majic@hephaestus:/etc/grub.d$
By shuffling these around, you can make it generate the grub.cfg file in the order that you want. For me, I tend to use linux less commonly than windows, but I play a fair few games on windows that means it makes sense for me to use windows as my primary boot
hephaestus:/etc/grub.d# update-grub
Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found Windows 7 (loader) on /dev/sda1
Found linux image: /boot/vmlinuz-2.6.35.4-majic
Found initrd image: /boot/initrd.img-2.6.35.4-majic
Found linux image: /boot/vmlinuz-2.6.26-2-amd64
Found initrd image: /boot/initrd.img-2.6.26-2-amd64
done
You should find that windows 7 now appears at the top of the list - hope this helps
This worked for me after upgrading Ubuntu to newer version that included Grub2.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.