Be aware that you need to follow and understand how to direct all openSUSE installation actions to the external hard drive. Failure to follow all instructions may cause modifications to your internal hard drive, defeating the purpose of this written procedure and modifying your main OS installation.
Please read through this procedure more than once to insure full understanding before trying this on your PC.
This write up is written to assist in installing openSUSE, in this case version 13.1, onto an external hard drive. This procedure allows you to dual boot openSUSE with any other OS, such as Windows, without making any changes to your original installation on your first hard drive, normally /dev/sda. In order to boot from an external hard drive, designated as /dev/sdb or higher, you must be able to set the external hard drive as the boot drive in your PC BIOS setup or you will be pressing a function key (F12 on my Dell Laptop) to select the external hard drive to boot from. Be aware if you have more than one external USB hard drive, the function key method may not work as you require, meaning you must select the boot drive from your PC BIOS setup, but only testing this will let your know for sure.
In this example I am using the following items to install openSUSE:
- openSUSE 13.1 installation DVD
- External USB 2.0 hard drive, 120 GB SSD using MBR format, /dev/sdc on this system
- Dell XPS 13 Ultrabook Laptop
- External USB 2.0 CD/DVD drive
The installation process is broken up into five steps. The entire installation of openSUSE has more steps, but only those required to direct openSUSE to install onto an external hard drive are being shown. I took pictures of the Laptop screen to show what needs to be done. The pictures are not very good, but hopefully they will be helpful.
Step 1. Partition External Hard Drive:
I used “Create Partition Setup…” for the following three partitions on my External Hard Drive called /dev/sdc.
- /dev/sdc MBR formatted w/Generic Boot Code
- /dev/sdc1, Primary Partition, SWAP, 4 GB
- /dev/sdc2, Primary Partition, EXT4, Active Boot, root /, 52 GB, grub 2 installed
- /dev/sdc3, Primary Partition, EXT4, /home, 55.79 GB
Partition sizes are arbitrary here but root / should be 30 GB or more in my opinion. The smaller you make root /, the larger you can make /home, where you store your personnel files. If root / runs out of disk space, openSUSE will not start. I have seen more than one problem report where a root of 20 GB ran out of space. I have never seen a openSUSE installation where root / was larger than 60 GB after installing all required system files. Just use your best judgment here.
Step 2. Boot Loader Settings:
Select only the option of “Boot from root partition” and all other options are not selected. For step 3 you select “Boot Loader Options”. For step 4 you need to select the next step using your mouse of “Boot loader installation details”.
Step 3. Boot Loader Options:
On the Boot Loader Options Screen, you want to check “Set Active Flag in Partition Table for Boot Partition” and “Write Generic Boot Code to MBR”. Just accept the defaults for everything else show on the screen. Consider that a new external hard drive will have a blank MBR and if you fail to “Write Generic Boot Code to MBR” and do everything else right, booting from your external hard drive will fail.
Step 4. Disk Order Settings:
You must make sure that your external hard drive, in this case /dev/sdc, is listed as being first. Failure to get this right can cause you to write the grub 2 boot loader to the wrong hard drive. For some reason the UP fuction did not work and only the DOWN fuction seem to work for me to make sure /dev/sdc is listed first.
Step 5. The Installation Summary:
The Booting Section should confirm you have everything right to install all of openSUSE to your external hard drive. We can see that …
Boot Loader Type: GRUB2
Status Location: /dev/sdc2 ("/")
Change Location:
Boot From MBR is disabled
Boot From “/” is enabled
Order of Hard Disks: /dev/sdc, /dev/sda, /dev/sdb, /dev/sdd
Status Location indicates where the Grub boot loader is installed, which is the root “/” partition for this procedure to work. Peviously we have already elected to install generic boot code into the MBR. The number of hard drives may only be only a couple using /dev/sda and /dev/sdb on your system. When the installation summary is correct, we know we will be only installing openSUSE on our external hard drive and our internal hard drive /dev/sda will not be modified in any way and we may allow the installation of openSUSE to proceed.
If you have any questions or comments, please let me know.
Thank You,