OS2World OLD-STATIC-BACKUP Forum

OS/2 - Technical => Storage => Topic started by: GSM on 2009.07.22, 04:31:10

Title: Partition size using command line
Post by: GSM on 2009.07.22, 04:31:10
Hi all,
How to know the size of partion using os/2 commands in commandline?
Title: Re: Partition size using command line
Post by: Andi on 2009.07.22, 11:49:19
chkdsk
Title: Re: Partition size using command line
Post by: RobertM on 2009.07.22, 22:22:58
Quote from: Andi on 2009.07.22, 11:49:19
chkdsk

Hi GSM,

In particular, you should use:

chkdsk <DRIVE:> /f:0

That will do no repairs and just report information regarding the partition. Another option is chkdsk <DRIVE:> /c which will only repair the partition if it is damaged.

More info on chkdsk can be found by going to an OS/2 Command Prompt and typing "chkdsk /help


And of course, a simple REXX script will also accomplish what you want without the overhead.

Rob