Computing.Net > Forums > Disk Operating System > list available partitions under DOS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

list available partitions under DOS

Reply to Message Icon

Name: nmv (by AP81)
Date: June 19, 2007 at 22:16:33 Pacific
OS: DOS 7.0
CPU/Ram: 1800XP+
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: abdul_ahad
Date: June 19, 2007 at 22:26:02 Pacific
Reply:

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


0

Response Number 2
Name: nmv (by AP81)
Date: June 19, 2007 at 22:32:47 Pacific
Reply:

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...


0

Response Number 3
Name: abdul_ahad
Date: June 19, 2007 at 23:34:34 Pacific
Reply:

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


0

Response Number 4
Name: Mechanix2Go
Date: June 20, 2007 at 04:25:45 Pacific
Reply:

fdisk /status



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

M2



0

Response Number 5
Name: abdul_ahad
Date: June 20, 2007 at 05:47:26 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: nmv (by AP81)
Date: June 20, 2007 at 16:26:57 Pacific
Reply:

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%


0

Response Number 7
Name: nmv (by AP81)
Date: June 20, 2007 at 17:43:38 Pacific
Reply:

Worked it out. Thanks for your help!


0

Response Number 8
Name: Mechanix2Go
Date: June 21, 2007 at 02:48:39 Pacific
Reply:

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



0

Response Number 9
Name: nmv (by AP81)
Date: June 21, 2007 at 15:39:57 Pacific
Reply:

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%


0

Sponsored Link
Ads by Google
Reply to Message Icon

How to networking MS DOS ... Xcopy in Batch file



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: list available partitions under DOS

partitioning in dos.... www.computing.net/answers/dos/partitioning-in-dos/1106.html

SBPCI128 under DOS www.computing.net/answers/dos/sbpci128-under-dos/15817.html

Sounds would be cool under dos www.computing.net/answers/dos/sounds-would-be-cool-under-dos/5223.html