Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Dual Boot IDE and SATA?

  Date: Dec 04    Category: Unix / Linux / Ubuntu    Views: 529
  

My original system had an 800G drive that was set up to dual boot XP and Ubuntu
8.04. The MB died and I re-built the system with an AMD quad-core CPU and a 1TB
SATA drive in addition to the 800G drive. I had to re-install XP on the 800G
drive and I am trying to install 9.10 on the 1TB drive in a dual boot.

When I got to the partition manager I manually set up the 1TB drive with
partitions for /boot, /root, swap, /home, and a FAT32 shared partition. The
installler claimed that it could not find any other OS's on the computer. After
installation, when I rebooted, it booted into XP.

I think my BIOS is set up to boot from the IDE drive if there is no bootable CD.
How do I put the GRUB2 image on the IDE drive and get it to boot from the SATA?
Alternatively, can I change the BIOS settings to boot from the SATA drive after
the CD and still have the GRUB option for booting XP from the IDE drive?

Share: 

 

3 Answers Found

 
Answer #1    Answered On: Dec 04    

In Linux the drives are numbered sda, sdb, etc. However, grub uses relative
drive designations using ordinals. The first drive is hd0 and the second
drive is hd1 (counting from zero). When you write grub initially it will
default to the drive where the distribution is installed, but you can choose
any drive. On page 7 of the Ubuntu installation where it reviews the
installation, just before it actually begins installing, you select the
Advanced button on the bottom. There you can write it to sda or sdb.

Sometimes things foul up and grub may designate the drives wrong, depending
on your boot order and your intentions. You can reverse this by manually
editing grub and changing h1 to hd0 or vice versa. You do this as root and
edit it with the terminal command: sudo gedit. This will open the text
editor, gedit, as root. Then you navigate to /boot/grub/grub.cfg. Look for
the appropriate line and change (hd0,0) or (hd1,0) with the first number is
the relative drive in ordinals and the second number after the comma is the
relative partition in ordinals and change it to the opposite. Note you
should not have to change the partition number as it is probably the same.
Save your changes.

You can also rewrite grub to another drive afterwards, if it wrote to
another drive. See: https://help.ubuntu.com/community/Grub2

Look for the section called Reinstalling GRUB 2.

I have two hard drives sda and sdb. I have grub written to both drives with
more than one OS on each drive. I use the built in boot manager to choose
which drive to boot rather than mess with the BIOS. On my system I press
ESC. On both drives I have grub write to the drive where the distribution is
installed. Some distros foul me up and will write to the opposite drive,
despite my instructions to write to the proper drive. I could have only one
grub on the MBR of the first drive, but that offers me no parachute when a
distro writes to the wrong drive. Having more than one grub allows me to
keep many distros installed and straight in my mind, plus gives me the
protection that I need because I usually have six or seven distros installed
at any one time.

Some OSes do not like to share drives. Mac OS/X needs its own drive for
example and Windows Vista updates and I think Win7 (I don't own either) will
overwrite grub with its own bootloader or so I have read. In these case I
would write grub to the drive not having the difficult OS and use the boot
manager to select the boot device, leaving the first drive to OS/X or Vista.
Then it is none the wiser to your dual boot intentions.

I would also do this if you are installing to a usb drive. Write grub to the
usb device instead of the main drive. This way you can remove usb devices
and not foul up grub's relative boot ordering.

I have made this more complicated than it actually is. Just develop a system
and stick to it.

 
Answer #2    Answered On: Dec 04    

When you install Windows, it removes Grub. There are two versions of Grub, so
there are two answers. Google "recoveringubuntuafterinstallingwindows" (that's
all one word) and the first result will point to the community documentation,
which contains both answers, and how to tell which one applies to you.

 
Answer #3    Answered On: Dec 04    

My system has an IDE and a SATA drive. Windows XP and Ubuntu 9.1 are installed
on the IDE drive, and I have Ubuntu 10.04 on the SATA drive. My computer selects
the IDE drive as HDA-0 (C:) by default, but by going into Setup on boot, I can
select whichever hard drive I want as the default boot drive. Both drives on my
system have GRUB installed.

When dual booting with one hard drive, Windows should always be installed first,
because it overwrites the boot sector.

When using two drives, it may be easier to disconnect the drive you do not want
to install Ubuntu on. After the installation is complete, shut down, reconnect
the other drive and after booting, open a terminal and enter "sudo update-grub".
This will rewrite GRUB to inslude the other drive.

 
Didn't find what you were looking for? Find more on Dual Boot IDE and SATA? Or get search suggestion and latest updates.




Tagged: