disk-partitioning

Random value for disk Signature [closed]

烂漫一生 提交于 2019-12-08 05:46:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . 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 code. What would cause a machine to not have a valid signature? WQL

How to run docker LXC containers on another partition? [closed]

非 Y 不嫁゛ 提交于 2019-12-07 03:54:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . My system has two partitions: 5G main partition where Ubuntu is installed 100G side partition at /mnt/eda that I'd like to use for Docker container runs I need to start multiple Docker containers that will take up >10G additional disk space after they're launched. I want them to use disk space form /mnt/eda ,

How to run docker LXC containers on another partition? [closed]

折月煮酒 提交于 2019-12-05 06:01:24
My system has two partitions: 5G main partition where Ubuntu is installed 100G side partition at /mnt/eda that I'd like to use for Docker container runs I need to start multiple Docker containers that will take up >10G additional disk space after they're launched. I want them to use disk space form /mnt/eda , but how do I do that? Currently, whenever I import or run a container, space from my main partition is taken up. I tried downloading the binary and starting it from the side partition, but space from main partition was still being used up. I can't attach/mount drives to my containers --

Linux c++: apis vs /proc files?

时间秒杀一切 提交于 2019-12-04 18:15:02
问题 Im working on an app to collect and send various bits of system info (partition space/free, laptop battery info, etc). Im not having much success getting this information in the form of direct c++ api.. though its all available via files in /proc (or similar). So - I'm wondering whether reading/parsing these files in my c++ app is the appropriate way to get this info or should I keep trying to discover APIs? ( NOTE: I am working with statvfs ). So far it looks like it's easier to gather this

How to access hidden partitions/volumes

心不动则不痛 提交于 2019-12-04 16:33:25
I have to write a code to access hidden disk partitions/volumes using c# or c++. But could not find any help reference on the matter. As a hidden volume, it does not contain a "Disk Letter", so you can´t just type "C:\" and access it. A example would be the "recovery partition" that comes with Windows. You can´t see it on explorer but it is there. My application will write and read data from thoose partitions and I have to find a way of doing something like "c:\" for thoose. In the above image, volumes 5 and 6 are hidden partitions. I have found this link on stackoverflow but it only "list" de

Get size of volume on Windows

社会主义新天地 提交于 2019-12-04 12:51:26
问题 I'm writing a library to extract information about physical disks, partitions, and volumes on a Windows system (XP or later). I'm trying to get the capacity of a volume. Here are the approaches I know about and the reason each fails: GetDiskFreeSpaceEx -- Affected by user quota. IOCTL_DISK_GET_DRIVE_GEOMETRY_EX -- Gets size of entire physical disk, even when invoked using a volume handle. IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS -- Doesn't account for RAID overhead. IOCTL_DISK_GET_LENGTH_INFO --

Create/delete disk partitions via WMI

我怕爱的太早我们不能终老 提交于 2019-12-04 04:20:11
问题 there is a way to create/delete disk partitions via WMI ? I'm already able to mount/unmount virtual disks (vhd) and list their partitions. 回答1: As far as I know, there is no way to create/delete partitions in WMI. You may want to look into the Shell Functions 来源: https://stackoverflow.com/questions/2456768/create-delete-disk-partitions-via-wmi

Obtain a list of partitions on Windows

空扰寡人 提交于 2019-12-03 12:40:26
问题 Goal I'm porting a filesystem to Windows, and am writing a more Windows-like interface for the mounter executable. Part of this process is letting the user locate a partition and pick a drive letter. Ultimately the choice of partition has to result in something I can open using CreateFile() , open() , fopen() or similar. Leads Windows seems to revolve around the concept of volumes, which don't seem quite analogous to disks, and only occur for already mounted filesystems. Promising leads I've

Linux c++: apis vs /proc files?

非 Y 不嫁゛ 提交于 2019-12-03 11:53:27
Im working on an app to collect and send various bits of system info (partition space/free, laptop battery info, etc). Im not having much success getting this information in the form of direct c++ api.. though its all available via files in /proc (or similar). So - I'm wondering whether reading/parsing these files in my c++ app is the appropriate way to get this info or should I keep trying to discover APIs? ( NOTE: I am working with statvfs ). So far it looks like it's easier to gather this sort of info in Win32. Seems strange. It is best practice by far to stick with an API in the following

Get size of volume on Windows

大兔子大兔子 提交于 2019-12-03 08:23:10
I'm writing a library to extract information about physical disks, partitions, and volumes on a Windows system (XP or later). I'm trying to get the capacity of a volume. Here are the approaches I know about and the reason each fails: GetDiskFreeSpaceEx -- Affected by user quota. IOCTL_DISK_GET_DRIVE_GEOMETRY_EX -- Gets size of entire physical disk, even when invoked using a volume handle. IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS -- Doesn't account for RAID overhead. IOCTL_DISK_GET_LENGTH_INFO -- Fails with access denied. (Actually, it requires GENERIC_READ access, unlike all other queries, and