Solved

Windows 95 defragmentation (for FIPS)

Posted on 1997-09-16
8
233 Views
Last Modified: 2013-12-15
I want to split my hard disk between Win95 and Redhat
Linux.  The only defragmentation program that I have
is what comes with Win95 and it does not seem to
move all the hidden files.  Win95 tells me that I have
950M available on my hard disk and that the disk is 0% fragmented (because I just ran the defragmenter).
But, fips will only give me 350M in a new partition.

The fips document suggests using dir /a:h /s and
dir /a:s /s but "dir /a:h /s" generates a huge list
of files and I can't figure out how to delete them
either.  (del does not find them somehow.)

Thanks,
  Ken
0
Comment
Question by:klopter
  • 5
  • 3
8 Comments
 
LVL 2

Accepted Solution

by:
nicademus earned 70 total points
ID: 1629870
Be careful here, you do not want to delete of move hidden files which are placed in exact spots on the drive.  You should be safe to do it though, on the whole, the way to list those hidden files is as you had said, but to change the attributes in DOS you use the command "attrib" if you are unsure about what I say here, just do help attrib to get a bit clearer picture.

you do attrib to get a list of the attributes on files, to change them you just do attrib -H -S -R {filename} or something similar to change the attributes, then you don't have to actually delete them to get that space free, just Defragment the files again, and see what happens, you may have to keep doing it a couple of times,  BUT make sure you take a note of which files were hidden, system, read-only, etc.  So that once you have defraged the disk you can re-attrib them with  attrib +H +R +S {filename}
WARNING:  DO not change the attributes of the following files...
io.sys
msdos.sys
command.com
or any hidden/system/files in the root directory, only do this if they are not a part of the operating system.
It is safe to re-attribute the system.dat and system.da0 and user.dat and user.da0 files in the c:\windows directory.  For the most part I have found these are actually usually the cause of this problem, because everytim you open windows successfully it updates the .dat files, and makes a backup, the .da0 files.

So try that and get back...


Nica.
0
 

Author Comment

by:klopter
ID: 1629871
Thanks, that worked.  But, I'd still like to know what I did.
I finally found attrib in C:/windows/command and used it
as you instructed (-h -r -s) on user.dat, user.da0, system.dat and system.da0.  I defrag'd my disk again (within Windows95),
exited Win95 and ran fips.  

This time, fips gave me 600Mbytes to play with.  (According to
Win95, I have 900Mb free, but 600 suits my needs, so I
chose to proceed.)  I set aside 500 Mbytes, intending to
break off another 100 Mbytes later.  fips did not allow me
to break off another 100 Mbytes because it said that my
last sector wasn't empty (or something like that).

So, I am now down to 500 Mbytes.  But, that is still wnough
so I  have proceeded.

Any ideas why "help attrib" did not work for me?

I did not remember to restore the attributes to user.dat
and system.dat.  Is this why my Windows 95 setup has changed?
I frankly don't care much about my Win95 setup.  All I need
Win95 for is Quicken and games.  But,I am curious.

Thanks again,
  Ken

0
 
LVL 2

Expert Comment

by:nicademus
ID: 1629872
I'll get back to you in a little while, I gotta go to the bank, I have a couple of things to say reagrding your further questions...
0
 
LVL 2

Expert Comment

by:nicademus
ID: 1629873
Ken,
      all setups of windows are different, I always go custom, and add so many different things to my COnfig.sys, Autoexec.bat, etc so that my path, and sch, points to things like the help file.  Anyway don't worry too much about not seeing the help on attrib.
      By only having 600Mb it means that you still have a hidden file or two sitting at the end of the logical disk structure, which muct be moved to the beginning, or close thereof.  It is rather labour intensive unless you have a program which can display for you what is on the disk and where, such as Norton Speedisk, where you can do a walk of the drive and where you see the XXXX sectors (XXXX meaning h,s or r) and say.."O.k. I know it is that file I can attrib it" then you would defrag again.
      A handy hint is to do the attribing from within a dos prompt, then defrag, then re-attrib, because as I said Windows re-writes to the System.dat, etc. constantly.  By the way in what way did your Windows setup change?

What you have to do with FIPS is break the partitions in two. it is used for splitting not creating partitions.  You got the error because you have data at the end sector of that first partition.

So you have to split and get the whole 600Mb (or 900mb if you get more hidden files to move) then using a partition program, such as fdisk, or Linux fdisk  you would delete that new 600mb/900mb partition, and create two new ones.
You see with hard-drive partitioning, unless you are very neat and tidy with what you are doing, and know EXACTLY what you are doing, things have to be done there and then, not later.  Also make sure you make the backup of the P/table that FIPS offers, and keep it very safe.


Nica...
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 2

Expert Comment

by:nicademus
ID: 1629874
By the way Ken, does that mean You've chosen to award me the points?  'cause I was just thinking of asking for some more to go with my follow up, if you wouldn't mind.  =)
0
 

Author Comment

by:klopter
ID: 1629875
Thanks for the information.  Everything is working nicely for me
now.  I did not mention that I have a second disk on which I
had previosuly installed Slackware.  It turns out that Redhat
is happy to mount the Slackware disk so I have no shortage of
disk space.

I am still not exactly sure what I would have done to get more of
the 900 Mb.  Buying Norton speed disk is a hassle and expense
for just one task.  I guess that is what I would have had to
do (or give up on fips and do a destructive disk partitioning)
if you hadn't been able to tell me which files to attrib.

The only reason that I kept going back to Windows 95 to do the
defrag is because that is the only way I knew how to do it.

My windows setup used to have the START bar on the right hand
side of the screen.  I never intentionally put it there,
but some set of key strokes put it there and I never botherd
to put it back.

Ken  (stanley@cs.berkeley.edu)

"Windows 95 is a chauffered limousine to a wonderful destination
of Bill's choosing.  Linux is a beatup VW, but at least I
get my hands on the wheel."
0
 

Author Comment

by:klopter
ID: 1629876
Nicademus.  I tried to add 50 points to the points for this
question.  (I put 125 in the increase points to box)
But, it apparently did not happen.  If you can
initiate this from your end, I'll OK it.

Ken
0
 
LVL 2

Expert Comment

by:nicademus
ID: 1629877
It's O.k. Ken I got the points, thanks.  I hope you have some fun with Linux, I know I do, it's a brilliant OS.  


Nica..
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now