View Page Source

Revision (current)
Last Updated by feos on 8/2/2023 3:15 PM
Back to Page


[https://distro.ibiblio.org/tinycorelinux/welcome.html|Tiny Core Linux] is a lightweight Linux distribution that can run on older hardware, such as that emulated by PCem.  By default, it runs in RAM and does not save anything to a hard disk.  Usually, it requires Internet access in order to install programs, which come in TCZ files called extensions.  Extensions are similar to packages in other Linux distributions.  They may contain programs, documentation, or files with program settings.  Extensions sometimes require other extensions to be installed in order to work properly; these other extensions are called dependencies and are listed in DEP files.

The steps below will walk you through an installation of Tiny Core Linux to a hard drive image.  They are based upon the instructions at [http://distro.ibiblio.org/tinycorelinux/install_manual.html].  However, everything will be done from the shell rather than via GUI programs.  If you wish to follow those instructions using GUI programs, you will probably need a TinyCore or CorePlus CD image and will probably need to set up PCem with network access.

%%TOC%%

!!! What you'll need

* PCem configured as per the [EmulatorResources/PCem|general guide] up through the BIOS setup.
* A bootable CD image with Tiny Core Linux.  These instructions will use the Core-7.0 ISO available [https://distro.ibiblio.org/tinycorelinux/7.x/x86/archive/7.0/|here].  Other versions can be accessed via [https://distro.ibiblio.org/tinycorelinux/downloads.html|this downloads page].
* The following extensions, which you can download from [http://distro.ibiblio.org/tinycorelinux/7.x/x86/tcz/|here] and put on a floppy image:
** cfdisk.tcz (and cfdisk.tcz.dep)
** grub-0.97-splash.tcz (and grub-0.97-splash.tcz.dep)
** ncurses.tcz

NOTE: In the following instructions, __bold text__ should be typed into PCem.  Unless stated otherwise, press Enter after each line.  You can use tab completion for some commands, file names, and directory names.

!!! Installing the extensions

Start PCem with the CD image in the CD drive.  At the boot prompt, press Enter.  After Tiny Core boots from the CD, you should reach the shell and see a line starting with ''tc@box''.

* Load the floppy image from above that contains the extensions.
* Create a directory to access the contents of the floppy image: __mkdir /mnt/fl__
* Mount the floppy so that you can access the files: __sudo mount /dev/fd0 /mnt/fl__
* Copy the files from the floppy: __cp /mnt/fl/* .__
* Unmount the floppy: __sudo umount /mnt/fl__
* Install the extensions: __tce-load -i cfdisk.tcz grub-0.97-splash.tcz__

!!! Partitioning the hard drive

* __fdisk -l__ to show the available disks and partitions.  The following steps will use disk ''/dev/sda''.
* __sudo su__ to get a root shell.  You should see a line starting with ''root@box''.
* __cfdisk /dev/sda__ to start the cfdisk program that will be used to partition the disk.

While in cfdisk, use the left and right arrow keys to navigate the menu at the bottom of the screen, and press Enter to select an option.

!! Boot partition

* Select __New__.
* Select __Primary__.
* Set the size that you want for the partition and press Enter.  NOTE: The hard disk does not boot properly if you enter the entire disk size here.  One workaround is to subtract 0.01 MB from the entire size.
* Select __Beginning__ to put the partition at the beginning of the available space.
* Select __Bootable__ so that the partition can be used to boot the computer.  Subsequent steps will use partition name ''sda1''.  If yours is different, then use that name.

!! Optional: Swap partition

A swap partition is hard drive space that can be used like RAM.  This can be useful if the actual RAM gets filled up, but writing to and reading from the hard drive is slower.

* Press the down arrow key to select the remaining free space.
* Select __New__.
* Select __Primary__.
* Set the size of the partition as desired.
* Select __Beginning__ to put the partition at the beginning of the available space.
* Select __Type__.
* Set type to __82__ and press Enter.

!! Finishing up

After you have set up all of the partitions that you want:

* Select __Write__, then type __yes__ and press Enter.
* Select __Quit__ to exit cfdisk.

!!! Formatting the hard drive

* Format the boot partition: __mkfs.ext3 /dev/sda1__
* If you made a swap partition, type __mkswap /dev/sda2__ and press Enter.  Use the appropriate partition name instead of ''/dev/sda2''.
* Type __rebuildfstab__ and press Enter.

!!! Copying files to the hard drive

* Mount the boot partition: __mount /mnt/sda1/__
* Mount the CD image that has the Tiny Core files: __mount /mnt/sr0/__
* Create directories to hold the operating system and boot loader (GRUB) files: __mkdir -p /mnt/sda1/boot/grub__
* Create a directory to hold extensions and the backup file: __mkdir -p /mnt/sda1/tce__
* Copy the Tiny Core files to the hard drive: __cp -p /mnt/sr0/boot/* /mnt/sda1/boot/__
* Copy the GRUB files to the hard drive: __cp -p /usr/lib/grub/i386-pc/* /mnt/sda1/boot/grub/__
* Optional: Create the file used for backups: __touch /mnt/sda1/tce/mydata.tgz__
* Unmount the CD image: __umount /mnt/sr0/__

!!! Setting up GRUB

* Start the vi text editor and create the file that GRUB uses for the boot menu: __vi /mnt/sda1/boot/grub/menu.lst__
* In order to enter text, switch to insert mode by pressing __i__.
* Type the following into the file:
 default 0
 timeout 10
 title Tiny Core 7
 kernel /boot/vmlinuz text
 initrd /boot/core.gz
* Leave insert mode by pressing Esc.
* Save the file and quit vi: __:x__
* Start GRUB: __grub__
* __root (hd0,0)__ to specify which partition has the kernel image.  NOTE: If the partition name does not end in ''a1'', please see the GRUB documentation or the installation instructions on the Tiny Core site about how to figure out the numbers for this step and the next step.
* Install GRUB: __setup (hd0)__
* Exit GRUB: __quit__

The hard disk image is now ready.  Eject the floppy and CD images.  You can shut down the system with __poweroff__ or restart with __reboot__.

----
* For future reference:
** https://help.ubuntu.com/community/Midi/HardwareSynthesisSetup#For_Sound_Blaster_Awe64_.28and_probably_also_Awe32.29