home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
hrdchk.zip
/
HRDCHK.TXT
< prev
Wrap
Text File
|
1993-06-25
|
15KB
|
396 lines
June 25, 1993
Hard Check 1.01 for
Stacker for OS/2 & DOS
Copyright 1993 Jesse F. Knecht.
All rights reserved.
Produced by QHS.
This info is for those who have compressed their OS/2 boot partition(s).
Is it time to run CHKDSK /F on your compressed OS/2 drive(s)? Ready for the
floppy shuffle? Why Not??!!!
There's a fairly easy way to boot your hard drive to run CHKDSK /F or other
utilities without repartitioning by FDISK. This procedure is suitable for
applying those OS/2 fixes that IBM says to boot from floppy to install.
Hard Check is a Procedure which allows one to boot an uncompressed hard drive
area and run OS/2 utilities on a Stacker for OS/2 & DOS compressed boot drive.
If you have been using a separate partition to run OS/2 utilities you can
reclaim that space. You may very rarely need to boot from floppy to run
CHKDSK /F on the non-compressed drive. See the Reclaiming CHKDSK Space
section for more info..
When you installed Stacker For OS/2 & DOS a several meg non-compressed area
was set aside and the rest of the area(s) you selected were compressed. This
non-compressed area contains almost everything needed to boot an OS/2 session.
By adding a couple files and the right CONFIG.SYS you can boot the
non-compressed area to run CHKDSK /F on everything else! What a time saver!
Note: Hard Check is not meant to replace having bootable floppy disks, but
for routine OS/2 utility you can't beat doing it from your hard drive.
There are 4 files which make up Hard Check (HRDCHK.ZIP):
1) HRDCHK.TXT This File
2) CH2CHK.CMD Command File
3) CHK.CFG Prototype CONFIG.SYS
4) CHKDONE.CMD Command File
This version of Hard Check requires Stacker for OS/2 & DOS and OS/2 2.x.
It may be used with Boot Manager, Dual Boot, or with OS/2 2.x as the
only operating system.
Before I get into use of the above, a little legal stuff.
******************************************************************************
Stac Electronics, Stac & Stacker are registered trademarks of Stac Electronics
OS/2 is a trademark of IBM Corporation
QHS is a service mark of Jesse F. Knecht
All other product names are trademarks or registered trademarks of their
respective owners.
There is No Warranty of any type whatsoever on Hard Check. Use this
information at your own risk.
Hard Check was developed by the author and not Stac Electronics. Hard Check
is not supported by Stac Electronics.
If you encounter difficulties using Hard Check please contact the author at
locations listed below.
Information contained in Hard Check is subject to change without notice.
No information contained herein may be modified in any way except by the
author or with written permission from the author.
Hard Check may not be packaged or distributed with any other product without
written permission from the author.
Hard Check is Shareware. A limited license to use the information contained
in this package is granted for seven days. In reality one day testing should
be adequate to determine usefullness. Use beyond the seven day trial period
requires registration.
A limited license is granted to copy and distribute Hard Check only for the
trial use of others, subject to the above limitations, and also the following:
1)Hard Check must be copied in unmodified form, complete
with the file containing this license information.
2)The full machine-readable Hard Check documentation
must be included with each copy.
3)Hard Check may not be distributed in conjunction with
any other product without specific permission from QHS,Inc.
and the author.
4)No fee, charge, or other compensation may be requested or
accepted, except as authorized below:
A) Operators of electronic bulletin board systems (sysops)
may make Hard Check available for downloading only as long
as the above conditions are met. An overall or time-dependent
charge for the use of the bulletin board system is permitted
as long as there is not a specific charge for the downloading
of Hard Check. Should the BBS wish to charge for Hard Check,
a special agreement will be needed. Contact QHS for more info.
B) Vendors of user-supported or shareware software may
distribute Hard Check subject to the above conditions, without
specific permission. Vendors may charge a disk duplication
and handling fee, which, when pro-rated to Hard Check, may
not exceed seven dollars.
C) Non-profit user groups may distribute Hard Check,
subject to the above conditions, without specific permission.
Non-profit user groups may charge a disk duplication and
handling fee, which, when pro-rated to Hard Check,
may not exceed seven dollars.
The registration fee is $2.00 per computer containing drive(s) with areas
compressed by Stacker for OS/2 & DOS.
Fees in the form of check or money order should be sent to the below postal
mailing address. See the Registration Form at the end of this file.
The author may be reached at:
Jesse F. Knecht
QHS, Inc.
P.O. Box 8692
Metairie, LA 70011
CompuServe: 70400,600
America Online: JFK RN
All comments & suggestions are welcome.
******************************************************************************
Please have a current system backup before using this information.
At least have ALL your autoexec.bat, config.sys and startup.cmd safely on
floppy as these are the files to be manipulated.
The use instructions are divided into 3 sectons: OS/2 Only, Boot Manager, and
Dual Boot. There are a few steps common to the 3 sections which will be
addressed first.
When you compressed the your OS/2 boot drive with Stacker it set aside a
non-compressed area to initiate the boot up then compressed whatever
disk space you told it to, probably the rest of the drive.
Stacker copied a number of files to this area but also left room for others.
The files in the non-compressed are what get the system going when you boot,
then the Stacker drivers kick in and tell the system that the compressed area
is one drive and the non-compressed is another.
In order to run CHKDSK with the /F switch on your OS/2 boot partition you've
needed to boot from floppy which is a slooooww process or you set aside
additional disk space for booting OS/2 just to run CHKDSK /F.
In the following sections <Drive> refers to the non-compressed area set aside
by Stacker; <CompDrive> refers to the compressed boot drive created by Stacker.
Setup--
Boot OS/2, open a DOS prompt window then:
1) Copy <CompDrive>:\os2\cmd.exe to <Drive>:\os2
2) Copy <CompDrive>:\os2\chkdsk.com to <Drive>:\os2
3) Place the included ch2chk.cmd in the \os2 directory of <CompDrive>.
4) Place the included chk.cfg in the Root directory of <Drive>
5) Place the included chkdone.cmd in the \os2 directory of <CompDrive>.
6) Change to the Root directory of <Drive>
7) Enter: config /c=<Drive>:\chk.cfg
then answer Y(es) when prompted if ok to add lines. You will need to use
the /d= switch with config if you did a Custom install of Stacker for OS/2
& DOS and used a directory other than \stacker\os2. Note the lines added;
they'll probably be at the top of the chk.cfg file.
8) Open <Drive>:\chk.cfg with a plain text editor and REM or delete all lines
added Except the first line; usually REM lines 2, 3, and 4. The goal is
to make CHK.CFG aware of the compressed drive(s) but Not swap or sync on
boot up. No files on <CompDrive> should be accessed. Be sure the correct
Stacker directory is specified on the top line of CHK.CFG.
Also check the BASEDEV= lines. The included chk.cfg is written for IBM
compatables in the U.S. If you have a real IBM you'll need to use the
BASEDEV= statements from your config.sys that pertain to IBM hardware.
If you use a non-U.S. setup you'll need to edit the CODEPAGE= and
COUNTRY= lines.
If you have HPFS drives you also want to access then copy the line from
your config.sys which supports HPFS to chk.cfg. It should look
something like:
IFS=<CompDrive>:\os2\hpfs.ifs
There may be a couple of differences depending on your hardware; SCSI vs. IDE,
IBM vs. Clone, but should be essentially the same.
Please skip to the heading which fits your setup.
** OS/2 Only **
In an OS/2 only setup OS/2 is the Only operating system on the computer and
boots from your C drive. In an OS/2 Only system you have a small chance of
lost EA's (no true DOS to screw them up).
Lets begin with the simplest setup. You started with one large C drive and
compressed it leaving space for swapper.dat; there is an A and B floppy.
To use Hard Check:
1) Configure as noted in the Setup section.
2) Boot OS/2.
3) Open an OS/2 prompt window.
4) Change to the Root directory of <Drive> which should be D.
5) From the command line enter: ch2chk
to CHange 2 the CHK(dsk) configuration.
6) Shutdown and reboot.
The system loads to an OS/2 prompt on uncompressed C. No drive letters have
been swapped. You should be at C:\> with the system aware of a compressed D.
Notice the 4th line on text the first screen after the OS/2 bootup logos.
It should read like:
D: = C:STACVOL.DSK
D: is the compressed drive which has not been swapped.
You may now run CHKDSK D: /F
When finished with checking your drive(s):
7) Be sure you're in the Root directory of C.
8) From the command line enter: chkdone
CHK(dsk) is DONE.
When you reboot you'll be back to a full OS/2 setup.
Another possibility is you started with OS/2 on C and data on D, both
compressed. The use is essentially the same. You'll still boot to
C:\> but will be able to run CHKDSK D: /F and CHKDSK E: /F.
** Boot Manager **
In a Boot Manager setup OS/2 2.x may not be the Only operating system on the
computer. In a Boot Manager system where you sometimes boot DOS you have an
increased chance of lost EA's.
To use Hard Check:
1) Configure as noted in the Setup section.
2) Boot OS/2.
3) Open an OS/2 prompt window.
4) Change to the Root directory of <Drive>
5) From the command line enter: ch2chk
to CHange 2 the CHK(dsk) configuration.
6) Shutdown and REBOOT the SAME PARTITION
The system loads to an OS/2 prompt on <Drive>. No drive letters have been
swapped. You should be at <Drive>:\> with the system aware of any compressed
drive(s). Notice the 4th line on text the first screen after the OS/2 bootup
logos. It should read like:
E: = D:STACVOL.DSK
E: is the compressed drive that has not been swapped.
You may now run CHKDSK <CompDrive>: /F
When finished with checking your drive(s):
7) Be sure you're in the Root directory of <Drive>.
8) From the command line enter: chkdone
CHK(dsk) is DONE.
When you reboot you'll be back to a full OS/2 setup.
** Dual Boot **
In many ways a Dual Boot setup is like an OS/2 only setup, however,
in a Dual Boot setup OS/2 2.x is not the Only operating system on your C
drive. There is usually some DOS version on C drive along with OS/2.
Sometimes you boot DOS, sometimes you boot OS/2. You have an increased
chance of lost EA's when you boot DOS.
OS/2 must be the current operating system.
To use Hard Check:
1) Configure as noted in the Setup section.
2) Boot OS/2.
3) Open an OS/2 prompt window.
4) Change to the Root directory of <Drive>
5) From the command line enter: ch2chk
to CHange 2 the CHK(dsk) configuration.
6) Shutdown and reboot OS/2.
The system loads to an OS/2 prompt on <Drive>. No drive letters have been
swapped. You should be at <Drive>:\> with the system aware of any compressed
drive(s). You may now run CHKDSK <CompDrive>: /F
When finished with checking your drive(s):
7) Be sure you're in the Root directory of <Drive>.
8) From the command line enter: chkdone
CHK(dsk) is DONE.
When you reboot you'll be back to a full OS/2 setup.
** Reclaiming CHKDSK Space **
This section is for those who had already created a hard drive partition to
use for running CHKDSK /F.
You don't need TWO partitions to run CHKDSK from. Using the procedures above
you'll be able to reclaim that disk space and compress it if you like. You've
been using Boot Manager to switch OS/2 partitions so use the Boot Manager
section above.
Implement the instructions in the Boot Manager section. Try it a few times.
When you're ready you can reformat your old CHKDSK partition and use it for
regular data or make it another compressed drive (or FDISK and combine the
space with another partition to make a larger drive).
****************************** Registration Form *****************************
Name: _____________________________________________________________
Company: __________________________________________________________
Address: __________________________________________________________
City: _______________________________ State: ________ Zip: ________
Phone: (_____)___________________ Country: ________________________
CompuServe Address: _______________________________________________
America Online: ___________________________________________________
Do You Have A Modem? Yes No
Did You Download Hard Check? Yes No
If Downloaded, From Where? ________________________________________
If Not CompuServe or America Online; Name, Phone, & Settings Please.
_____ Hard Check(s) at $2.00 ea.: _________.___
Please enclose check or money order (cash at your risk) in U.S. funds
payable to QHS,Inc. There is a $10.00 service charge on items
"returned unpaid by the bank." Sorry, no purchase orders or credit cards.
Send to: QHS, Inc.
P.O. Box 8692
Metairie, LA 70011
Suggestions ___________________________________________________________
&
Comments: ___________________________________________________________
___________________________________________________________
___________________________________________________________
Thank You..............Jesse <Team OS/2>