Review: Installing Linux on USB – Part 8
I have so far published 7 parts in the Installing Linux on USB series. In this part I thought I will review what I have published for far in the series – Yes, a review of all the 7 parts and important notes from them. So even if you have not read the entire series you can get a pretty decent hold on what we have covered so far. So let’s get started…
Review
Part 1
In part 1 we saw the difference between USB hard drives and USB flash drives. Yes, many people think that they are the same but there is a basic difference between them – the storage media that is used in them.
USB flash drives DO NOT have any moving parts in them. They contain Solid Storage Device (SSD) – the “Flash” - and hence they have limited read/write capability and size also. But with technology advancing every day that limitation is slowly being gone as the capacity of USB flash drive is increasing.
USB hard drives are the traditional IDE/PATA hard drives which are just enclosed in a casing which has an IDE-to-USB interface. They do contain moving parts since they are IDE drives.
Part 2
In part 2, we saw how to install Debian Linux from the standard installation CD on a USB hard drive. Basically it is exactly like installing Debian Linux on a hard drive except that you have to choose the USB hard drive instead of IDE drive. That’s it.
Part 3
In part 3, we saw which filesystem is best for USB devices out of Ext2 or Ext3. In particular we saw that:
For USB Hard Drives – Ext3 or Ext2
For USB Flash Drives = Ext2 with “noatime” or “relatime” mount option
The basic idea is that:
a) Ext3 filesystem causes lots of writes than Ext2 filesystem because it maintains a journal in it and that’s why it is called “a journaling filesystem”. Using Ext2 filesystem eliminates these writes to the media and hence life of USB flash drives can be extended by a significant factor.
b) Also Ext2/Ext3 causes a write to the disk every time a file is read/write. Causing a “write” even for a “read” is very expensive in general in particular for USB flash drives. Using noatime or relatime does not causes those writes every time a file is read or write.
Part 4
In part 4 we see the difference between Ext2/Ext3 filesystem’s mount options like:
a) atime
b) relatime
c) noatime
Part 5
In part 5, we saw how to install Debian on a USB flash drive using a standard Debian Installation Disk. The only difference is that you select USB flash drive and select the noatime and relatime mount options.
Part 6
This a one of my favorites. In part 6, we saw how to create a dual boot Linux (ext2) and MS-DOS bootable USB flash drive. These kind of USB flash drives are very handy if you need to repair a system or do some maintenance work. Installing a generic default kernel like 2.6.26-1-686 is recommended so that your USB flash drive will boot on most of the x86 architecture computers.
Part 7
In part 7, we saw how we can create a USB bootable Debian Installation CD. Yes, we can create a USB flash bootable disk by either using a:
1. Download the netinst (Net Install) ISO image of size 150-180MB from here.
or
2. Download the businesscard image of size 40 MB from here.
This way we have another handy tool – A USB bootable Debian Installation Flash drive.
With this I would like to conclude this semi-review of the series. Watch out for more parts in these series. Coming soon…
Also please don’t forget to rate this post below.


Email Subscription









March 8th, 2009 at 6:05 pm
[...] Part 8: Review – Installing Linux on USB [...]
March 10th, 2009 at 9:54 am
Great Article!!! Do you know anything about Squashfs and USB drives?
Reply to this comment
Admin Reply:
March 10th, 2009 at 9:56 am
Hi TuxFan,
What article did you like specifically out of the series…
Reply to this comment
April 30th, 2009 at 1:51 pm
[...] Part 8: Review – Installing Linux on USB INFO: Debian Lenny Stable point release updateHOWTO: Upgrading to Debian 5.0 Lenny from Debian 4.0 EtchInstalling Linux on USB – Part 2: Install Debian Lenny on USB Hard Drive Share and Enjoy: [...]
May 7th, 2009 at 9:24 am
excellent. just what i needed to install lenny on a usb flash drive. thanks, and as for the future tutorials, keep ‘em coming!
Reply to this comment
October 29th, 2009 at 3:26 pm
this is very good, served me a lot, you just need some ideas on how to handle one in a confined space such as usb flash.
forgiven for not understand what you wrote .. I do not speak English and I am using a translator to spend this message
Reply to this comment
February 26th, 2010 at 11:41 pm
Awesome . You really saved my life with the installer from USB drive.
Stupid windows 7 wiped out my grub loader, had to install again…
Reply to this comment
June 26th, 2010 at 6:25 am
This method uses a netinst which will require internet connectivity.
Is there a way for doing a basic installation that includes GNOME like the one when we are using the 1st installation CD/DVD?
Reply to this comment
April 18th, 2011 at 8:30 pm
Hi, Thank for series.
I’m making a bootable flash drive with one Fat(first) and one Ext2(second) partion.
I want to completely install ubuntu on Ext2 partion without touching the Fat partition. Because I want that windows not be able to see any of my boot, grub and os files, this is because of the viruses that manipulate flash drive files and stops it from booting correctly. So I want to completey install the os on Ext2 without touching Fat partition. How can I achieve this?
Reply to this comment
March 5th, 2012 at 3:19 pm
Hi,
Can this very detailed and helpful tutorial be used to install the recently available debian img for Raspberry Pi on flash usb? If so, can you offer a brief guide on modifications required?
Thanks
Paul C
Reply to this comment
April 12th, 2012 at 12:43 am
During the install process I am asked to provide firmware during the network config.
???
Thanks, Hearhstone.
Reply to this comment