<<

S.Ha.R.K. Installation Tools HowTo • Linux utility

• A of Linux installation

• A copy of Windows® installation CD Tullio Facchinetti University of Pavia - Italy • Some FreeDOS utilities

• A copy of S.Ha.R.K.

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

Knoppix live CD Linux fdisk Command action a toggle a bootable flag Download ISO from b edit bsd disklabel c toggle the compatibility flag d delete a partition http://www.knoppix.org l list known partition types m this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes • boot from CD s create a new empty Sun disklabel t change a partition's system id • open a command u change display/entry units v verify the partition table • “su” (become root ), password is empty w write table to disk and x extra functionality (experts only) • fdisk (ex. fdisk /dev/hda ) Command (m for ):

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

HD partitioning HD partitioning

1st FreeDOS FAT32 FreeDOS must be installed Primary 2nd Windows® FAT32 into the first partition of your HD or it may not boot 3rd Linux / extX Data 1 FAT32 data partitions as ... Extended FAT32, so that you can share Data n FAT32 your data between Linux, last Linux swap swap Windows® and FreeDOS

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

1 HD partitioning Windows ® installation

FAT32 Windows® partition type Install Windows®... (LBA)

only tested for Windows® change the Windows® 2000 and above partition type only, to make Windows® leaving all the stuff into its Windows® 98 or older should not work if own partition not installed into the 1st partition

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

FreeDOS installation FreeDOS installation

After Windows® installation: Install • reboot with Knoppix CD inserted download the packages from • change the 1st partition type to http://www.freedos.org  FAT32 for normal usage  FAT16 to use S.Ha.R.K.’s download the packages and copy filesystem functions them manually into the partition, I experienced some trouble with • format the 1st partition installation CD and floppy

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

FreeDOS bootsector image Linux installation • build a FreeDOS boot floppy  type “ a: ” reboot and install your favourite Linux distro • copy sys.com on floppy • boot from floppy • create the image After the installation, the GRUB boot  type “sys x: x:\fdosboot.img ” manager should be installed in your MBR

"x: " is the drive letter of the partition in which I did not tried other boot FreeDOS has been installed as seen by managers, like LILO or XOSL FreeDOS after the boot from floppy

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

2 Modify grub.conf Example of modified grub.conf

You can it in /boot/grub/grub.conf default=0 =10 splashimage=(hd0,2)/boot/grub/splash.xpm.gz Win2000 title Fedora Core (2.6.8-1.521) rootnoverify (hd0,1) Windows® root (hd0,2) chainloader +1 kernel /boot/vmlinuz-2.6.8-1.521 ro root==/ rhgb quiet initrd /boot/initrd-2.6.8-1.521.img title FreeDOS rootnoverify (hd0,0) title FreeDOS - Shark makeactive rootnoverify (hd0,0) FreeDOS chainloader /fdosboot.img boot makeactive with S.Ha.R.K. title Win2000 chainloader /fdosboot.img rootnoverify (hd0,1) boot chainloader +1

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

A full -optional alternative A full -optional alternative

Download ISO from http://ubcd.sourceforge.net

• DOS version of the Linux fdisk • an already installed FreeDOS distribution • many low-level diagnostic tools

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

Installing S.Ha.R.K. Installing S.Ha.R.K.

• Download the full package from http://shark.sssup.it/

• It includes Do follow the instructions contained  S.Ha.R.K. source code in  The e Xtender  Unzip utility instnew.txt  DJGPP compiler to correctly build your S.Ha.R.K.  DOSLFN utility to manage long file names distribution

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

3 S.Ha.R.K. boot CD -ROM S.Ha.R.K. and network execution

• No HD installation required If you install the Linux version you can build/develop/compile faster • Burn the ISO image on a CD • Boot S.Ha.R.K. from CD however • Write your own project data on HD S.Ha.R.K. needs a DOS environment to run applications • Optional resizable RAM disk

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

S.Ha.R.K. and network execution S.Ha.R.K. and network execution therefore or you may choose to

You should reboot every application Run applications on a remote machine execution over Ethernet network

or Ethernet

Use a to and run the application to a DOS machine

S.Ha.R.K. Workshop S.Ha.R.K. Workshop

S.Ha.R.K. and network execution S.Ha.R.K. and network execution • PXE and GRUB require to reboot the  develop  run remote machine at every execution  compile  test Ethernet • FTP does not ! Faster & smarter... • PXE also requires GRUB built with network and PXE support • almost all network cards support PXE

Linux/Windows + S.Ha.R.K. DOS partition + packet • some NIC have no packet drivers driver + FTP server • PXE works on diskless machines FTP client GRUB built with network • FTP needs operations at the remote DHCP *** + TFTP server support machine console PXE capable network card S.Ha.R.K. Workshop S.Ha.R.K. Workshop

4