Using blackPanther USB edition


boot screen of blackPanther OS USB version
USB pendrive can be a great help, especially for data rescue, but it can also be used to take your familiar operating system with you  all the time. It also has the advantage of being written on by the system, so you won’t loose your settings at
the next boot, which the CD/DVD version is unable to do!

This how-to will explain how you can make your own blackPanther OS pendrive, with the automated installer, for normal  users, or with manual install, for users who are looking for a challenge.

It is necessary that you have the desired version of blackPanther OS ( CD or DVD ) ISO image file or burned disc!

Automated installer:

1.) Download the required package called PANTHER-USB.tar.bz2.
This can be found under the download section.
2.) Unpack the package PANTHER-USB.tar.bz2 and make sure createtool.sh exists.
3.) Change your pendrive label to PANTHER-USB, this is very important!
4.) Make sure that you have a burned CD or DVD, or an original ISO file.
5.) Run createtool.sh with root permission and follow the instructions.

Manual install for advanced users:

1.) Create a pendrive named PANTHER-USB with about 2GB free space.
2.) Extract PANTHER-USB.tar.bz2 file and copy all files from archive
to the pendrive.
3.) Mount blackPantherOS_vXX_multikernel.iso and copy squashfs file to
the loopbacks directory.
4.) Create a “data” image file in the loopbacks directory.
5.) Make the pendrive bootable.
6.) Install syslinux on the pendrive.

If you don not have syslinux, mtools, zenity and/or parted, then install them!

( either use the command: ‘installing syslinux mtools zenity parted’ or use
your favourite package manager)

Step to step guide:

1. Go to the official webpage and download the ISO file from any mirror site

Example:

mkdir -p ~/USBPROJECT
cd ~/USBPROJECT
wget \
ftp://ftp.freepark.org/pub/linux/distributions/blackpanther/All/v10.1/blackPantherOS_v10.1.1_Destiny_CD_multikernel.iso

2. Create a pendrive named PANTHER-USB

Example:
Connect the pendrive (minimun size 1GB, recommended size 4GB) to the PC.
In the example, the size of my pendrive (sdb1) is 2GB

Command:

dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdb
mkdosfs -c -F 32 -n PANTHER-USB /dev/sdb1
Then reconnect the pendrive to the PC

3. Copy the required files, but

check the connected device before, using the command:

#fdisk -l

if OK, then the following will be displayed:

Disk /dev/sdb: YXYXY MB, xyyxyx0000 bytes
94 heads, 1 sectors/track, xyxyxyx cylinders
Units = cylinders of 94 * 512 = yxyxyy bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sdb1 * 171 44948 2104515 c W95 FAT32 (LBA)

AND also check with:

  1. ls -l /media/ | grep PANTHER-USB


Which will write:

drwxr-xr-x 5 vector root 4096 2010-09-05 17:09 PANTHER-USB/

Now uncompress the archive with the following command:

  1. bunzip2 -cd PANTHER-USB.tar.bz2 | tar -C /media -xf-

4. Mount the blackPanther OS ISO image and copy squashfs compressed archive

mkdir -p /mnt/iso
mount -o loop \
~/USBPROJECT/blackPantherOS_v10.1.1_Destiny_CD_multikernel.iso \
/mnt/iso
cp /mnt/iso/livecd.sqfs /media/PANTHER-USB/loopbacks
umount /mnt/iso && rm -f /mnt/iso

5. Create a storage image in the loopbacks directory

example size=1GB

dd if=/dev/zero of=/media/PANTHER-USB/loopbacks/data bs=1024 count=1024k
mke2fs -L LOOP -F /media/PANTHER-USB/loopbacks/data

6. Set the bootable option

fdisk -a /dev/sdb1

7. Install syslinux

syslinux -sf /dev/sdb1

To try it out, restart your PC, then in the boot menu, select the USB pendrive

Enjoy!

This page is a Wiki! Log in or register an account to edit.
admin

About admin