LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-11-2006, 08:08 AM   #1
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Changing bootloader options from linux / windows?


Hi all,

The default option for my bootloader(grub) is to start Fedora Core 4. I connect from work to my computer at home with ssh, but sometimes it is necessary to start windows and connect to home with rdesktop.
To boot windows I log in with ssh, change grub.conf and type reboot.

The problem is that I want to be able to switch back from windows to linux. I only have remote desktop connection at that time.

Is it possible to let grub boot fedora again from windows? Or is there an other bootloader that can be configured from windows and linux?

Thanks in advance.
 
Old 02-11-2006, 08:39 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
I've never tried it, but I think you can tell grub to boot something only once. This way you can boot windows and then reboot to linux.
Something like this I guess:
Code:
     default saved
     timeout 10
     
     title linux
     root (hd0,1)
     kernel /old_kernel
     savedefault
     
     title windows
     savedefault 0
     rootnoverify (hd0,0)
     chainloader +1
When you are in linux, if you type:
Code:
grub-set-default 1
You tell to grub to keep in mind that the saved default is windows.
After rebooting, since it executes the windows entry, it saves 0 as the default, so it will boot linux next time. So, every time you want to boot to windows type
Code:
grub-set-default 1
in the linux terminal.

I 'll tell you again, never tried it but I cannot think of why this shouldn't work.
Read here for more info:
http://www.gnu.org/software/grub/man...-once_002donly

Last edited by perfect_circle; 02-11-2006 at 08:41 AM.
 
Old 02-11-2006, 09:38 AM   #3
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Original Poster
Rep: Reputation: 30
Great, thanks.
That was exactly what i am looking for. I will try tomorrow ( I am at work right now and my computer at home already booted to windows )
 
Old 02-11-2006, 10:12 AM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
let me know if it works...
 
Old 02-12-2006, 04:24 AM   #5
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Original Poster
Rep: Reputation: 30
I have grub-0.95-13 installed and that version does not support the grub-set-default command. I checked rpm.pbone.net and I have to upgrade to grub-0.97 but that also means i have to upgrade glibc.
Fedora Core 5 will be available as of 15 march, so I will just wait for fedora core 5.
 
Old 04-22-2006, 04:42 PM   #6
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Original Poster
Rep: Reputation: 30
Still haven't found the grub-set-default tool. I thought it should be in the grub rpm but it is not.
Does anyone know where I can get the grub-set-default tool for fedora core 5?

Thanks.
 
  


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
iPAQ 2210 - installiong Linux: problem with changing bootloader ubik001 Linux - Laptop and Netbook 0 12-05-2004 04:57 AM
bootloader options ieuuk Mandriva 2 08-17-2004 11:09 AM
Mandrake 10. Bootloader options joshy Mandriva 2 08-05-2004 08:16 AM
bootloader options rcerrillo Linux - Software 2 03-07-2004 05:16 PM
RH 8.0 Grub bootloader options VioLaToR Linux - Distributions 1 11-21-2002 04:32 PM


All times are GMT -5. The time now is 09:04 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