Sunday, October 30, 2016

flash-knoppix

flash-knoppix command usage:

$ flash-knoppix --help
Usage: /usr/bin/flash-knoppix [-a] [-f] [-m i|p|n] [-p mb] [image|dir] [target_device]
       -a            Allow fixed disks
       -f            Force overwrite, no questions (batch mode)
       -m i          Method: Create overlay image
       -m p          Method: Create overlay partition (recommended)
       -m n          Method: No overlay (read only)
       -p mb         Overlay partition or image size in MB >= 200
       image.iso     Loopmount source ISO file
       dir           Source data directory containing files
       target_device Destination block device (flash disk)


The corresponding window in the flash-knoppix GUI displays the following:

Please select installation method:
p Installation on FAT32 with additional overlay partition.
i Installation on FAT32 with (optional) overlay file [less than 4GB].

n  No Overlay (read-only like CD/DVD).

I've been going with option p, which gives me an installation of the compressed filesystem in /dev/sdb1 (FAT32) and the persistent memory in /dev/sdb2 (ReiserFS).

Here's a look at the flash drive in GParted, from Debian Jessie:




Here's what fdisk -l shows about /dev/sdb, the flash drive, when run from the live session:

Disk /dev/sdb: 7.5 GiB, 8004304896 bytes, 15633408 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xe01e57cc


Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdb1  *        2048 10518527 10516480    5G  c W95 FAT32 (LBA)
/dev/sdb2       10518528 15633407  5114880  2.4G 83 Linux



And here's a view of the contents of the /KNOPPIX-DATA directory on sdb2 of the flash drive, from SpaceFM in Debian Jessie:



No comments: