Articles

Solved list available partitions under DOS

June 19, 2007 at 22:16:33
Specs: DOS 7.0, 1800XP+

Is there any tools/programs to list what partitions (including non DOS) partitions are on a hard drive?

For example, lets say I have a drive with two FAT32 partitions, a NTFS partition and an EXT3 partition. I need a program to identify the partition signatures like on this page:
http://www.win.tue.nl/~aeb/partitio...

I don't think this is possible, but it would help me out greatly.

Thanks.


See More: list available partitions under DOS

Report •


✔ Best Answer
June 21, 2007 at 15:39:57

This is what I did:

SET NTFS=PRESENT
aefdisk /show | grep "NTFS" > NUL
IF ERRORLEVEL 1 SET NTFS=NOT PRESENT
ECHO NTFS PARTITON IS %NTFS%



#1
June 19, 2007 at 22:26:02

do a search for "ranish partiton manager"
it can identify many different partition types includion ext2
also the fdisk.exe that comes with freedos also can identify the partition type from the partition signature. but performancewise fdisk.exe of freedos is not very satisfactory.
there is also a preogram called aefdisk.exe that can identify some partition types, but i do not know whether it can identify ext2

my signature does not look like this


Report •

#2
June 19, 2007 at 22:32:47

Thanks, I'll look into it. Ideally, I would like to be able to do just issue a command to get a list of partition, but I think that is wishful thinking...

Report •

#3
June 19, 2007 at 23:34:34

aefdisk.exe can do exactly what you want.
i.e. with a single command ("aefdisk /show")
you will get a list of all available partitions in a given hard disk.

my signature does not look like this


Report •

Related Solutions

#4
June 20, 2007 at 04:25:45

fdisk /status



=====================================
If at first you don't succeed, you're about average.

M2



Report •

#5
June 20, 2007 at 05:47:26

fdisk /status will only indicate FAT16,FAT32 and NTFS partitions.
The OP needs a tool that can identify other partition types

my signature does not look like this


Report •

#6
June 20, 2007 at 16:26:57

Thanks for the help guys. One last question...

Lets say I issue the command:
aefdisk /show

Is there anyway to search the output of this (like grep in unix) and save the result in a variable? For example:

Check if NTFS is present:
aefdisk /show | grep "NTFS" > %NTFS%


Report •

#7
June 20, 2007 at 17:43:38

Worked it out. Thanks for your help!

Report •

#8
June 21, 2007 at 02:48:39

Part of the forum process is to state what worked. And what didn't.


=====================================
If at first you don't succeed, you're about average.

M2



Report •

#9
June 21, 2007 at 15:39:57
✔ Best Answer

This is what I did:

SET NTFS=PRESENT
aefdisk /show | grep "NTFS" > NUL
IF ERRORLEVEL 1 SET NTFS=NOT PRESENT
ECHO NTFS PARTITON IS %NTFS%


Report •


Ask Question