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
3
votes
1 answer

Create/delete disk partitions via WMI

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.
Marco
  • 65
  • 6
3
votes
3 answers

Disk partition structure

Is there any way in Java (1.6+) to retrieve the partition disk structure? (For example: NTFS, FAT32, HFS+, or EXT3.) External libraries are permitted. Thanks, Gianni
Gianni
  • 265
  • 5
  • 13
3
votes
10 answers

What is the best way to partition terabyte drive in a linux development machine?

I have a new 1 TB drive coming in tomorrow. What is the best way to divide this space for a development workstation? The biggest problem I think I'm going to have is that some partitions (probably /usr) will become to small after a bit of use. Other…
Peter Stuifzand
  • 5,084
  • 1
  • 23
  • 28
3
votes
2 answers

Get partition and volume information

Is there a way to get disk partition and volume information using Java libraries only? I also need deleted file information. Disk is formatted as a FAT-16 and has standard MBR. I need the following information: a) Partition information - Display the…
Scadge
  • 9,380
  • 3
  • 30
  • 39
2
votes
0 answers

How to create partition on hdd using IOCTL_DISK_SET_DRIVE_LAYOUT on C#

I need to implement an hdd partitioning program using c#. Below is part of my code. I think it works because it returns true value from DeviceIOcontrol with no errors, but the problem is my program doesn't show anything. I got a lot of help from…
mahassukha
  • 29
  • 1
  • 2
2
votes
1 answer

Linux Read Only Partition's data changes

I have a read only partition who's data is changing. The change occurs on the first mount only. Subsequent mounts do not change the partition data. Tried with ext3 and ext2 incase journalling was an issue ... no help. Tried tune2fs with -c -1 -i 0…
lostdev
  • 736
  • 8
  • 23
2
votes
2 answers

USB Memory Stick hidden partition

I am writing a kind of accounting software which will run portable on a USB Memory Stick. I would like to make a hidden partition on the Stick to store some data to check the validity of the database file on the main partition. Currently I don't…
VOX
  • 2,883
  • 2
  • 33
  • 43
2
votes
1 answer

mkfs.vfat: unable to open {partition}: No such file or directory (command succeeds, but throws this error and blocks rest of script)

Update: I got this working but am still not 100% sure why. I've appended the fully and consistently working script to the end for reference. I'm trying to script a series of disk partition commands using sgdisk and mkfs.vfat. I'm working from a…
bgibson
  • 17,379
  • 8
  • 29
  • 45
2
votes
0 answers

How to get Partition Names on a PhysicalDrive?

I am trying to get the names of partitions residing on a PhysicalDrive. I can't find any Win32 API function to do this. I've tried every IOCTL I could find but none gave any useful results. I can open each PhysicalDrive sucessfully but don't know…
DontPanic
  • 2,164
  • 5
  • 29
  • 56
2
votes
3 answers

Is it possible to resize MTD partitions at runtime?

I have a very specific need: to partially replace the content of a flash and to move MTD partition boundaries. Current map is: u-boot 0x000000 0x040000 u-boot-env 0x040000 0x010000 kernel 0x050000 0x230000 initrd 0x280000…
ZioByte
  • 2,690
  • 1
  • 32
  • 68
2
votes
2 answers

Concatenating SQL select statements with in operator for ASM Disk Groups

Apologies if this is a stupid question but I can't get my head around this. I often get request from client to drop few disks from Diskgroup. So In this process - I want to generate a dynamic sql from v$asm_disk, v$asm_diskgroup. SQL: select d.path,…
sarat
  • 41
  • 6
2
votes
0 answers

Function for formatting a partition or returning a partition type

Is there an API function for formatting a partition ? Or for returning the partition type of an already formatted partition ? I want to be able to programatically format the single partition of a thumb drive. If the thumb drive is already formatted…
Edward Diener
  • 97
  • 1
  • 2
2
votes
1 answer

DISKPART vs PowerShell Get-Volume

In DISKPART.EXE, I get the info when multiple mount points are assigned to a volume. In the picture we see that Drive G: can also be accessed using D:\SQL\MSSQL13.MSSQLSERVER\DATA\ or D:\BlaBla: But I can't find the same info using PowerShell's…
PollusB
  • 1,726
  • 2
  • 22
  • 31
2
votes
1 answer

How do open a partition in Windows a la Linux style /dev/sdXY?

How do open a partition in Windows a la Linux style /dev/sdXY? Currently I'm opening \\\\.\\PhysicalDrive%d then calling DeviceIoControl(IOCTL_DISK_GET_DRIVE_LAYOUT, ...) to get the partition layouts, and storing the offset and size of the region…
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
2
votes
1 answer

How can I detect errors in diskpart when using a pipe?

I am trying to eliminate the temporary script file (i.e. diskpart /s scriptFile) used to automate diskpart by replacing it with commands issued via a pipe, however I can't seem to figure out how to detect when diskpart throws an error. If you have a…
motech man
  • 51
  • 3
1 2
3
10 11