Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Want to bring some Gentoo love to Ubuntu
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lduperval
Apprentice
Apprentice


Joined: 14 Jun 2003
Posts: 189

PostPosted: Tue Apr 20, 2010 12:05 am    Post subject: Want to bring some Gentoo love to Ubuntu Reply with quote

Hi,

When I switched from Gentoo to Ubuntu some time back, one of the things I missed most was the ability to reboot to a specific partition (Windows, other OS, etc.) I know that once upon a time, Gentoo allowed you do do that. Is it still the case? If so, what is the package that does that? Is it Gentoo-specific or can it be ported to other distros fairly easily?

Thanks,

L
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 236

PostPosted: Tue Apr 20, 2010 2:43 am    Post subject: Reply with quote

From reading your post, I am guessing that what you want is a boot manager. Gentoo typically uses GRUB for this.

GRUB is a typical bootloader for Gentoo Linux, even when you have no other OS installed. Therefore, you almost certainly have this installed so it's just a matter of configuration. If so, you should have a file called /boot/grub/menu.lst. This is a symlink which points to /boot/grub/grub.conf. There will be at least one entry for your current Gentoo root partition; this should definitely be left alone! You can add a second entry for another OS. In that case, rebooting your machine will give you a menu letting you choose which OS to load. You can set one as default so that just hitting <Enter> will load that one, and you can set a timer so that unattended reboots will load the default OS after X seconds of giving you time to choose one.

One decent GRUB guide is found in the Gentoo Handbook. Another is located here.
Back to top
View user's profile Send private message
lduperval
Apprentice
Apprentice


Joined: 14 Jun 2003
Posts: 189

PostPosted: Tue Apr 20, 2010 4:06 pm    Post subject: Reply with quote

HI,

No, I know what GRUB is. Maybe I explained it wrong, and it's been a while since I've used Gentoo. So let me explain better.

In the GNOME environment, there is an applet that allows you to click on it to restart, shutdown, suspend, etc. So the options look like this (or similar):

Switch user...
Suspend
Lock screen
Shut down
Hibernate
Reboot
...

But the version of Gentoo GNOME I used to use had something like this:

Switch user...
Suspend
Lock screen
Shut down
Hibernate
Reboot
Reboot to <Windows>
Reboot to <BeOS>
...

Now, where it says "<Windows>" or "<BeOS>", those are entries in GRUB (or LILO, at the time I think). The idea, of course, was the the reboot was automatic and you didn't have to wait for the GRUB menu to pop up and then choose your boot option.

I'm not sure how that worked though: was the GRUB/LILO config rewritten every time? I don't think so because when I rebooted after using Windows, it would go to Gentoo automatically so the reboot option wasn't permanent.

Maybe it was a LILO feature and doesn't work with GRUB?

I really don't know but I figure if it's still in use, somebody here probably knows.

L


Last edited by lduperval on Tue Apr 20, 2010 5:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Tue Apr 20, 2010 5:05 pm    Post subject: Reply with quote

lduperval wrote:

But the version of Gentoo GNOME I used to use had something like this:

Switch user...
Suspend
Lock screen
Shut down
Hibernate
Reboot
Reboot to <Windows>
Reboot to <BeOS>
...

Now, where it says "<Windows>" or "<BeOS>", those are entries in GRUB (or LILO, at the time I think). The idea, of course, was the the reboot was automatic and you didn't have to wait for the GRUB menu to pop up and then choose your boot option.

I'm not sure how that worked though: was the GRUB/LILO config rewritten every time? I don't think so because when I rebooted after using Windows, it would go to Gentoo automatically so the reboot option wasn't permanent.

Maybe it was a LILO feature and doesn't work with GRUB?

I really don't know but I figure if it's still in use, somebody hear probably knows.

L


Oh, man, I thought that's what you were talking about in the original post, but I wasn't sure ... but, wow, I *totally* remember Gentoo or something having this like *YEARS* ago, and it was the coolest thing ever. You could tell what menu option to reboot into while shutting down.

Of course, I didn't really understand Linux too well back then, and I remember the feature going away, so in time I figured it was just my imagination remembering that.

Man, I want that feature back too. :D
_________________
If it ain't broke, tweak it. dvds | blurays | blog | wiki
Back to top
View user's profile Send private message
wthrowe
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2009
Posts: 141

PostPosted: Tue Apr 20, 2010 6:13 pm    Post subject: Reply with quote

I think that was a LILO feature that doesn't exist in grub.

I seem to recall reading a discussion about it somewhere where the best anyone came up with on a grub system was a script to swap grub.conf files at shutdown, but that changes the default permenantly instead of just once, so is less useful for booting into Windows on a box that normally boots Linux. It could probably work to switch between different distros, though.
Back to top
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 815

PostPosted: Tue Apr 20, 2010 6:29 pm    Post subject: Reply with quote

Hi,

I'm not sure about the GUI part of all this, but i guess it can be done.
Grub comes with the grub-set-default, which allows you to set a default choice for the next boot, this might be the way to do something similar with grub.

More information can be found in the grub info file, with info grub, then check "invoking grub-set-default".

Best regards,
pa4wdh
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
jcTux
Apprentice
Apprentice


Joined: 29 Dec 2009
Posts: 276
Location: Tours, France

PostPosted: Tue Apr 20, 2010 6:34 pm    Post subject: Reply with quote

I remember having used this feature 2 years ago with openSuse+KDE. I don't think that is a Lilo only feature, because it was grub installed.
Back to top
View user's profile Send private message
lduperval
Apprentice
Apprentice


Joined: 14 Jun 2003
Posts: 189

PostPosted: Tue Apr 20, 2010 7:42 pm    Post subject: Reply with quote

Well, I found this:

http://sidvind.com/wiki/GRUB:_Boot_another_OS_once

L
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum