NETem - Network Link Emulator for GNS3

hd-install.sh 854B

123456789101112131415161718192021222324252627282930313233
  1. # Install tinycore on harddisk
  2. set -x
  3. # format harddisk
  4. echo -e 'n\np\n1\n\n\na\n1\nw' | sudo fdisk -H16 -S32 /dev/sda
  5. sudo mkfs.ext2 /dev/sda1
  6. # copy system to harddisk
  7. sudo mkdir /mnt/sda1
  8. sudo mount /dev/sda1 /mnt/sda1
  9. sudo mount /mnt/sr0
  10. sudo cp -a /mnt/sr0/boot /mnt/sda1/
  11. sudo umount /mnt/sr0
  12. # modify bootloader config
  13. sudo mv /mnt/sda1/boot/isolinux /mnt/sda1/boot/extlinux
  14. cd /mnt/sda1/boot/extlinux
  15. sudo rm boot.cat isolinux.bin
  16. sudo mv isolinux.cfg extlinux.conf
  17. sudo sed -i -e '/append / s/$/ user=gns3/' -e 's/timeout .*/timeout 1/' extlinux.conf
  18. cd
  19. # make disk bootable
  20. tce-load -wi syslinux
  21. sudo sh -c 'cat /usr/local/share/syslinux/mbr.bin > /dev/sda'
  22. sudo /usr/local/sbin/extlinux --install /mnt/sda1/boot/extlinux
  23. # create extensions directory
  24. sudo mkdir /mnt/sda1/tce
  25. sudo chgrp staff /mnt/sda1/tce
  26. sudo chmod 775 /mnt/sda1/tce