A friend asked me how I installed TinyCorePure64 first onto a disk partition.
I want to share my answer here --- not because I am an expert, but because it took me quite a lot of time to search for the details that I needed. In the end it's quite easy.
Being a TCL newbie myself, I guess my solution is not perfect --- anybody who knows better than me, please correct my mistakes. If you use different approaches, you are welcome to post them here as well.
My starting point: I have already another Linux Distribution running on my computer. I want to create a new partition for TCPL64.
I follow (as much as I understand) section 2.3 "Manual installation" from the CoreBook:
http://distro.ibiblio.org/tinycorelinux/corebook.pdf --- just filling in details.
My first step: Create a new ext4 partition with gparted. On my system, this new partition is /dev/sdc ---- your path will be different. Adjust the following commands accordingly.
I will need to add new directories and files to the new partition. To do this, I login as root and mount the new partition with the command
mount /dev/sdc1 /mnt/
My second step: Get the files (section 2.3.2). The CoreBook mentions core.gz and vmlinuz. I had difficulties to locate the corresponding 64bit files. Hence, I extracted them from the iso image: I downloaded TinyCorePure64-5.4.iso and executed the command
7z x Core-current.iso
The needed files are extracted into the directory "boot". They are called differently: corepure64.gz and vmlinuz64. That's not a problem. The following command copies them to the new partition:
cp -r bin /mnt/bin
I create the root directory for the extensions with the command
mkdir /mnt/tce
My third step: configure and install the grub2 bootloader (section 2.3.3).
First, I need to find out the uuid of my new TCL partition. I use the command
ls -l /dev/disk/by-uuid
This shows the uuids and the device names of all my drives. In my case, /dev/sdc has the uuid 99b1c94e-2f36-47be-b7e8-1f4c32a8a655. I am sure your uuid is different.
Now, I create my grub2 configuration file: Edit /mnt/boot/grub.cfg (this file will be /boot/grub.cfg on your new partition):
search --no-floppy --fs-uuid --set=root "99b1c94e-2f36-47be-b7e8-1f4c32a8a655"
menuentry "Core" {
linux /boot/vmlinuz64 quiet waitusb=5
initrd /boot/corepure64.gz
}
Of course, you need to replace the uuid in the first line with your uuid.
Finally, I install the grub bootloader with the command
grub-install --force --no-floppy --boot-directory=/mnt/boot /dev/sdc
You may have to replace the disk device file /dev/sdc by your own partition device.
That's what I remember from my installation.