You need to know, or find out, the device name for the disk partition on which you want to install ttylinux. The device names for disk partitions are formed by appending a number to the device name of the corresponding disk. For example, if your disk device is /dev/hda, the device /dev/hda3 is the third partition on that disk. Numbers 1-4 are the primary partitions, extended partitions start at 5.
ATTENTION: If you plan on installing onto a USB drive, or some other frequently moved disk device, then do not install ttylinux with the instructions here; use the instructions in section 3.3. The disk and partition devices used by this installation process would likely be different between different computers, so this installation may not correctly boot when booted on a computer other than the computer on which the installation is performed.
Due to the combined space requirements of the 8 MB ttylinux file system and the 3 MB ttylinux kernel, and considering some margin, the minimum partition size onto which you can install ttylinux and have it work is about 12 MB.
IDE disks use the same device names as given for IDE CD-ROM devices above. For SATA, the names are as follows:
|/dev/sda||First SATA Disk Device|
|/dev/sdb||Second SATA Disk Device|
|/dev/sdc||Third SATA Disk Device|
|/dev/sdd||Fourth SATA Disk Device|
Note that if you want to create a dual-boot setup with Windows and ttylinux on the same disk, a topic not covered here, you can't use the first partition /dev/hda1 or /dev/sda1 as your ttylinux target partition, because that is where Windows needs to be installed to work.
Here are some examples of possible device names for your target partition:
|/dev/hda1||First Primary Partition on Primary IDE Master|
|/dev/hdb5||First Extended Partition on Primary IDE Slave|
|/dev/sda2||Second Primary Partition on First SATA Disk|
|/dev/sdc6||Second Extended Partition on Third SATA Disk|
Note that depending on the BIOS, booting might be possible only from the first two disks installed in the system.
Also, you can look at the directory listing of /sys/block to see which block devices the kernel has detected, as disk drives are block devices.
Drive Partitioning, if Needed
What to do if your target disk is not partitioned yet? Linux systems, including ttylinux, have the fdisk program that can be used to partition disks. For example, to partition a disk connected as master to the first IDE controller, use:
The user interface of fdisk is somewhat primitive, so be careful. If you haven't used it before, a good idea would be to search the Internet for instructions. The basic commands you may need are "d" to delete a partition, "n" to create a new partition, "p" to print the current partition table, and "w" to write the edited partition table to disk. You can also use "q" to exit fdisk without saving your changes.