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.
Basic essentials:
- 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
- Type
fdisk -l
to 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
umount /dev/sdx1
- Type
fdisk /dev/sdx
- 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
- Type
umount /dev/sdx1
(again to ensure its umounted) - Type
mkfs.ext2 -L PDL /dev/sdx1
to format the partition as ext2 - Type
mkdir /usbhd && mount /dev/sdx1 /usbhd
- Type
mount -o loop -t squashfs /live_media/casper/filesystem.squashfs /mnt
- Type
apt-get install rsync grub
- Type
rsync -avx --progress /mnt/. /usbhd/.
- Type
umount /mnt
- Type
grub-install --root-directory=/usbhd --recheck /dev/sdx1
- Type
cd /usbhd/boot/grub
- Type
wget https://pendrivelinux.com/downloads/menu.lst
- Type
chroot /usbhd
- Type
dpkg-reconfigure xserver-xorg
(and follow the onscreen steps " I recommend using the vesa driver first) - Type
exit
to 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.
- Type
apt-get install xdebconfigurator
- Type
rm /etc/X11/xorg.conf
- Type
cd /boot/grub/
- Type
rm menu.lst
- Type
wget https://pendrivelinux.com/downloads/new/menu.lst