LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-21-2007, 11:04 AM   #1
RaduH
LQ Newbie
 
Registered: Nov 2007
Location: Colorado, USA
Posts: 11

Rep: Reputation: 0
Question grub-set-default ... get-default?


Hi,

I understand grub-set-default but I was wondering how can I find the current default - the equivalent of the missing grub-get-default to tell me what was the default when I booted. I have two partitions and would like to be able to change the default to "the other" in a script. I could write that in a file and change the value each time I boot from the other partition but grub must have this value set somewhere so I can read it and then run grub-set-default with the other value. Where can I find this info? Any other solution/advice?

I forgot to mention, my menu.lst has the default entry like this:

default saved

And each boot option ends in savedefault, which makes the value not available for read.

Thanks!

Last edited by RaduH; 11-21-2007 at 11:11 AM.
 
Old 11-21-2007, 01:05 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
If I'm reading this correctly, you want to boot from option A, and when you reboot to automatically boot to option B by default, and then when you reboot again to automatically boot to option A by default, etc. If this is correct, edit your menu.lst and change the savedefault of the first entry to be "savedefault 1" and the savedefault of the second entry to be "savedefault 0".

HTH

Forrest
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing grub-set-default? LasseBob Linux - Software 2 03-08-2006 10:12 PM
grub-set-default missing Paulsuk Linux - Software 3 02-08-2006 08:18 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
How do I set default in GNU GRUB? akilhoffer Linux - Newbie 11 09-01-2004 06:17 AM
How to set the default WM beajedi Linux - General 6 02-20-2004 02:17 PM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration