Skip to content

Instantly share code, notes, and snippets.

@rn0
Created April 11, 2011 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rn0/913993 to your computer and use it in GitHub Desktop.
Save rn0/913993 to your computer and use it in GitHub Desktop.
sudo su
tce-load -wi cfdisk.tcz
tce-load -wi grub-0.97-splash.tcz
cfdisk /dev/hda
mkfs.ext3 /dev/hda1
rebuildfstab
mount /mnt/hda1
mkdir -p /mnt/hda1/boot/grub
mount /mnt/hdc
cp -p /mnt/hdc/boot/* /mnt/hda1/boot/
mkdir -p /mnt/hda1/tce
touch /mnt/hda1/tce/mydata.tgz
cp -p /usr/lib/grub/i386-pc/* /mnt/hda1/boot/grub/
echo "default 0" >> /mnt/hda1/boot/grub/menu.lst
echo "timeout 10" >> /mnt/hda1/boot/grub/menu.lst
echo "title tinycore" >> /mnt/hda1/boot/grub/menu.lst
echo "kernel /boot/bzImage quiet" >> /mnt/hda1/boot/grub/menu.lst
echo "initrd /boot/tinycore.gz" >> /mnt/hda1/boot/grub/menu.lst
grub --batch <
root (hd0,0)
setup (hd0)
EOF
umount /mnt/hdc
eject /dev/hdc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment