Questions tagged [disk-partitioning]

related to disk partitions and their attributes, creation and maintenance.

disk partitioning covers questions relating to disk partitions and their attributes, creation and maintenance.

Wikipedia - Disk Partitioning

153 questions
0
votes
1 answer

Volumes - Difference between WMI Query and Diskpart

So while digging into an existing script, I noticed there is a difference between how Windows lists partitions and volumes. Can someone explain to me what I am seeing? Is it just the difference between diskpart and WMI? How would linux see…
semtex41
  • 249
  • 1
  • 7
0
votes
1 answer

Better way to execute diskpart commands in loop, in any language?

I have 100 disks which I have to make online. I tried the below perl code to do the same. foreach (1..100){ open(FILE, ">test.txt"); print FILE ("select disk $_\nonline disk"); close FILE; system("diskpart.exe /s test.txt"); } My…
Subhash
  • 568
  • 1
  • 5
  • 21
0
votes
0 answers

MFC disk partitioning

I want to get the hard disk partitions,their individual storage capacity and used space. Then display it in some control(List control would be better). I am using MFC to do this. I have searched online and managed to pull of the partitions. But I…
0
votes
1 answer

How to get Hidden Partitions in the Harddisk in VC++?

How to get Hidden Partitions in the Harddisk in VC++?
Hara
  • 1,467
  • 4
  • 18
  • 35
0
votes
2 answers

Framework for filesystemless SD card parition

(This project would probably on-topic on the SuperUser or Electronics sites, but the focus of this question is programmable software for accomplishing it.) I have an embedded system which produces data at about 100KB/s which needs to be stored and…
Ben Voigt
  • 277,958
  • 43
  • 419
  • 720
0
votes
1 answer

Assigning a letter to OEM Partition

I'm trying to do an exact clone of my laptop. There is an OEM partition that I can't assign a letter to. I'm using DISM, which uses the drive letters to know what to capture. I was wondering if there was a way to assign a letter to the OEM…
user2526047
  • 129
  • 3
  • 11
0
votes
1 answer

Programmatically create/delete/wipe disk partition?

Is there any library in the .NET Framework which allows us to create, delete & wipe out disk partition programmatically in .NET? (I am using VB.NET) At the moment the option I'm using is going through dos command 'diskpart', which I feel is not…
Dennis
  • 3,528
  • 4
  • 28
  • 40
0
votes
1 answer

What is the best way to query the volume serial number of a partition without using WMI?

We have a service (runs as the SYSTEM user) which uses WMI to get the volume serial number of the drive Windows is installed. However, we have a client whose WMI security is too restrictive and we cannot query the volume serial number in this…
codewario
  • 19,553
  • 20
  • 90
  • 159
0
votes
1 answer

Qt How can get partition id?

How can I get the partition id in Qt? I'm searching for a good way to keep file directory without the partition name For example, I want to save the directory of a file that is in my flash memory. in my computer maybe it's "Local Disc (F:)", and in…
Amir eas
  • 121
  • 2
  • 10
0
votes
4 answers

Default tmp location

How to change default tmp location in Ubuntu? I am using Ubuntu for my applications. I have seen that many APIs store their tmp files in /tmp folder. In my Ubuntu, total space assigned to root is hardly 4 GB. Which is why I have to keep cleaning…
Learn More
  • 1,535
  • 4
  • 29
  • 51
0
votes
2 answers

Methodology to read a virtual disk's MBR

I am trying to build my own C program that basically works just like fdisk vdisk 'p' command. I just want to be able to read in the first 512 bytes of the disk, lseek to the start of the partitions at (0x1BE) and then read the partition type, name,…
Matt Hintzke
  • 7,744
  • 16
  • 55
  • 113
0
votes
1 answer

Creating new partition disk winapi

I'am trying to create new partition and mount a volume to this new, I thought that CreateFile let me do this, with this code : LPCTSTR lpFileName=L"\\\\.\\Device\\Harddisk0\\Partition3"; HANDLE handl=CreateFile( lpFileName, …
Oumaya
  • 655
  • 4
  • 18
  • 43
0
votes
1 answer

How to get the hard disk partition information QT

I'm trying to get system information in a QT project, I want to know the hard disk partition in Windows and the different properties of each partition. Here is my code: QString drivename=QString(FileInfo.absolutePath().at(0))+":\\\\"; …
Oumaya
  • 655
  • 4
  • 18
  • 43
-1
votes
1 answer

Recover data deleted by diskpart

After accidentally deleting all data on my disk using "clean" on diskpart, my HDD is now empty. I've searched and used some recovery data apps, one of them is EaseUS. After scanning hours, it shows up exactly all data I lost but requiring fee to…
hhhhh
  • 33
  • 5
-1
votes
1 answer

map 1 iscsi disk to see two hosts I throw files to one machine, the other doesn't have to reboot the machine. will see

I map 1 iscsi disk to see two hosts, what else do I need to set? For linux, now all I can do is see both disks the same, but when I throw files to one machine, the other doesn't have to reboot the machine. will see
box
  • 1
  • 1