home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!davem
- From: davem@extro.ucc.su.OZ.AU (David Monro)
- Subject: Re: Partition without delete?
- Message-ID: <davem.722406384@extro.ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: Sydney University Computing Service, Sydney, NSW, Australia
- References: <Bxy96p.B3v@mentor.cc.purdue.edu>
- Date: Sun, 22 Nov 1992 04:26:24 GMT
- Lines: 59
-
- sexonbd@sage.cc.purdue.edu (Benjamin David Sexson (Ben)) writes:
-
- >Hello out there. I'd really love to install Linux, but I
- >can't afford to lose my DOS stuff :-(. I read in the FAQ
- >that there is a way to partition with out losing all your old
- >stuff. How do you do it?
- >Thanx,
- >Benjamin Sexson
- >sexonbd@sage.cc.purdue.edu
-
- OK, here is how I did it for a couple of machines.
- This only applies for reducing the size of dos partitions, not moving
- them around. It works best if you have one big partition at the beginnig of the
- hard disk.
- NOTE: BACK UP FIRST! MAKE A DOS BOOT DISK (OR TWO) WITH A SECTOR EDITOR ON IT!!
- SAVE YOUR BOOT SECTOR AND PARTITION TABLE INFO FIRST!! (On paper if need be!)
- You will need - a disk defragger and a sector editor capable of recognizing
- the partition table and boot sector. (I use Norton 6.01)
-
- First, run the defragger on your partition to get everything packed into the
- lower and of it.
- Work out how much space you need.
- Edit your partition table to reduce the number of sectors in the partition,by
- changing the ending cylinder (and possibly head) of the partition.
- DO NOT shift the beginning of the partition. Change the total number of
- sectors to match (Norton 6.01 will do this for you if you zero out the
- number of sectors, mark the entry and do 'Recalculate Partition')
- Edit the boot sector to change the total number of sectors to match the entry in
- the partition table OR DOS WILL MUNCH THINGS OFF THE END OF THE
- PARTITION!!.
-
- This works fine for me - at this point reboot and do a dir - check if the
- number of free bytes looks right.
-
- THERE IS NO GUARENTEE THAT THIS WILL WORK FOR YOU!!!
- I MAY HAVE MADE A TYPO SO BE CAREFUL AND THINK ABOUT WHAT YOU ARE DOING!
- I have done it to three machines with little problem. The only problem I
- have is that I reduced on partition from 40Mb to 20Mb, and now can't get it to
- go above 32Mb. The partition table is fine, but the boot sector won't let me
- change it properly. I am not in a hurry to fix it though. At one point the
- was in a horrible state - it would start to boot, put a line of garbage
- on the screen and freeze solid. (Turned out I'd trashed msdos.sys or io.sys)
- So be careful, and back up anything you can't afford to lose, and keep a
- boot disk with lots of utilities on it in case you stuff up - like something
- to save and restore partition and boot sector info. This will resurrect
- almost anything done by mucking with the partition table and boot sector,
- funny that.
-
- Good luck,
- David Monro
-
-
-
- --
- David Monro
- e-mail: davem@extro.ucc.su.OZ.AU
- --
- David Monro
- e-mail: davem@extro.ucc.su.OZ.AU
-