Reducing Your MSDOS Partition Size With FIPS and Defrag and Attrib

Ok, Let say you have a 1.7 GB hard disk with a 1.7GB FAT 16 partition. Now, our first mission is to move all the file to the beginning of your hard disk.

First , u must make all your Dos files unhidden, non system , not read only and archiveable

smartdrv +c
attrib -r +a -h -s  c:\*.*  /s

Now, defrag your hard disk. If you are using MSDOS 6.22 , run this command:

defrag c: /f

that's all there is, your mission objective complete, u can run fips now ASAP. (Don't go into windows) .

Now, if you are using Windows 95, things can get a little tough. Defrag your hard disk using the defragmentation in your windows 95. after that, quit to MS-DOS Mode

First, we get rid of the windows swap file

attrib -r +a -h -s c:\windows\win386.swp
del c:\windows\win386.swp
attrib -r +a -h -s C:\*.*
del c:\386spa*.*

Ok, now we must get rid of your system registry file :

c:
cd c:\windows
attrib -r +a -h -s *.*
copy system.dat system.abc
del system.dat

with the command above, your system registry file has been copied to another file called system.abc and the registry was deleted after that.

You can run fips now. After you have run fips, you must rename your system.abc to system.dat again or else your windows won't run.

rename c:\windows\system.abc system.dat
 

Using fdisk To Make Linux Swap And Linux Partition

During your installation of Linux, you can use fdisk to create linux partition

You must make one 32 MB Linux Swap Partition and allocate the others for Linux native.

fdisk command :

for help
n   for add new partition
p   for printing current partition status
d   for delete partition
t    for changing partition type
w   for write to partition and exit

Now , type n to add a new partition. Choose primary partition when asked

When it ask about the size, type in +32M

type n add another partition again.  Choose primary partition when asked.

when it asked about the size, key in the last number of your hard disk cylinder

Now, we must change the 32 MB partition to a swap partition.

Type t to change partition system ID.  Choose the swap partition (usually number 2), then choose type number 82

Type w to write all new partition. Wait for a while and restart your computer