USB Pendrive Linux install from Linux
Send this article to a friend
The Pendrivelinux team has put together a USB Pen Drive Linux package based purely on Debian Linux. The USB Linux package is currently available in .img format. Installation is simple and just requires copying the .img to a USB device and then creating a live-rw partition if you wish to store your changes. We think you will find this personalized USB Linux version easy to install, navigate and use.
Credits extend to the Debian-Live team for creating Live-Helper script used in this project. (Aicrom) Márcio Santos for the custom Penguin artwork, Theme-Graphics thanks to Carlos
Basic Essentials:
- 1GB or larger USB flash drive (512MB will work but isn't recommended)
- Pendrivelinux.img
- Linux environment (Debian used in this example)
Obtaining and installing Pendrivelinux to USB:
- Insert a 1GB or larger USB flash pen drive
- Start your PC (booting from a Linux OS)
- Download the pendrivelinux.img
- Open a terminal and type sudo su
- From the terminal, change to the directory where you saved pendrivelinux.img
- Type fdisk -l and note which device is your USB device. Example:/dev/sdX (X represents your USB drive letter. Through the rest of this tutorial, replace X with your actual drive letter)
- Type dd if=pendrivelinux.img of=/dev/sdX
Optional - Create a second partition for saving changes:
- Type fdisk /dev/sdX
- Type n (makes a new partition)
- Type p (makes the new partition a primary partition)
- Type 2 (makes this the 2nd primary partition)
- Hit enter to accept the default first cylinder
- Hit enter again to accept the default last cylinder
- Type w (writes the new partition information to the USB drive)
- Type umount /dev/sdX1 and then remove and reinsert your USB drive
- Type mkfs.ext2 -b 4096 -L live-rw /dev/sdX2
- Reboot your computer and set boot priority to boot from the USB stick
You should now be booting into USB Pen Drive Linux from your USB drive!
Notes: You must boot by typing live persistent at the boot prompt if you wish to use the second partition to save or restore changes. Otherwise the system will boot in LIVE mode.
No root password has been set by default. To set a root password open a terminal and type sudo passwd root and then set the password you would like to use for root access.
The default username is user. Default user password is live
We spend countless hours testing and writing these tutorials. If you found this information useful, feel free to make a donation.

















