Partner links

Install Ubuntu 11.04 on external hard disk

extDisk

Installing Ubuntu 11.04 or any other distribution on an external hard drive connected to a computer via USB is about the same as the method used to install it on an internal hard disk. Your choice of external disk to use are many, but the one I used for this tutorial is a 2.5′ hard disk that I put in a similarly-sized hard disk enclosure.

A 320 GB 2.5′ hard disk purchased for this tutorial cost US $45. Enclosures tend to be very cheap. The one I bought cost about US $7. At 5’x2.75′, the whole unit can fit comfortably in any pocket. You can use it to clone your Ubuntu 11.04 installation that you carry along with you. And with the USB connection, you can use it on any computer that can boot off a USB device.
extDisk

To start, connect the disk via the USB cable to any computer and boot the computer using an Ubuntu 11.04 CD or DVD. At the disk partitioning step, select “Something else.” Doing that and clicking on Forward will take you to the installer’s advanced partitioning tool, which you are going to use to configure the partitions for Ubuntu 11.04.
dualBoot4

If the computer you are using has only one hard disk, the external drive you are attempting to use will be detected as /dev/sdb. The “b” shows that it is the second disk detected by the system. The task now is to select the disk and configure the partitions for Ubuntu.

Note: If you are intend to use this installation for serious stuff, it is better that you encrypt the disk. That entails using an Alternate Installer ISO image. You may use how to install Ubuntu 11.04 on an encrypted LVM file system as a guide, if you decide to follow that route.

You might also be interested in how to install Ubuntu 11.10 on external hard drive, with an NTFS partition at the end.

By default, Ubuntu’s installer configures two partitions – the first for /, the root directory, and the second for Swap. When creating partitions for installing any desktop Linux distribution, my recommendation is to create the following four partitions:

  • /boot, the boot partition. This is where programs critical for booting the system will reside.
  • /, the root directory. The bulk of the programs used for running the system will be installed here.
  • Swap, unformatted disk space for use as virtual memory.
  • /home, the partition where your home directory will be located. In the course of using the system, files and folders you create will reside in various folders here.

To begin configuration, select the free space as shown, and click on Add.
eBuntu

The first partition will be for /boot. When setting up an LVM-based system using an Alternate Installer ISO image, the default disk space allocated to /boot is 258 MB. However, only about 22 MB of that is used, so anything thing between that size range will do. For this tutorial, the default will be used. The mount point will, of course, be /boot. The default file system is ext2. OK.
eBuntu1

The second partition will be for Swap, disk space that the computer may use as virtual memory. The suggested size for Swap is 2000 MB. Select “swap area” from the “Use as” dropdown menu. OK.
eBuntu2

The third partition will be for /, the root directory. The default journaling file system on Ubuntu 11.04 is ext4. You may stick with it or choose another journaling file system available. The installer recommends a minimum of 4.4 GB for Ubuntu 11.04, but on a new installation, less than 3 GB of disk space allocated to / is used. Note that as you install additional application after installation, disk space used will grow, so be generous here. I think 10 GB should be more than enough. OK.
eBuntu3

The last partition will be for /home. The file system is ext4, and you may allocate all available disk space to it. OK.
eBuntu4

All the partitions have been configured. Before clicking Install Now, you need to change where GRUB, the boot loader, will be installed. By default, it will be installed in the MBR of the computer’s internal disk. But that is not what you want. You want to install GRUB in the MBR of the external disk. So, under the “Device for boot loader installation” section, click on the dropdown menu, and select the entry that matches the external disk that you just partitioned. Once that is done, continue with the rest of the installation.

After installation, test the system by booting the computer from the disk. You may use this as a mobile clone of your Ubuntu 11.04 installation.
eBuntu5

You can have quality articles like this delivered automatically to your Feed Reader or Inbox by subscribing via RSS or email. This website now has a Question and Answer section. Use the commenting system for simple comments, but for more involved assistance, please use the Q & A section.

Share:

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn

Partner links

Newsletter: Subscribe for updates

Subscribe
Notify of
guest
87 Comments
Inline Feedbacks
View all comments
Laura
Laura
9 years ago

Thanks you so much! This is exactly information what I needed

akil
akil
9 years ago

thanx dude..very useful

Coastalguy
Coastalguy
10 years ago

Per your instructions, I installed Ubuntu Meerkat and Grub to my external drive (WD 160GB IDE Drive), but instead of USB, it is Firewire. However, when booting up, it goes straight to the windows MBR. I tried setting the BIOS before my Windows drive to all of the 3 available Generic Removable drives and also used my F8 to bring up the bootable drive menu and also tried booting from each of the generic removables. All went directly to the Windows MBR. I booted to the Ubuntu CD and went to the live view, where I can see the external drive and the various partitions. However, I do not know how to confirm the Grub is installed properly, or if it is possible to boot from the CD live to the external drive ubuntu? Also, not sure if my PC (home built), BIOS is to old to boot from an external drive, but wondering if there was some other way to boot the Ubuntu External, besides BIOS?? Any other suggestions would be great.

Jacques
Jacques
10 years ago

Excellent article.

This is exactly what I want to do, but I also want the bulk of the drive to be available as general storage to many OS’es.

I did the install as suggested, and assigned a last partition as NTFS, but windows refuses to see it. I re-did it and placed Ubuntu at the end of the drive, but then it refuses to boot (grub error: no such partition) which seems to be because grub is towards the end of the drive.

Finally tried
sda1 : 100mb : grub
sda2 : 600gb : ntfs
sda5 : 10gb : /
sda6 : 26gb : /home
sda7 : 4gb : swap

but Windows still refuses to see sda2 (or any partition). Any ideas?

Jacques
Jacques
Reply to  finid
10 years ago

Thank you for the effort!

I’m still investigating this, but I’ve managed to achieve the desired result. My setup differs from yours in that I want to have the NTFS partition before all others.

I always assumed that placing it anywhere else confuses windows (I’m pretty sure this happened in the past). Does this concern still have any validity to your knowledge? I obviously don’t want Windows to touch the Ubuntu partitions in any way.

Anyway, the reason my first installation broke seems to be that I left the partition unformatted during installation (Ubuntu install can’t create NTFS partitions), and used Win7 to create the NTFS partition. Win7 then broke the Ubuntu setup (duh). Repeating the installation but using Ubuntu to setup the NTFS partition post install fixed everything.

rocio
rocio
10 years ago

Thanks so much! This is exactly what I needed

MikeK
MikeK
10 years ago

Does it matter which version of Ubuntu (32- or 64-bit)I install on an external drive? Most computers run 64-bit OS but there are still a few that only support 32-bit, mostly due to hardware. I want to be able to run Ubuntu on any computer I go to.

Anonymous
Anonymous
10 years ago

Thank you, so much! I was really stuck on partitioning my harddrive and this article really helped!

dhi
dhi
10 years ago

Why do we have to install grub on the external hard disk? Does this mean that we won’t be able to boot up without the external hdd?

dhi
dhi
Reply to  finid
10 years ago

Thanks. My intention was to install it on an external disk since my hdd doesn’t have enough space.

enka
enka
10 years ago

hi,,
I’v trying to install ubuntu 11.10 on external HD, the instalation was succes, but it was failed to boot from that external HD.
Here is my partition: sdb1–> swap 512Mb, sdb2–> ext4 8Gb as /, sdb5–>ntfs

daniel
daniel
Reply to  enka
10 years ago

very good guide!!! works like a charm.

NeoPulsaGram
10 years ago

i have problem with my usb hardisk external. i install ubuntu 10.10.

when i use di USB HDD in other notebook the grub is error
grub rescue>..

but if i use in notebook where i install the ubuntu. the grub its working and show the menu list.

So, what happed with the grub in my usb HDD, can i give mi solution?

Jacques
Jacques
Reply to  NeoPulsaGram
10 years ago

This may be b/c some older BIOS’es are not able to boot from grub if the boot partition is too far from the start of the drive. I’m currently trying to solve this.

Refer: https://help.ubuntu.com/community/Grub2#error:_no_such_partition

Khalid Rajgoli
Khalid Rajgoli
10 years ago

Thanks for the guide. It really was useful.

Chris
10 years ago

Worth pointing out that some external hard drives have their own agenda when it comes to using them as a boot drive. Some of them have their own sequence you need to do with the buttons before it’ll let you boot.

CALazar
CALazar
Reply to  Chris
10 years ago

Dear Chris,

Can you please explain and help as to how to go about making my WD 500GB Ext HDD bootable? I have already installed Ubuntu 11.10 as per the instructions above and the installation went on well. However, after booting, and try to choose from BIOS, the option for USB Hard disk, this option is not available for this WD500GB ext HDD. Appreciate your help, please. Thanks.

Chandan
Chandan
Reply to  CALazar
10 years ago

Hi, you have to insert the drive in and then when u re boot and go to boot options the new hdd will be seen under +

Now u have to move the hdd by either pressing f6

And then press f10 and save and u r done it works perfect

Chandan
Chandan
Reply to  CALazar
10 years ago

Hi, you have to insert the drive in and then when u re boot and go to boot options the new hdd will be seen under +

Now u have to move the hdd by either pressing f6

And then press f10 and save and u r done it works perfect

CALazar
CALazar
10 years ago

Followed instructions and installed Ubuntu 11.10 including GRUB on a WD USB3.0 500GB external Hard Drive. So far so good. However, once I tried to boot it, this External HDD was not recognized as a USB. However, when I insert a bootable USB flash of 8GB with Ubuntu 11.10, it shows the flash and boots from it. What could be the problem when I try to boot from WD 500GB ext Hard Drive in not recognizing it as a USB drive?

bruno
bruno
Reply to  CALazar
9 years ago

same problem with an external 60Go HDD…. i followed the instructions, all seems to install well but no choice to boot from extHDD at reboot. the boot sequence is fine (i have macosx installed on another ext HDD and when i connect it, it boots). any idea?? its not recognized

bruno
bruno
Reply to  bruno
9 years ago

for some reason i don’t know, it did not work with the 60Go HDD so i tried with another external 100Go HDD, & it worked like a charm, thx for the tutorial.

JerryV
JerryV
10 years ago

Hello is it also possible to install it on my external hdd and install grub on the eternal hdd so i can use ubuntu as my own personal instal? for when i am at school / customers so i have all the tools with me?

biborn
10 years ago

hello…i have a doubt..why must we specify the /boot and /home partition? why don’t we just create swap area n then directly create the partition for / only? is there any differences?

Get the latest

On social media

Security distros

Hacker
Linux distros for hacking and pentesting

Crypto mining OS

Bitcoin
Distros for mining bitcoin and other cryptocurrencies

Crypto hardware

MSI GeForce GTX 1070
Installing Nvidia GTX 1070 GPU drivers on Ubuntu

Disk guide

LVM
Beginner's guide to disks & disk partitions in Linux

Bash guide

Bash shell terminal
How to set the PATH variable in Bash
Categories
Archives
87
0
Hya, what do you think? Please comment.x
()
x