Solved defrag dos

July 18, 2011 at 15:21:31
Specs: dos
have dos system that is filling up, have deleted lots of files but is still full can I defrag to recover the "lost space" it is part of a P.O.S shop system and does exactly what i want it to do and dont want to upgrade , but neet to put more part numbers in and have deleted lots of old ones but dont seem to be able to get the space back to reuse and wondered if by defraging dos this would help free up the deleted space to reuse
Any help would be great

edited by moderator: Removed e-mail address - T-R-A

See More: defrag dos

Report •

July 18, 2011 at 15:46:14
✔ Best Answer
First of all, don't post your e-mail address on a public forum (like this one) unless you love spam.

Second, normal defragging does nothing to reclaim any significant amount of space. Only deleting files (like you are doing), increasing the size of the hard-drive (or adding another), significantly changing the file allocation (which DOS is unwilling to do), or compressing the drive itself (which will slow-down access times) will solve that problem. Likely the "part-numbers" you speak of aren't individually taking up much space. File-Defragging only reorganizes the location of data on your drive so it doesn't have to work as hard to find it when it needs it:

If it's a very old system, then I'd suggest some strategy of backing it up as well.

"Channeling the spirit of jboy..."

Report •

July 18, 2011 at 16:15:13
Hi T- R- A,
Thanks for the info and the advice. Have a 6gb drive on the system but understood that dos did not see any more that 2gb and the software is no longer supported by the supplier I find it hard to get any advice , it can take about 6000 part numbers before it gives a 90% full warning , i have deleted it down to 2,500 part numbers but when I try to put a file of new numbers in of aprox 900 new part numbers it says its its over full , so I thought that even though I had deleted them that the system had not flaged them as now usable space and that by defraging it would release and mark that as available

It backs up to a zip drive at the moment which stores the data each night
On the email address I delete this everyso often and create a new one so sent span goes down a big black hole in space LOL

Again thanks very much for you kind advice

Report •

July 18, 2011 at 18:16:50
Actually, DOS can't see larger than a 2.1GB partition. The largest drive "modern" versions of DOS will see is 8.4GB (which would, at a minimum, have to be partitioned off into four 2.1GB drives). If you're using only 2.1GB of the 6 GB drive, and you have DOS 5.x or better and a machine that recognizes the 6GB HDD, you should still be able to create extended partitions and logical drives in the remaining ~ 3.9GB of space (and possibly direct your P.O.S. software to look in that area for additional part-numbers). If you attempt this, make sure you do nothing with FDISK to the drive (C) that has your current information unless you're certain you have a backup first.

Using FDISK and from "4. Partition Hard Disk (Multiple Partitions)" in the link directly below, start with

G. Select from the FDISK menu "1. Create DOS partition or Logical DOS Drive".".

and follow through step "M" until your drives are all created (again, assuming the machine "sees" all 6GB):

Hopefully, this additional info won't confuse matters:

"Channeling the spirit of jboy..."

Report •

Related Solutions

July 18, 2011 at 20:58:53
How is your data stored? Many old databases have to compacted to regain space.

Report •

July 19, 2011 at 02:41:02
thanks t-r-a

hi fred,
system compacts it for me then saves it to a zip file and deletes the saved file from computer

Report •

July 19, 2011 at 06:31:03
Does the size of the data file decrease when you delete records? Is there a file utility to pack, reorganize?

Report •

July 19, 2011 at 06:58:13
If it were me and this was mission critical I would make an exact image backup of this on another H.D. before I started banging on it....


Keep the old stuff running

Report •

July 20, 2011 at 13:35:44
I agree with LinuxOS2, back-it-up before tampering! lost many HDD's to my nephew when i forgot to backup. When you deleted the files, you have DOS 5 or 6, right? 5&6 don't actually delete the files, it just marks the spot "Open" on the HDD, the file is not deleted so you can use the UNDELETE command to keep files you actually want. Resetting the comp a few times sometimes works (full boot and off again) but otherwise, do CHKDSK /F to delete the "lost" sectors. For a deeper clean, use SCANDISK for a deep clean. (Good to do that one a month anyhow) DEFRAG just rearranges your files, it makes for faster read/write times but does NOTHING for space. Agree with T-R-A, DOS will not see past 2 GB FAT16 partition.

Report •

July 20, 2011 at 13:38:42
Hi Jim - please advise which dos and its version you are using.

If I understand above correctly, you had problems when trying to input (as a one off?) 900 records, which is a substantial % of the 6000 total.

Have you tried inputting fewer records, then running the pos systems housekeeping routine, before inputting more?

There are some good suggestions above regarding backup, this should be for both hardware and software. If something breaks, you need to be up and running soonest, not then looking for hardware. I would have a backup mirror system or two, fully test run.

Defragging occasionally does no harm and can help performance.

As a matter of interest, where are you based? I am in Hammersmith, West London.

Good Luck - Keep us posted.

Report •

July 25, 2011 at 17:09:34
thanks guys, think i will get someone in and ghost my drive first and keep my hdd safe and use the ghost one to work on
thanks again

Report •

Ask Question