3

I am in a similar situation as this poster except I have Windows 7 Pro:
I have SSD which is the C drive which stores windows and a 1TB hard drive.
I have created a CD with an image of Ubuntu.
I'm still pretty new to all this so need a bit of hand holding!

How to Install Ubuntu on separate hard drive in a dual boot?

I'm not clear from his post whether or not he has partitioned his hard drive prior to installing Ubuntu or not.

However judging from the response there 2nd hard drive sdb does not appear to be partitioned. The responder (Mitch) goes on to partition the drive using the Ubuntu installer as shown.

enter image description here

In my case I already have files stored on the second drive, can I still safely use the Ubuntu installation software to partition software? Or would it be better to use a different piece of software to partition the hard drive prior to install? Obviously I don't want the existing files to be wiped (although I have backed them up). FYI, I've never partitioned a hard drive before.

Also I noticed that other answers to the same problem suggest disconnecting the windows hard drive first.

http://www.tomshardware.co.uk/answers/id-2653283/dual-booting-windows-ubuntu-linux-hard-drives.html

2 ways, depending on exactly how you want to choose what OS you want to boot into.

  1. You want to choose via the BIOS boot menu: Disconnect the current Windows drive Connect the other drive Install Ubuntu Choose the OS during the BIOS boot sequence

  2. You want to choose via the GRUB menu: Leave the Windows drive connected Connect the other drive Install Ubuntu to the new drive (be careful here that you choose the correct drive!) At boot time, you will be presented with a menu, allowing you which OS to boot into

As well as being safer (in that your Windows drive won't be wiped) especially important in my case as I don't have the capacity to back it up.

Is there any major advantages between choosing the OS via the BIOS as opposed to the Grub drive?
FYI... I'm not even sure what a Grub drive is, I'm just looking for the easiest/quickest solution.

Mitch's original response seems to be the the GRUB based solution. Is this correct?

However all I have to do to amend Mitch's solution to the BIOS based one is to physically disconnect the windows drive after switching the boot to DVD drive in BIOS and then follow Mitch's instructions for the rest but having one drive instead of two.

I then reconnect the windows drive afterwards. Do I have to make any other changes to the BIOS after this?

marked as duplicate by Organic Marble, karel, sudodus, Eric Carvalho, user364819 Sep 8 '17 at 21:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Do you want a common boot drive, to install the bootloader grub to the same internal disk drive as Windows, or do you want to install grub into the drive, where Ubuntu will be installed? -- I think most people select the first alternative. The second alternative makes the drive 'complete' and portable to other computers, but it will be a bit more complicated to boot, because you must select a boot menu with a hotkey to get the option to boot it. (And the Windows drive can be untouched.) -- Both alternatives are good (only different during booting; after booting, they work in the same way). – sudodus Sep 8 '17 at 11:42
  • 2
    I saw your edit of the question after writing my first comment. Maybe the following link can help you decide how to do the installation, askubuntu.com/questions/786986/boot-ubuntu-from-external-drive/… – sudodus Sep 8 '17 at 11:47
  • 1
    If I understand correctly the 2nd alternative corresponds to method 1 in the Toms hardware link, removing the Windows drive means everything will be installed on the second drive creating a 'complete' drive. Whereas the 1st alternative corresponds to the second method above? And the only practical difference after install is that the first alternative will prompt you to chose an OS while the second required you to push a hotkey. Is this correct? – Bazman Sep 8 '17 at 12:16
  • 1
    Yes, I think so. – sudodus Sep 8 '17 at 12:18
  • 1
    The partioner which is included in the Ubuntu installer is reliable, but I think it is easier and more graphically evident what you do, if you do the partitioning in advance with gparted. But how big is the target drive for the Ubuntu installation (is it the 1 TB drive?), and what partitioning do you want? If the drive is rather small, the default (automatic) partitioning is probably good enough. – sudodus Sep 8 '17 at 12:21
5

This answer assumes the computer in question uses legacy BIOS (not UEFI), and MBR (not GPT) and Windows 7.

First, prepare Disk 2 for Ubuntu installation

Since you have data on disk 2 and you want to preserve it (and you have backup, in case things go south), you first need to create some unallocated space in this disk.

This can be done with Ubuntu installation disk using Try Ubuntu without installing option and the GParted program. Or you can do this using Windows 7 native tools. I recommend using Windows as you may be more familiar with it. Follow https://technet.microsoft.com/en-us/library/gg309169.aspx guide for how to shrink the partition in Disk 2.

Shrink your 1TB data partition in Disk 2 to approximately half its size if you want Ubuntu to use half the space.

Move the data partition to the end of the disk, so that the unallocated Free space is at the beginning. This step may or may not be necessary. Some computers don't boot if the boot partition begins too far from the beginning of the physical disk.

Second, Install Ubuntu in the Disk 2.

This is where you follow Mitch's answer in How to Install Ubuntu on separate hard drive in a dual boot?

When you select Something else option you will see something like this picture from Mitch's answer:

enter image description here

Except in your case /dev/sdb (assuming this is your Disk 2) will have a data partition after the free space called /dev/sdb1. Leave that alone and work on the free space as in the linked answer above.

Note at the bottom of the image there is a dropdown menu for Device for bootloader installation The bootloader is another name for the GRUB. You may want to change this from your Disk 1 which may be /dev/sda to Disk 2 which may be /dev/sdb. Note, here you choose the whole disk, not any specific partition (sdb1, sdb2 etc.) within the disk.

The advantage of selecting the Disk 2 for the GRUB is it will keep Windows and Ubuntu completely separate. You would get the same result if you unplug the Disk 1 before installation.

Third, Boot order of disks (BIOS or GRUB)

Once Ubuntu is installed you will be asked to reboot the machine. If you want to use the BIOS Boot menu, you are done.

When you reboot the machine it will boot to Windows as before. If you want to boot Ubuntu you will need to press the BIOS Boot selection button. This varies between different computers. It can be F10, F12, Esc, etc. and you may see something like Press F10 for boot manu briefly before Windows boots.

If you want to use GRUB:

Go into BIOS setting (or configuration) and look for the Boot section. Change the boot order such that the Disk 2 is the first one on the list. Save the settings and exit BIOS and reboot.

On first boot, you may or may not see the GRUB menu. If this happens you will directly boot Ubuntu. This is normal. After Ubuntu boots login using the username and password you selected during Ubuntu installation.

Open a terminal by pressing Ctrl+Alt+T together. Then enter:

sudo update-grubEnter

You will be prompted for your password. When you enter the password in the terminal the cursor will not move, there will be no dots or ****. this is normal. Press Enter after password.

The above command will look through all the drives and discover that you have Windows 7 (and possibly recovery partitions) in Disk 1 and add these to the GRUB menu in Disk 2. It will not change anything in Disk 1.

In the next reboot, you will see the GRUB menu, something like:

enter image description here

Yours will look slightly different. If you do nothing after a few seconds the computer will boot Ubuntu.

  • You can press Enter to boot Ubuntu right away.
  • To boot Windows, use the Down Arrow Key to select Windows 7 and press Enter.

If you want GRUB to boot Windows instead of booting Ubuntu if you do nothing, you can change GRUB default to boot Windows.

Hope this helps.

  • 1
    Thanks it was easy enough in the end, although i did have a last minute hitch with a corruptrd disk and because my fault for not checking. – Bazman Sep 10 '17 at 14:50
  • I followed your steps, but now it won't recognize windows. Motherboard says "boot option: ubuntu". – Christopher Francisco Dec 14 '17 at 20:49
  • @ChristopherFrancisco Are you using Windows 7? If so, ask a new question linking this one. Indicate which steps you followed and which you skipped. Did you use the BIOS boot option? Or did you change the boot order to disk 2 first in the BIOS as described in the third section of the answer? – user68186 Dec 15 '17 at 3:23
  • Do I need to make the second SSD invisible (inaccessible) by the Windows OS? I am concerned if someone on the Windows side will try to write to the second SSD (with linux), or the other way around. So, I thought each OS should only "see" its SSD, is that right? – Nazar Dec 19 '17 at 19:35
  • 1
    Instead of sudo update grub you will probably have to run sudo update-grub2 – Bitclaw Jun 22 '18 at 0:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.