Ned Latham <***@woden.valhalla.oz> wrote:
Post by Ned Latham
Gotta agree with that. Essentially, you could be carrying a Slackware
system around in your fob pocket. Could be very handy indeed.
In fact, I'm thinking "the ultimate portable test machine".
Right. I use it for testing, for wiping hard drives of old computers,
and for installing Slackware to old (or new) computers. The
interesting thing about this modified Slackware on a flash drive is
that it also runs great when installed to a hard drive. And I have
placed a script on the flash drive which does the task of installing to
a target drive, whether it's a hard drive, flash drive, internal or
It does the install using rsync so it runs fast, and it does the whole
job, allowing for a few places where it prompts the user to do manually
some things that were too difficult for me to code. In this manner it
does the following (in many instances allowing you to decline the
operation) in two boots.
-First boot--you boot Slackware on a partition that contains a
specially made /boot/tool dir. This can be, but doesn't have to be
one of my specially made bootable flashdrives. Then from inside
/boot/tool you run "./up1-stc". This is a symlink to the install
It wipes the MBR of the target device, runs parted, runs mke2fs and
mkswap, turns off journaling, sets up periodic file system checks,
installs Grub2, runs rsync to install the Slackware system, and
customizes the fstab and grub.cfg files so that they both refer
correctly to the label names of the swap and/or root partitions.
-Second boot--you boot Slackware on the target partition without
using the default "login=auto" boot parameter. Then you run
"./up2-stc" this time from inside the /boot/tool directory of the
target partition. It also is a symlink.
It prompts you to run netconfig, runs ssh-keygen on root, populates
an initial /home/student in the RAM drive, then prompts you to login
as student in another console (which starts X) and make needed
customizations, runs ssh-keygen on student, and stores the
/home/student dir in a persistent location.
Then the target is ready to boot and use normally. As I said the
target can be a bootable flash drive or the hard drive in a computer.
So perhaps it is the ultimate portable test machine (thanks for saying
that!), but that wasn't my intention when I made it.