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
1
vote
3 answers

Find current diskpart volume number in .bat

Using a .bat script on an USB drive I'd like to change it's drive letter without using 3rd party software and any requirements on the system where the USB is plugged in except that it's Windows XP or higher. To get the current drive letter I…
RapidFireArts
  • 83
  • 1
  • 11
1
vote
1 answer

What does IOCTL_DISK_VERIFY do?

The documentation for IOCTL_DISK_VERIFY says: Verifies the specified extent on a fixed disk. But what does that mean? When and why do I need to do this?
Felix Dombek
  • 13,664
  • 17
  • 79
  • 131
1
vote
1 answer

Confusion about GUID Partition Table specification

I am writing software to utilize and manipulate GUID Partition Tables (GPT). I've been using a number of references, but in looking through the UEFI standards document concerning GUID Partition Tables, a number of questions have come up. On page…
Daniel Rudy
  • 1,411
  • 12
  • 23
1
vote
1 answer

How to use file as a negative mask for reading another file, in Perl?

I want to extract only the junk data from the free space of a raw partition image (EXT4). So I got this idea, to zero out the free space and then to use the result as a mask. I have raw partition image (14GB) containing data and free space and the…
Nick
  • 331
  • 3
  • 14
1
vote
0 answers

How to get all unallocated spaces from extended partition via WMI?

I'm trying to get all unallocated spaces (as a list of pairs) on a disk. Everything is good as far there aren't any extended partitions on the disk - I just list Win32_DiskPartitions associated with the selected Win32_DiskDrive and…
Grisha S
  • 818
  • 1
  • 6
  • 15
1
vote
2 answers

Get boot partition drive name

I need to get the boot partition's DRIVE NAME from a bat script. I get the boot partition number with the reagentc.exe /info as follows: Windows RE location: \\?\GLOBALROOT\device\harddisk0\partition1\Recovery\WindowsRE but I need the Drive…
ViV
  • 1,998
  • 8
  • 27
  • 54
1
vote
1 answer

a perl script faster than rsync for images and partitions, that produces two-way diffs

sysadmin1138 and Martin have reported a replacement for rsync that works on block devices (partitions). It is based on perl, but I want to store two-way diffs. It applies changes in a block device to a preexisting outdated backup image. This is the…
user2987828
  • 1,116
  • 1
  • 10
  • 33
1
vote
1 answer

Random value for disk Signature

As part of a machine identification system, I'm looking for the Signature of the Win32_DiskDrive. On two customer's machines now, I've seen this field have a random value. I assume that is due to not having checked the HRESULT in the shipped…
Thomas
  • 3,348
  • 4
  • 35
  • 49
1
vote
1 answer

Need to get name (DeviceID) of System Reserved partition

I need to return the DeviceID of the System Reserved partition. I should be able to do this with the Win32_Volume class by first getting the Label property, and if it matches "System Reserved" then get the DeviceID property. The following code…
Jimmy D
  • 5,282
  • 16
  • 54
  • 70
1
vote
1 answer

How to use winapi classes?

am trying to create a project that create a file, formatting it, create a new partition and mount it, dismount it ... in C++ with Qtcretor I found that winapi offer several function help me to do that Format method of the Win32_Volume class and…
Oumaya
  • 655
  • 4
  • 18
  • 43
1
vote
2 answers

Bash script skip mounting Extended partition

I created the following script, but it hangs if there are extended partitions on the system. Mount tries to mount the extended partition witch of course does not work. How do I remove a partition from the loop if a partition is extended??? for i…
wjp79
  • 149
  • 6
1
vote
1 answer

Is this possible to create a partition which be accessible but invisible by TrueCrypt and C#?

I have a folder in CD/DVD and want to make its contents invisible, accessible and encrypted. So I decide to use TrueCrypt for making that folder as encrypted hidden volume.But with this method , user can see new volume contents after it mounted. So…
0
votes
1 answer

Set boot volume with apple script - Mac

I have two partitions on my mac: Mac OS X and Windows 7. I constantly switch between them so I started looking for a way to restart automatically into the other partition (without having to press Alt on restart). For Windows it is easy because the…
Alex
  • 5,009
  • 3
  • 39
  • 73
0
votes
0 answers

fdisk shows partitions type Linux and dos on the same partitions

I have created a partition on my disk like this: root@vps-90446fc7:~# fdisk /dev/sdb Welcome to fdisk (util-linux 2.37.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m…
fguillen
  • 36,125
  • 23
  • 149
  • 210
0
votes
0 answers

libguestfs: error: mount_local: unknown option 1881168272

I am trying to write a sample program using guestfs api to mount a disk image file lets say disk.img in my linux machine (RHEL 8x). I want to mount the filesytems in guestfs kernal and then mount the guestfs filesystem to my local machine mount…