Skip to main content

Linux on a stick part 2: Ubuntu 7.10

After some thinking and further reading on the net, I finally figured out a fairly simple way create a bootable Ubuntu 7.10 LiveUSB stick. And all under Linux. Here are the simple details I came up with to set up and configure a very minimal Ubuntu 7.10 Live USB thumb drive.
  1. If you don't have an Ubuntu 7.10 Desktop LiveCD handy then download the ISO. If you do have it handy (you installed from the CD-ROM) then just drop it in the CD/DVD drive on your computer. If you're using the downloaded ISO, open a terminal window and mount the ISO:
    sudo mount -t iso9660 -o loop /[location-of-iso]/ubuntu-7.10-desktop-i386.iso /mnt/iso
  2. Insert a USB thumb drive into a conveniently empty USB port on your computer running Linux. It should automatically mount. I'm going to use the same Cruzer Micro I used for Linux Mint 4. It really doesn't matter if it's clean or not, but for this experiment I did remove Linux Mint. You just need about 800MB of free space. USB drives are mounted under /media, and can be named /media/disk or /media/[volume-name]. For this example I've given my thumb drive the volume name LINUX, so it would be automatically mounted under /media/LINUX.
  3. Now copy the following files from the Ubuntu media. This works for either the mounted ISO or the CD-ROM. If you've got the CD-ROM mounted you'd copy from /media/cdrom. If you mounted the ISO you'd copy from /mnt/iso. Regardless the mount point the file system under either is identical:
    cp -R [mount-point]/.disk /media/[name-of-usb-drive]
    cp -R [mount-point]/casper /media/[name-of-usb-drive]
  4. We're going to use syslinux to add a boot loader to the USB thumb drive. It's doubtful you would have installed syslinux by default. If the syslinux package isn't installed and you're doing this from Ubuntu (or an Ubuntu-based distro) then use synaptic or apt-get to install it. You'll also wind up installing mtools (a dependency) along with syslinux.
  5. Add the following syslinux configuration text file (named syslinux.cfg) to the root of the USB thumb drive. It will contain the following two lines of text:
    DEFAULT /casper/vmlinuz
    APPEND boot=casper initrd=/casper/initrd.gz ramdisk_size=1048576 root=/dev/ram rw quiet splash --
  6. Use syslinux to install a boot loader onto the USB thumb drive. To do this you're going to have to unmount the USB drive. Before you do this find out what the USB device name is. This is different from the mount name, and you need the device name for installing syslinux. You can easily find it by typing the following in a terminal: mount | grep media. On my system it returned the following:
    /dev/sdb1 on /media/LINUX type vfat ...
    where the (...) are additional configuration flags and information. You want the device name, which is the first item (/dev/sdb1) on the line. I know this is my thumb drive because I gave it the volume name LINUX. Once you have that information unmount the USB thumb drive by left-clicking on the thumb drive icon on the desktop and selecting unmount. In a terminal window type 'sudo syslinux /dev/[device]' and it will modify the boot sector of the USB thumb drive and place the file LDLINUX.SYS in the thumb drive's root. At this point you're done.
Plug the thumb drive into a system that can boot from a thumb drive, reboot, and watch Ubuntu 7.10 boot into 'Live' mode. You can even install from it if you like. The creation of a bash script to automate this process is left as an exercise for the reader :)


Some of the information, particularly the syslinux.cfg contents, came from CustomizeUbuntuLive. The directions actually call for fewer files, but I discovered through trial and error that for 7.10 you need a few more than what was originally called for.

There is also a link to a page on the openSUSE wiki that shows how to create a bootable openSUSE 10.3 on a thumb drive from a running openSUSE system. If I hadn't been so idiotic as to completely remove my original openSUSE 10.3 installation and replace it with Ubuntu 7.10 I could test this. The directions are far more elaborate but the results are actually closer to a fully usable Linux system on a thumb drive. Well, there's always openSUSE 11...


Just for grins and giggles I mounted the Hardy Herron (8.04) Alpha 4 ISO, copied over the same files, and then booted it up again. The test system (the Gateway M680) came up with visual effects enabled. All in all it was a cleaner method for testing Ubuntu without having to burn one test coaster after another. After all, those alpha and then beta CDs wind up going in the trash and some landfill here in Florida.


Popular posts from this blog

A Decade Long Religious Con Job

I rarely write inflammatory (what some might call trolling) titles to a post, but this building you see before you deserves it. I've been seeing this building next to I-4 just east of Altamonte/436 and Crane's Roost for nearly 12 years, and never knew who owned it. Today on a trip up to Lake Mary with my wife I saw it yet again. That's when I told her I wanted to stop by on the way back and poke around the property, and photograph any parts of it if I could.

What I discovered was this still unfinished eighteen story (I counted) white elephant, overgrown with weeds and yet still under slow-motion construction. It looks impressive with its exterior glass curtain walls, but that impression is quickly lost when you see the unfinished lower stories and look inside to the unfinished interior spaces.

A quick check via Google leads to an article written in 2010 by the Orlando Sentinel about the Majesty Tower. Based on what I read in the article it's owned by SuperChannel 55 WA…

first night for the gingersnaps

The first night has passed and the two have managed to survive, in spite of what their tiny hearts might have thought when first arriving. Greebo, the larger of the two, has been in hiding the entire time so far. Ponder has spent the time zipping in and out of hiding spots, checking things out, and learning just how comfortable pillows are for resting your head.

During the night I felt the tiny body of Ponder hitting the bed as he leaped up on the side, and then climbed to the top to run around on top of me. At least once he play-attacked my fingers. He might be small but his claws are still quite sharp.

When I got up in the morning the bowl of cat kitten food was fairly well depleted. It's been refilled and fresh water put in the big dish on the floor. I'm assuming that both Greebo and Ponder are feeding and drinking. I have seen Greebo under the furniture peeking out at me when I went looking for him. I'm leaving him alone while he continues to adjust.

So far the guys h…

cat-in-a-box channels greta garbo

So I'm sitting at my computer, when I start to notice a racket in back. I ignore it for a while until I hear a load "thump!", as if something had been dropped on the floor, followed by a lot of loud rattling. I turn around and see Lucy in the box just having a grand old time, rolling around and rattling that box a good one. I grab the GX1 and snap a few shots before she notices me and the camera, then leaps out and back into her chair (which used to be my chair before she decided it was her chair).

Just like caring for Katie my black Lab taught me about dogs, caring for Lucy is teaching me about cats. She finds me fascinating, as I do her. And she expresses great affection and love toward me without coaxing. I try to return the affection and love, but she is a cat, and she takes a bat at me on occasion, although I think that's just her being playful. She always has her claws in when she does that.

She sits next to me during the evening in her chair while I sit in mi…