jump to navigation

Multiple Linux distros on one usb drive: Ttylinux 31 August, 2008

Posted by aronzak in Linux, Live Linux, Live Usb.
Tags: , , , , ,

Name :       Tty Linux
Website:     http://www.minimalinux.org/ttylinux/
Linux Wiki:  http://linux.wikia.com/wiki/Ttylinux
Size:          11M
* Ttylinux is no longer actively maintained, but I think it’s definitely worth a mention.

I’ve been looking for a small, fast text based Linux distribution to add to my usb toolkit, but hadn’t yet found one. There’s a host of small distributions that have been around for a while. Unfortuantely, most of them are consigned to the past, lacking SCSI (and therefore SATA and USB) drivers; meaning that they can’t be started up off usb. Ttylinux works fine.

Ttylinux takes up less than ten megabytes, but has bash, a full featured shell. The default login is “root” password “root” or “guest” “guest”. Ttylinux loads its entire filesystem as an initial ram disk (initrd). The filesystem is easily modified (It’s a loopfile), but the bundled applications are fairly good.

To add it, download the gunzipped disk image (.iso.gz) and extract it to your usb drive (using an iso buster such as winrar or file-roller). Modify syslinux.cfg, adding the entry from isolinux.cfg, changing the directories as required. You should have a working, small bash tool.

To modify the filesysyem, make a backup of the filesystem, then make a directory (we’ll call mount) then mount it there with the loop type:

cd tty(whatever... Should contain a file called "filesystem")
cp filesystem filesystem~
mkdir mount

Then, as root;

mount -o loop isolinux/filesys mount

That should mount the filesystem in a folder. You can then add components as root. You might want to copy over some programs like sl (for old time’s sake). Most programs will need libraries.

NB. To start up properly, edit (mount/)etc/rc.d/rc/sysinit and comment out these lines:

echo "Starting fsck for root filesystem."
fsck -T -C /
if [ "$?" -gt 2 ]; then
echo "WARNING: Errors found while checking root filesystem."
echo "You can login as root now, the system will reboot after logout."
elif [ "$?" = "2" ]; then
echo "NOTICE: System needs to be rebooted now."
sleep 1
echo -n "Checking root filesystem: "

Or else fsck will fail on every boot (modified filesystem) and make you reboot.

You can create scripts in (mount/)etc/rc.d/start.d. I found it convenient to create this mounting script:


echo "Aronzak's mounting script"

fdisk -l | grep /dev | cut -c 1-21,52-
echo "Enter disk name (Eg. sdb1)"
echo "Press enter to skip"

read mount
# If nothing, exit
[ "$mount" ] || exit 0

mkdir -p /mnt/$mount

echo "Sorry, please enter fs type (Eg. vfat)"

read fs

# If nothing, exit
[ "$mount" ] || exit 0

mkdir -p /mnt/$mount

echo "Please enter fs type (Eg. vfat)"

read fs

# If nothing, exit
[ "$fs" ] || exit 0

mount -t $fs /dev/$mount /mnt/$mount

The filesystem will automatically update. Start up Tty and you should see your changes. “Chop wood, carry water.”



1. here - 5 September, 2014

I feel that is one of the so much significant information for me.
And i’m glad studying your article. But should remark
on few normal issues, The site style is perfect,
the articles is really nice : D. Just right activity, cheers

2. richjon - 6 September, 2014

Hmm it looks like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up
what I wrote and say, I’m thoroughly enjoying your
blog. I too am an aspiring blog blogger but I’m still new to everything.
Do you have any tips and hints for first-time blog writers?

I’d certainly appreciate it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: