Updated Sabayon and lost Windows... [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Updated Sabayon and lost Windows... [Solved]

Postby Heratiki » Fri Sep 07, 2012 14:27

So I tried Sabayon a long time ago during Sabayon 5 and had several issues. I'm liking how the project is going and wanted to try again. I had Windows Vista installed on one partition with a 50gb section of the hard drive available for Sabayon. I install Sabayon and allowed it to take up the remainder of the hard drive without issue. The install went through flawlessly and when I rebooted everything was great. I could easily choose Sabayon or Windows no problems whatsoever. Then I get into Sabayon and allow the updates only for it to reboot and now I only have Sabayon as a choice and Windows is no longer in the Grub menu. Any help would be appreciated. Thank you in advance.

I attempted to add Windows back using the 11_Windows file in the /etc/grub.d folder. The only problem is there is no update-grub command? Why is that?!?!
Heratiki
Baby Hen
 
Posts: 3
Joined: Fri Sep 07, 2012 14:20

Re: Updated Sabayon and lost Windows...

Postby Fitzcarraldo » Fri Sep 07, 2012 15:44

Where have you put the GRUB 2 first-stage code? In the MBR or in a partition boot sector? If the former, and if your HDD is sda, try the following:

Code: Select all
$ su
Password: <--- Enter the root user's password here, not your password.
# grub2-install /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
# exit
$

Then reboot to check the GRUB 2 menu.

Heratiki wrote: The only problem is there is no update-grub command? Why is that?!?!

The Ubuntu command update-grub is really just grub-mkconfig -o /boot/grub/grub.cfg. See, for example, Linux Commands for GRUB2 for Ubuntu:

update-grub

The update-grub command runs a script called /usr/sbin/update-grub, which just runs another script called /usr/sbin/grub-mkconfig, see grub-mkconfig, (the next item, below).

Here's what /usr/sbin/update-grub looks like,
Code: Select all
#!/bin/sh -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"

See? All it does is run grub-mkconfig with the standard option.

The only reason this command still exists is because it's easy for new users to remember and it's simple. I think running a command that doesn't have any options is boring. My advice is to skip this command and start getting used to using the grub-mkconfig command instead. It's not a big step and only requires a wee bit more intelligence, you can do it if you try!
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Updated Sabayon and lost Windows...

Postby Heratiki » Fri Sep 07, 2012 16:55

Wow. I've been worried about this for a week and all I had to do was post. Thank you so much. Community is everything and I'm by far and wide happier with Sabayon than I ever was with Ubuntu (thus the update-grub command). I can't wait to start posting on more things. Thank you again. Is there a rep system here as you really do deserve more than just my thank you.
Heratiki
Baby Hen
 
Posts: 3
Joined: Fri Sep 07, 2012 14:20


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 2 guests