LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-13-2009, 07:06 AM   #1
simeon.mattes
Member
 
Registered: Feb 2009
Posts: 60

Rep: Reputation: 15
grub-reboot issue


Hi,

I have installed in my pc Slackware,ubuntu 8.04 and Windows. I use as a boot loader this of ubuntu,i.e. grub. I want to be able to reboot my system to another OS remotely but there is a problem with the command grub-reboot and I don't know what to do.


Code:
default	0	
timeout	5	

title		Ubuntu 8.04.2, kernel 2.6.24-23-rt
root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-23-rt root=UUID=e47a5ae9-701c-4d33-9589-d580d48f5405 ro quiet splash
initrd		/boot/initrd.img-2.6.24-23-rt
quiet

title		Ubuntu 8.04.2, kernel 2.6.24-23-rt (recovery mode)
root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-23-rt root=UUID=e47a5ae9-701c-4d33-9589-d580d48f5405 ro single
initrd		/boot/initrd.img-2.6.24-23-rt

title		Ubuntu 8.04.2, memtest86+
root		(hd1,1)
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault 0
makeactive
chainloader	+1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb3.
title		Slackware CLI (Slackware 12.2.0) (on /dev/sdb3)
root		(hd1,2)
kernel		/boot/vmlinuz-generic-2.6.27.7 root=/dev/sdb3 
savedefault 0
boot
I have tried many things according to the following links but nothing. My system insist to reboot to the first option

http://wiki.debian.org/GrubReboot
http://www.cyberciti.biz/tips/force-...cified-os.html
http://ubuntuforums.org/showthread.php?t=822991
http://sidvind.com/wiki/GRUB:_Boot_another_OS_once

Thanks in advance
 
Old 04-14-2009, 01:36 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
What is the command you are using?
How are you doing the remote shell?
Does the command work from a local shell?

I see by your menu.lst that you have not followed the instructions in the first link you provided.
Why is this?
 
Old 04-14-2009, 03:14 AM   #3
simeon.mattes
Member
 
Registered: Feb 2009
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks Bridge for your quick response

Quote:
Originally Posted by Simon Bridge View Post
What is the command you are using?
Code:
grub-reboot 4
for windows

Quote:
Originally Posted by Simon Bridge View Post
How are you doing the remote shell?
Yes. Through ssh or remote desktop


Quote:
Originally Posted by Simon Bridge View Post
Does the command work from a local shell?
No. I have the same results


Quote:
Originally Posted by Simon Bridge View Post
I see by your menu.lst that you have not followed the instructions in the first link you provided.
Why is this?
Actually at first I used the following

Code:
default	saved
timeout	5	

title		Ubuntu 8.04.2, kernel 2.6.24-23-rt
root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-23-rt root=UUID=e47a5ae9-701c-4d33-9589-d580d48f5405 ro quiet splash
initrd		/boot/initrd.img-2.6.24-23-rt
quiet

title		Ubuntu 8.04.2, kernel 2.6.24-23-rt (recovery mode)
root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-23-rt root=UUID=e47a5ae9-701c-4d33-9589-d580d48f5405 ro single
initrd		/boot/initrd.img-2.6.24-23-rt

title		Ubuntu 8.04.2, memtest86+
root		(hd1,1)
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault 0
makeactive
chainloader	+1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb3.
title		Slackware CLI (Slackware 12.2.0) (on /dev/sdb3)
root		(hd1,2)
kernel		/boot/vmlinuz-generic-2.6.27.7 root=/dev/sdb3 
savedefault 0
boot
and after grub-reboot 4, the system rebooted to windows. But this was the last time I managed to do it. Ever since my system reboots only to the first option.
 
Old 04-14-2009, 07:38 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
That is still not according to the instructions in your first link.

default saved
timeout 5
grub-set-default 0

then run

grub-install

then try

grub-reboot 4

Do this from a local terminal.
Pay attention to messages.

If you get a boot into Ubuntu ... put grub-set-default to 4 or 5 and try a grub-reboot to 0.
(Just checking.)
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding Zone Reboot Issue rajaniyer123 Solaris / OpenSolaris 3 10-18-2008 04:25 PM
Reboot issue sudar Linux - General 2 02-22-2008 12:28 AM
correct grub.conf, reboot and cannot get grub prompt... sportivo888 Linux - Newbie 1 12-10-2007 11:47 PM
Reboot issue pksnairg Linux - Software 2 08-23-2007 04:06 AM
Reboot issue prakash.dumbre Solaris / OpenSolaris 2 04-21-2007 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration