Jump to content

[TOOL] ListDisk - Detailed Physical Disks Info in CMD


George King

Recommended Posts

ListDisk

This tool provides detailed information about connected physical disks, including their partitions and volumes.

Download

https://github.com/GeorgeK1ng/ListDisk/releases

Features

  • Mounting/unmounting partitions
  • Setting partition labels
  • Modifying MBR partition attributes

Available Commands

  • /mount - Mounts a partition to a specified drive letter.
  • /unmount - Unmounts a specified partition or drive letter.
  • /setlabel - Sets a new label for a specified partition.
  • /setactive - Sets or clears the bootable flag of a partition.
  • /settype - Changes the MBR type of a partition.

Usage Examples

  • /mount 0 1 U - Mounts Partition 1 on Disk 0 as U: drive.
  • /unmount 0 1 - Unmounts Partition 1 on Disk 0.
  • /unmount U - Unmounts U: drive.
  • /setLabel 0 1 Lbl - Sets 'Lbl' as the label for Partition 1 on Disk 0.
  • /setactive 0 1 - Marks Partition 1 on Disk 0 as bootable.
  • /setactive 0 1 80 - Sets the boot flag for Partition 1 on Disk 0.
  • /setactive 0 1 00 - Clears the boot flag for Partition 1 on Disk 0.
  • /settype 0 1 0x17 - Sets Partition 1 on Disk 0 to type NTFS Hidden (0x17).
  • /settype 0 1 0x07 - Sets Partition 1 on Disk 0 to type NTFS (0x07).

Requirements

  • Operating System: Windows XP and newer.
      Note for Windows XP Users: This tool requires the installation of the Microsoft Visual C++ Redistributable. Please install it from this link.
  • Compatible with Windows Preinstallation Environment (WinPE).
  • Place ListDisk in %WinDir%\system32 to make it easy accessible from commandline!

Note: Use this utility with caution. Incorrect usage may affect data integrity.

bcdf04ba-070b-4ec3-846f-9b1a5fcbc8ed
af4299e5-412d-42e5-9cee-b111e785cc1b
b850d681-b6da-4bb3-88a8-29ad4c1fd104
038d9428-523d-4bb7-8e9d-c025e055a25e

Link to comment
Share on other sites


@George King

Thank you ! :P

I will add this program to my (already) big collection of CMD tools.

I'm scripting a lot and new CMD tools are always welcome.

Some news about a possible modern release of Rufus for XP ?

Regards

Edited by genieautravail
Link to comment
Share on other sites

No idea, as you can see Disk 1 is missing in list. If exist on your machine, it will be probably something with that. 
 

Another important thing, I’m not programmer, just enthusiast. I needed tool like this so I managed it in a week with ChatGPT 4… Of course without programing knowledge it wont be possible. 
 

If you detect issue I can try to fix it, like I did with special characters replacement to display them correctly in CMD in systems older than 8.0.

 

Source code is released, so you can always try to investigate. Feel free to fork, improve or fix and push request into main tree. Thats why we have source in public repository :)

Link to comment
Share on other sites

Incredible and impressive! :) :w00t:

Do you have try to code with ChatGPT a modern ACPI driver for XP ?

@Dietmar would be probably very interested.

Joke apart, I'm not a programmer too... :unsure:

Perhaps can you ask to ChatGPT what the error can means ?

Nevertheless, congrats,for your work with ChatGPT! :cool:

I think it would be a good idea to add to the first post of this thread that the main developer is ChatGPT and that the software is release as is it, without support.

@Dave-H

I ask myself if this is the first program coded by ChatGPT to be release on the forum ?

Regards

Edited by genieautravail
Link to comment
Share on other sites

Exactly, ChatGPT is powerful for coding, but you need to know what you want. Be specific, have knowledge. I have succeed only when using ChatGPT 4, If you use free model 3.5 then its full of crap - no working code after many tries. These model are not comparable.

 

Even I ask for solution, I have not faced mentioned issue - that mean I can reproduce and test. 
 

And this tool was not done in simple prompt. I really know what I want. Like give me working code for Visual Studio 2019 in C++ for command line application which will list all connected physical disks with partition details based on XXX structure which will use own structure to store data etc.. And each function was designed using that way..

 

For example I have fully rewritten POWIS from scratch to get Professional look and usability. Currently I have like 6000 lines of code in HTA, CSS, VBS and JS. Everything based on ChatGPT 4 code. But it takes time of course, but really duable :)

Link to comment
Share on other sites

On 4/28/2024 at 4:01 PM, Dietmar said:

@genieautravail

ChatGPT is blind as much as possible in coding.

Nearly nothing is correct, even most easy errors.

BUT: You can use ChatGPT for to get new ideas. The hard way to make them come true, is ALWAYS on you

Dietmar

Hi @Dietmar

Have you tried ChatGPT 4? Or just stick with free model? This whole app was designed by me with exact “prompts”. These models are really not comparable. 
 

I can tell you this. If you think its blind, I don’t really believe.

 

I have spend amount of time to work with free version, Yes, its crap.

 

ChatGPT 4 works much better, 90% of code is compile-able and working code. Depends just on prompt.

Link to comment
Share on other sites

@George King

The issue is specific to two HP laptops.

On a Dell Laptop, no error message, all is OK.

This afternoon, I will test ListDisk on a desktop computer and post the result.

I don't know what is specific to the HP laptops...

Even with only the internal HDD, I get the message:

Screenshot.thumb.jpg.238fac7d72e8e90088742782fa8ff386.jpg

Perhaps one idea, in the devices manager the SD card-reader is with IDE devices, not with USB devices:

Screenshot2.jpg.6f53c6f611806cc40c467d2d1a2f61ae.jpg

Regards

Edited by genieautravail
Link to comment
Share on other sites

Yes, I can confirm that the disk 1 is the Ricoh SD/MMC Disk Device:

Screenshot.thumb.jpg.611371c2f7c28c74b695b9fac2c9377f.jpg

Screenshot2.jpg.b30b74a0c88f1ce362dc12997bbc56ef.jpg

ID of the Ricoh SD/MMC Host Controller : PCI\VEN_1180&DEV_0843&SUBSYS_1521103C&REV_14\4&3A88E1E&0&32F0

Regards

Edited by genieautravail
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...