Howto install TinyGentoo

Quick run through of how to install your TinyGentoo kernel onto different mediums.
Hard drive install only requires you to copy the kernel to /boot and adding a grub/lilo
entry so that wont be explained here.


It's old, but most comps still default to booting from it, not usb flash drives
Insert floppy

# mke2fs /dev/fd0
# mount /dev/fd0 /mnt/floppy
# mkdir /mnt/floppy/grub
# cp /boot/grub/{stage?,e2fs_stage1_5} /mnt/floppy/grub
# echo title TinyGentoo >> /mnt/floppy/grub/menu.lst
# echo kernel /vmlinuz >> /mnt/floppy/grub/menu.lst
# cp your-vmlinuz /mnt/floppy/vmlinuz

Change "your-vmlinuz" to the actual path and name of the kernel you will be using)

If you haven't got a floppy drive or just want to try floppy/hard drive stuff with Qemu,
dd if=/dev/zero of=floppy.img


Some people have reported grub not working for them. If it doesnt work for you, try isolinux instead.

$ mkdir -p iso/boot/grub
$ cp /boot/grub/stage2_eltorito iso/boot/grub/
$ echo title TinyGentoo >> iso/boot/grub/menu.lst
$ echo kernel /boot/vmlinuz >> iso/boot/grub/menu.lst
$ cp your-vmlinuz iso/boot/vmlinuz
$ mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o cd.iso iso

USB stick/dongle/flash drive

You might be wanting to still use your USB dongle on Windows, so you will also want to keep the fat32 filesystem.
Where your usb stick is mounted doesn't really matter, but here we are using /mnt/removable/
Also, it might be something other than /dev/sda
For example, it will be /dev/sdc if you have two sata drives in your computer.
/dev/sda1 is the first partition on 'sda'.

# mount /dev/sda1 /mnt/removable/
# mkdir -p /mnt/removable/boot/grub
# cp /boot/grub/{stage?,fat_stage1_5} /mnt/removable/boot/grub/
# echo title TinyGentoo >> /mnt/removable/boot/grub/menu.lst
# echo kernel /boot/vmlinuz >> /mnt/removable/boot/grub/menu.lst
# cp your-vmlinuz /mnt/removable/boot/vmlinuz
# umount /mnt/removable
# grub

The device you should use to install grub to might be different.
Make sure the filesystem grub reports is 'fat'

grub> root (hd1,0)
grub> setup (hd1)
grub> quit

Images by Mrs A. Linnapuomi