Saturday, July 04, 2009  
Google
Web pcquest.com

CIOL Network sites

Search by Issue | CD Search | Sitemap | Advanced Search

• Ad :- Enterprise Connect Awards 09: Nominations Open • Ad: Force.com Cloud Developer Challenge: Participate to win Apple MacBook

Home > Linux > Booting Linux off USB Storage

    Enterprise Solutions
    Hands On
    ITstrategy

    Developer

    Tech Forum

    Trends

    Shootout

    Reviews
    Editorials
    In Depth
    Technology
    Extraedge

    IT Careers

    Vertical Focus

Subscribe to Print magazine.


now!


Newsletter


Booting Linux off USB Storage

Three steps to run Puppy Linux, a distro that you can boot off a USB storage device 
Anindya Roy

Monday, January 05, 2004

Live Linux distros that can boot directly from CDs, such as Knoppix and SuSe Live Eval, are already quite popular. But for a change, Puppy Linux is a new live distro that can boot directly from USB-based storage devices. You can run it from a CD, Compact Flash card or a USB Pendrive. But, whichever device you choose to boot it from, it must have more than 50 MB of storage capacity and must be able to emulate a USB hard drive. We’ll see how you can boot it off a 64 MB Iomega Mini Disk.

What you need are our this month’s PCQXtreme CD, a machine running PCQLinux 8 (with support for booting off a USB device in its BIOS) and a USB drive.

Don't let Puppy Linux's small footprint deceive you. It packs in a lot of apps

       STEP ONE            
Copy the file called cd-puppy.iso from the CD to your home directory and mount it as a loop back device in a blank folder, as below.

#cp cd-puppy.iso ~
#mkdir /puppy
#mount –o loop ~/cd-puppy.iso /puppy

       STEP TWO            
This will make all the content of the iso file available in the /puppy directory.

Mount your USB drive to a blank folder and copy two files, vmlinuz and image.gz, from /puppy to the USB drive. Here vmlinuz is the customized kernel (it is just 1.1 MB) and image.gz is the image of the Linux partition, which will be completely mounted onto the RAM, so that you can remove the USB drive once Linux has loaded.

Mounting a usb drive
Linux recognizes a Flash device as a SCSI drive and recognizes it as the first free SCSI device. So, in a desktop PC the first USB drive will be allocated to the device /dev/sda1.
To mount the drive, make a new folder, such as /mnt/usb, and run the following command.
#mount /dev/sdax /mnt/usb
Replace the x from sdax with the partition number of the drive that you want to mount. 

       STEP THREE            
Now you need to configure the boot loader by using syslinux. Create a configuration file for syslinux called syslinux.cfg by opening your text editor and save it to the USB drive (ie, /mnt/usb)by writing these lines.

default vmlinuz root=/dev/ram0 initrd=image.gz
append ramdisk_size=49152 PSLEEP=25 

Now run the commands as below. 

#umount /mnt/usb
#syslinux /dev/sda1

Finally, to boot the distro, restart your machine, enter its BIOS and set the first boot device to USB-HDD. The machine will now boot directly into Puppy Linux. This distro has a GUI with a lot of goodies such as Mozilla for browsing, Scribus for desktop publishing, LinNeighborhood for browsing the network and CD burning software. Enjoy your portable Linux.

Anindya Roy



Page(s)   1   

End of the article

PC Problems? Get a solution in 24 hours. Ask Tech Expert




Untitled Document



Innovation, Winning the future with ZTE


Reduce your TCO now with INGRES


Message boards

Discuss this and many other IT topics at the
CIOL message board

Previous Stories

Video Editing with LiVES

TI-based Wi-Fi Cards

Sherlock is Back

   
 

 
 

Magazine Subscription | RQS | Contact Us | Team PCQuest | Advertising - Print | jobs@cybermedia