Dual Boot Problem

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

Dual Boot Problem

Postby Xanity » Tue Jul 28, 2009 10:11

Ok, so I was dual booting Sabayon and Windows XP, but then I had to reinstall Windows XP and now my computer won't dual boot anymore, it will only boot up Windows. It won't give me an option to boot into Sabayon anymore. Can someone please help me?
Xanity
Baby Hen
 
Posts: 7
Joined: Tue Jul 14, 2009 4:23

Re: Dual Boot Problem

Postby micia » Tue Jul 28, 2009 10:48

Windows has overwritten your bootloader, you have to recover it using
Supergrubdisk or the Sabayon LiveDVD.
http://www.supergrubdisk.org/
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: Dual Boot Problem

Postby wolfden » Tue Jul 28, 2009 10:53

lol, I told u that in the IRC help chat

get the cd, use it and keep it in your must have cds pile
User avatar
wolfden
Sharecropper
 
Posts: 8822
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Dual Boot Problem

Postby Xanity » Tue Jul 28, 2009 11:24

micia wrote:Windows has overwritten your bootloader, you have to recover it using
Supergrubdisk or the Sabayon LiveDVD.
http://www.supergrubdisk.org/

How do I recover it with the Sabayon LiveDVD???
Xanity
Baby Hen
 
Posts: 7
Joined: Tue Jul 14, 2009 4:23

Re: Dual Boot Problem

Postby micia » Tue Jul 28, 2009 11:58

You boot in the liveDVD, find out which hard disk has Sabayon and Windows installed,
and invoke grub-install to reinstall grub in that device.

(note, use these commands as root)

1. boot the LiveDVD

2. find out the device, you can use GParted, fdisk or whatever, you could also
already know it... For example using fdisk:
Code: Select all
fdisk -l

You will get all your partitions and disks, let's assume you have Windows on /dev/sda2 and
Sabayon on /dev/sda1.
These are partitions of the /dev/sda disk. So the device in which they are installed is /dev/sda.

3. chroot in your system.
You have to chroot in your system, in this example /dev/sda1 is where Sabayon is located, so:
*mount it:
Code: Select all
mkdir sabayon_partition
mount /dev/sda1 ./sabayon_partition

*prepare the environment in order to use that partition:
Code: Select all
mount --bind /dev/ ./sabayon_partition/dev
mount -t proc none ./sabayon_partition/proc

*execute the chroot:
Code: Select all
chroot ./sabayon_partition /bin/bash


Now you are inside your system.

4. use grub-install in the chroot-ed environment:
simply use grub-install and pass to it the device you found out:
Code: Select all
grub-install /dev/sda


5. exit and unmount the partition:
[EDIT] I fixed this command...
Code: Select all
exit
umount ./sabayon_partition/proc
umount ./sabayon_partition/dev
umount ./sabayon_partition


just as a note: If wolfden already helped you out you should follow his instructions, we are
not paid to offer support and duplicating our work is no fun...
At least provide informations of what you tried and which steps confused you.
Last edited by micia on Tue Jul 28, 2009 12:17, edited 1 time in total.
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: Dual Boot Problem

Postby pepe999 » Tue Jul 28, 2009 12:08

Xanity wrote:
micia wrote:Windows has overwritten your bootloader, you have to recover it using
Supergrubdisk or the Sabayon LiveDVD.
http://www.supergrubdisk.org/

How do I recover it with the Sabayon LiveDVD???

You can use any linux live dvd/cd, not only Sabayon LiveDVD... :)
1. Boot up the live cd/dvd as root(username and password are root)
2. Open terminal and type
Code: Select all
grub

3.
Code: Select all
find /boot/grub/stage1

4.
Code: Select all
root (hd0,1)
if (hd0,1) is the result of step 3
5.
Code: Select all
setup (hd0)
should be ended by succeeded or done
6. quit
7. reboot(can do it in terminal)
HP dv6 2060ea
Sabayon 11 Mate
Win 7 still installed
Linux user no. 491024
User avatar
pepe999
Advanced Hen
 
Posts: 244
Joined: Fri Mar 06, 2009 19:24
Location: Manchester


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest

cron