azcrumpty's Site
  • Home
  • Journal
  • Search

Full USB Flash Drive Install With Ubuntu 11.10 Oneiric Ocelot

10/27/2011

 
There are many sites about making bootable USB pen drives with Ubuntu Linux and most of these sites have the user put the ISO on the thumb drive instead of actually installing a Linux distribution onto the USB flash drive.  I like to actually place the whole operating system on a USB flash drive so I always have the full operating system available.  Many sites will tell you the ISO install is best but I disagree.  Flash drives are much cheaper today and you can split an 8 GB drive into a Linux and a VFAT partition.

I prefer using a virtualizer that offers USB support to do the install.  I have used a real PC with data on it while fatigued, entered in the wrong partition, and ended up with a really bad week of restores.  Virtualization allows you to only load to the USB drive and keeps your PC protected from accidents.  I like to use the virtual machine with no hard drive, which makes the install simpler especially when the USB flash drive is connected before install. You can't mix up partitions or boot areas with only one drive in the virtual machine.
Picture
Virtual Machine Settings Enable USB
Picture
USB Thumb Drive Enabled
Begin your install by selecting keyboard type and entering your host name along with other information until you reach the partition screen.
Picture
Create a new Partition
The flash drive used here already had two 8 GB VFAT partitions and I erased the second one and use it for Linux.  I usually select the Ubuntu alternate CD and manual partitioning but if you have only one USB drive in your VM, then you can use auto install and the whole flash drive if you won’t need the VFAT for sneaker net with other computers. It is a good time to note the path of your USB thumb drive if you have multiple drives in your system.  It is /dev/sda in the virtual machine and typically /dev/sdh on my physical desktop.  You might need that for the bootloader install later if you are doing this on a physical machine with multiple disk drives.
Ensure the partition type is primary and bootable then select your filesystem type.  I have used ext4 and ext2 succesfully.  You may wish to read the benchmarks and to determine your filesystem choice then work on performance later.
Picture
Primary Partition for Booting
Picture
Enable Bootable Flag
Picture
Choose Filesystem Type
Note that I create the system with no swap space since the computers I would boot from typically have 2 GB of ram which tends to be enough for my needs. Also, I use a USB disk drive with 200 ms write speeds but I have found paging to slow the system down.  I used to turn off browser caching and the syslog service in the past but I find newer systems perform fine with these on.
Picture
No Swap Space
Commit your changes, create the filsystem, and begin the user creation process. I like to encrypt my home directory with the built in ecrypt filesystem  which leaves me feeling comfortable should I lose the USB key disk.
Picture
Encrypt Home Directory
The next step is the one that can be a nuisance should you use a physical PC.  If you have only one disk, the Ubuntu installer will place the boot loader on the master boot record of the disk. If you have multiple drives, then select manual and enter the drive name on that page.  On my desktop, the drive usually appears as /dev/sdh so I use that for physical installs.  You must be careful not to override a bootloader on a machine you are using just for installing to a USB disk drive.
Picture
Install GRUB in MBR on Thumb Drive
Picture
Select Appropriate Flash Drive for MBR
You can see in the picture with the drive booted that I am using a Patriot XT flash drive on /dev/sda running Ubuntu 11.10 Oneirc Ocelot.
Picture
High Speed Write 200 ms Flash Drive
Related articles
  • Using LiLi to create a Bootable, Portable and Virtualized USB Drive (ghacks.net)
  • imabonehead: Weekend Project: Rescue Failing Drives With SystemRescue | Linux.com (linux.com)

Home Virtualized DMZ VirtualBox Settings

6/10/2011

 
I wrote about how I used one computer with virtualization to make the DMZ computers. It is nice to build a computer by pointing and clicking instead of installing disk drives and network adapters. For the DMZ, I wanted to simulate 3 servers each with separate LANs and with firewalls between them. I used the pfSense system for this. I needed only to tell Virtuabox to create a virtual machine with four network interfaces. I assigned the interfaces to Virtuabox's internal network and labelled them separately. The unique label names of int1, int2, and int3 make a separate wired LAN for each of the router's interfaces. I attached each virtual machine server to  an interface inth
Picture
Virtualbox Internal Interfaces
Picture
Tier 1 Using interface int1
Picture
Virtualbox running pfSense with 4 Interfaces
Similar articles
  • Home Network With DMZ (azcrumpty.wordpress.com)
  • Home Network Features (azcrumpty.wordpress.com)

    Journal

    This is the place for notes and updates.

    azcrumptyon

    Archives

    March 2013
    December 2012
    October 2012
    September 2012
    August 2012
    July 2012
    April 2012
    March 2012
    November 2011
    October 2011
    July 2011
    June 2011
    May 2011
    April 2011

    Categories

    All
    6to4
    Academic Degree
    Anonymous
    Apache
    Apache Http Server
    Automobile
    Blue
    Bridge
    Car
    Cars
    Chrome
    Chrome Os
    Chromium
    Common Gateway Interface
    Compress
    Configure
    Copy
    Dd Wrt
    DD-WRT
    Diesel
    Diesel Engine
    Directories
    Disklabel
    Disk Management
    Disks
    Distance
    Distance Education
    Distance Learning
    Dmz
    Dns
    Driving
    Eco
    Education
    Efficiency
    E-learning
    File
    Filtering
    Firewall
    Freebsd
    Fuel
    Fuel Economy In Automobiles
    Fuel Efficiency
    Green
    Gzip
    Hardware
    Hardware Virtualization
    Hitwise
    Home
    Hosting
    Howto
    Hub
    Hurricane Electric
    Hypertext Transfer Protocol
    Ibm
    Ibm Websphere
    Iis
    Importer
    Internet Service Provider
    Ip
    Ipad
    Ip Address
    Ipv4
    Ipv6
    Lan
    Lastpass
    Learning
    Linux
    Local Area Network
    Master Of Business Administration
    Microsoft
    Microsoft Windows
    Movabletype
    Movable Type
    Multitier Architecture
    Mysql
    Nat
    Network
    Network Interface Controller
    Network Time Protocol
    New York
    New York Times
    Onion
    Online
    Openbsd
    Openvpn
    Operating Systems
    Opera Unite
    Partitions
    Passenger
    Password Management
    Passwordsafe
    Paywall
    Pfsense
    Protocols
    Proxy
    Proxying And Filtering
    Publishing
    Rdns
    Reading
    Red
    Remote
    Replicate
    Reverse
    Reverse Proxy
    Router
    Samba
    Secure Shell
    Security
    Server
    Server Message Block
    Ssh
    Storage
    Tdi
    The Onion Router
    Theory And Research
    Tor
    Torque
    Transfer
    Turbo
    Turbodiesel
    Twitter
    Ubuntu
    Uniform Resource Locator
    United States
    Universal Serial Bus
    Unix
    Usb Flash Drive
    User (computing)
    Virtualbox
    Virtual Hosting
    Virtualized Dmz
    Virtual Machine
    Virtual Private Network
    Vpn
    Wan
    Web
    Web Server
    Windows
    Windows Xp
    Wordpress
    Zone

    RSS Feed

Powered by Create your own unique website with customizable templates.