Created
April 11, 2011 18:23
-
-
Save rn0/913993 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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