Pendrivelinux V1 install to a portable USB hard drive
The following tutorial will show you how to install Pendrivelinux V1 Full Blown (non compressed) to an external USB Hard Drive (Rotating Platter, not a USB flash drive or flash memory stick) via Pendrivelinux V1. To do this, we create an ext2 partition on the USB Hard Drive. Next we extract or decompress filesystem.squashfs, add a Grub Boot Menu and reconfigure xserver-xorg.
Notes: This tutorial assumes that you already have a working Pendrivelinux V1 USB flash drive or CD (to be used as our host OS). Please backup your data before proceeding. DOES NOT WORK on PENDRIVELINUX 2008!
Warning: To be safe, it is recommended that you disconnect (remove cables) all internal hard drives before attempting the installation process.
- External USB Hard Drive (5GB+ space)
- Pendrivelinux already installed on a USB flash drive or CD
How to Install Pendrive Linux V1 to a Hard Drive:
- Boot Pendrivelinux V1 using the Boot To Ram option
- Remove the flash drive or CD you booted from and insert your portable USB Hard Drive
- Open a terminal and type sudo su
fdisk -lto list available drives/partitions. Note which device is your external USB Hard-Drive (example: /dev/sdb) Throughout this tutorial, replace x with your USB Hard-Drive letter. For example, if your USB Hard-Drive is sdb, replace x with b.
- Type p to show the existing partition and d to delete it
- Type p again to show any remaining partitions (if partitions exist, repeat the previous step)
- Type n to make a new partition
- Type p for primary partition
- Type 1 to make this the first partition
- Press Enter to use the default 1st cylinder
- Type +5000M to set the partition size (increase the value to create a larger partition)
- Type a to make the partition active
- Type 1 to select partition 1
- Type w to write the new partition table
umount /dev/sdx1(again to ensure its umounted)
mkfs.ext2 -L PDL /dev/sdx1to format the partition as ext2
mkdir /usbhd && mount /dev/sdx1 /usbhd
mount -o loop -t squashfs /live_media/casper/filesystem.squashfs /mnt
apt-get install rsync grub
rsync -avx --progress /mnt/. /usbhd/.
grub-install --root-directory=/usbhd --recheck /dev/sdx1
dpkg-reconfigure xserver-xorg(and follow the onscreen steps " I recommend using the vesa driver first)
exitto exit the chrooted environment
- Reboot your computer and configure your BIOS or Boot Menu to boot from your external USB hard drive
If all goes well, you should now be running Pendrivelinux from your external USB hard disk. If you have problems getting X to start, relaunch
dpkg-reconfigure xserver-xorg and try different settings.
The only user is root with a password of pendrivelinux you can add users once up and running!
Optional: If you plan to boot Pendrivelinux from multiple PC's, install xdebconfigurator to help autoprobe and autodetect video hardware.
apt-get install xdebconfigurator
Pendrivelinux V1 install to a portable USB hard drive published under Old USB installs from Linux/CD