PendriveLinux V1 install to a portable USB hard drive

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.

  1. Boot PendriveLinux V1 using the Boot To Ram option.
  2. Remove the USB flash drive or CD you booted from, then connect your external USB hard drive.
  3. Open a terminal and enter sudo su to obtain root privileges.
  4. Enter fdisk -l to list available drives and partitions. Identify your external USB hard drive (for example, /dev/sdb). Throughout this tutorial, replace x in the device names below with your actual drive letter. If your drive is /dev/sdb, use /dev/sdb1 instead of /dev/sdx1.
  5. Unmount the first partition by entering umount /dev/sdx1.
  6. Start the partitioning utility by entering fdisk /dev/sdx. Follow these steps inside fdisk:
    • Enter p to display existing partitions.
    • Enter d to delete an existing partition. If multiple partitions exist, repeat as necessary.
    • Enter p again to verify that the partitions have been removed.
    • Enter n to create a new partition.
    • Enter p to create a primary partition.
    • Enter 1 to make it the first partition.
    • Press Enter to accept the default first cylinder.
    • Enter +5000M to create a 5GB partition. Increase this value if you want a larger partition.
    • Enter a to mark the partition as active.
    • Enter 1 to select partition 1.
    • Enter w to write the new partition table and exit.
  7. Unmount the partition again: umount /dev/sdx1.
  8. Format the new partition as ext2: mkfs.ext2 -L PDL /dev/sdx1.
  9. Create a mount point and mount the partition:
    mkdir /usbhd && mount /dev/sdx1 /usbhd
  10. Mount the compressed PendriveLinux filesystem:
    mount -o loop -t squashfs /live_media/casper/filesystem.squashfs /mnt
  11. Install the required utilities:
    apt-get install rsync grub
  12. Copy the extracted filesystem to your external hard drive:
    rsync -avx --progress /mnt/. /usbhd/.
  13. Unmount the original filesystem:
    umount /mnt
  14. Install the GRUB bootloader:
    grub-install --root-directory=/usbhd --recheck /dev/sdx1
  15. Change to the GRUB configuration directory:
    cd /usbhd/boot/grub
  16. Download the original GRUB menu configuration:
    wget https://pendrivelinux.com/downloads/menu.lst
  17. Enter the installed system using chroot:
    chroot /usbhd
  18. Reconfigure the X server:
    dpkg-reconfigure xserver-xorg

    Follow the onscreen prompts. The VESA video driver is a reasonable starting point for older hardware.

  19. Enter exit to leave the chroot environment.
  20. 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.

  1. Install xdebconfigurator:
    apt-get install xdebconfigurator
  2. Remove the existing X server configuration:
    rm /etc/X11/xorg.conf
  3. Change to the GRUB configuration directory:
    cd /boot/grub/
  4. Remove the existing GRUB menu configuration:
    rm menu.lst
  5. 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.