PendriveLinux V1: This is a legacy tutorial explaining how to install the original PendriveLinux V1 Full Blown (non-compressed edition) to an external USB hard drive (traditional rotating hard disk, not a USB flash drive).
Looking for the current version? Visit PendriveLinux OS, our modern, portable Linux desktop designed to run directly from a USB drive. Your files, settings, installed applications, and updates remain saved between sessions, just like a traditional desktop installation.
Important: The instructions below apply exclusively to the original Pendrive Linux release from way back in 2007. They are historical and are not compatible with current PendriveLinux OS releases.
Before proceeding: This installation method involves repartitioning and formatting your external hard drive, which will erase existing data. Back up anything you want to keep before continuing.
Warning: Whenever possible, disconnect your computer's internal hard drives before attempting this procedure. This helps prevent accidentally modifying the wrong drive.
Requirements
- An external USB hard drive with at least 5GB of capacity.
- A working PendriveLinux V1 USB flash drive or CD to use as the host operating system.
How to Install PendriveLinux V1 to an External USB Hard Drive
The following procedure installs the original PendriveLinux V1 system to an external USB hard drive. It creates an ext2 partition, extracts the compressed SquashFS filesystem, installs the GRUB bootloader, and reconfigures the X server.
- Boot PendriveLinux V1 using the Boot To Ram option.
- Remove the USB flash drive or CD you booted from, then connect your external USB hard drive.
- Open a terminal and enter
sudo suto obtain root privileges. - Enter
fdisk -lto list available drives and partitions. Identify your external USB hard drive (for example,/dev/sdb). Throughout this tutorial, replacexin the device names below with your actual drive letter. If your drive is/dev/sdb, use/dev/sdb1instead of/dev/sdx1. - Unmount the first partition by entering
umount /dev/sdx1. - Start the partitioning utility by entering
fdisk /dev/sdx. Follow these steps inside fdisk:- Enter
pto display existing partitions. - Enter
dto delete an existing partition. If multiple partitions exist, repeat as necessary. - Enter
pagain to verify that the partitions have been removed. - Enter
nto create a new partition. - Enter
pto create a primary partition. - Enter
1to make it the first partition. - Press Enter to accept the default first cylinder.
- Enter
+5000Mto create a 5GB partition. Increase this value if you want a larger partition. - Enter
ato mark the partition as active. - Enter
1to select partition 1. - Enter
wto write the new partition table and exit.
- Enter
- Unmount the partition again:
umount /dev/sdx1. - Format the new partition as ext2:
mkfs.ext2 -L PDL /dev/sdx1. - Create a mount point and mount the partition:
mkdir /usbhd && mount /dev/sdx1 /usbhd
- Mount the compressed PendriveLinux filesystem:
mount -o loop -t squashfs /live_media/casper/filesystem.squashfs /mnt
- Install the required utilities:
apt-get install rsync grub
- Copy the extracted filesystem to your external hard drive:
rsync -avx --progress /mnt/. /usbhd/.
- Unmount the original filesystem:
umount /mnt
- Install the GRUB bootloader:
grub-install --root-directory=/usbhd --recheck /dev/sdx1
- Change to the GRUB configuration directory:
cd /usbhd/boot/grub
- Download the original GRUB menu configuration:
wget https://pendrivelinux.com/downloads/menu.lst
- Enter the installed system using chroot:
chroot /usbhd
- Reconfigure the X server:
dpkg-reconfigure xserver-xorg
Follow the onscreen prompts. The VESA video driver is a reasonable starting point for older hardware.
- Enter
exitto leave the chroot environment. - Reboot your computer and configure your BIOS or boot menu to start from the external USB hard drive.
If everything goes as expected, PendriveLinux V1 should now boot from your external USB hard drive. If the graphical desktop fails to start, try running dpkg-reconfigure xserver-xorg again and selecting different display settings.
Original Default Login
The original PendriveLinux V1 installation used a single root account:
- Username: root
- Password: pendrivelinux
You could create additional user accounts after successfully booting the installed system. This default login information applies only to the original V1 release.
Optional: Configure for Multiple Computers
If you intend to boot this installation on multiple computers, you can try installing xdebconfigurator to help detect and configure video hardware.
- Install xdebconfigurator:
apt-get install xdebconfigurator
- Remove the existing X server configuration:
rm /etc/X11/xorg.conf
- Change to the GRUB configuration directory:
cd /boot/grub/
- Remove the existing GRUB menu configuration:
rm menu.lst
- Download the alternate GRUB menu configuration:
wget https://pendrivelinux.com/downloads/new/menu.lst
Note: These optional configuration steps and associated legacy download files are provided for historical reference. Their availability and compatibility with the original V1 environment are not guaranteed.
Want a modern portable Linux OS? Explore PendriveLinux OS for the current generation of our portable USB-based Linux operating system.