Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

reboot using grub like "lilo -R"

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
hdok
n00b
n00b
User avatar
Posts: 18
Joined: Wed Jun 12, 2002 10:46 am
Location: Venlo, The Netherlands
Contact:
Contact hdok
Website

reboot using grub like "lilo -R"

  • Quote

Post by hdok » Sat Jun 15, 2002 8:53 pm

Hello,

Before I used grub as a bootmanager I used lilo.
With lilo it was possible to set the reboot choice for
the next reboot.

So when I was trying new kernel stuff i mostly
typed lilo -R New_Kernel; reboot

One of the choices in my lilo menu was ofcourse New_Kernel.

Is there something simular in Grub:?:
Dries.
You can have it fast, cheap or correct: pick 2
Top
delta407
Bodhisattva
Bodhisattva
User avatar
Posts: 2876
Joined: Tue Apr 23, 2002 12:16 am
Location: Chicago, IL
Contact:
Contact delta407
Website

  • Quote

Post by delta407 » Sun Jun 16, 2002 12:12 am

Just change the "default" line in /boot/grub/menu.lst to point to the proper kernel.
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Sun Jun 16, 2002 12:21 am

I'd think it would be easier to add an "experimental" boot option that points to a kernel rather than change
the default every time. Even that sounds more involved than he was looking for though.
Quis separabit? Quo animo?
Top
BradN
Advocate
Advocate
User avatar
Posts: 2391
Joined: Fri Apr 19, 2002 2:48 am
Location: Wisconsin (USA)

  • Quote

Post by BradN » Sun Jun 16, 2002 12:46 am

Well, if you were only switching between kernel versions (with the command line staying the same), you could probably put your default kernel on a symlink, and change the symlink before you reboot.

Otherwise, it might be easiest to have a file without the default line, and just

echo "default 2" > menu.lst; cat rest-of-menu.lst >> menu.lst

That should work, I think (might need another blank line at the beginning of the rest-of-menu, I'm not sure).
Top
delta407
Bodhisattva
Bodhisattva
User avatar
Posts: 2876
Joined: Tue Apr 23, 2002 12:16 am
Location: Chicago, IL
Contact:
Contact delta407
Website

  • Quote

Post by delta407 » Sun Jun 16, 2002 12:56 am

Hmm... when I add a new kernel, I move it to /boot/bzImage-YYYY.MM.DD and add a new entry to the top of menu.lst. I have it set to "default 0", so it will use the new kernel automagically.
Top
hdok
n00b
n00b
User avatar
Posts: 18
Joined: Wed Jun 12, 2002 10:46 am
Location: Venlo, The Netherlands
Contact:
Contact hdok
Website

  • Quote

Post by hdok » Sun Jun 16, 2002 6:37 am

Thanks for all your replies but maybe I did not explain exactly what I meant.

The whole point in lilo -R was that you could override your default only for the next boot.
It was like telling the bootmenu what to do in the next boot.

On my computer Windows is the default :oops: because
others use it too. I can not change the default because
the other users wouldn't understand.

Because of this I have to wait for my computer to reboot and make a selection in grub each time I boot.

Using lilo I was able to tell what to boot the next time and then reboot from the commandline.

I think this is not available in grub.
Dries.
You can have it fast, cheap or correct: pick 2
Top
hanno
n00b
n00b
Posts: 15
Joined: Sun Apr 28, 2002 1:42 pm
Contact:
Contact hanno
Website

Why don't you use lilo?

  • Quote

Post by hanno » Sun Jun 16, 2002 10:29 am

Well, although grub is the default for gentoo, you can still use lilo.
just
emerge lilo
change lilo.conf and run lilo.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic