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

Mounting a hidden partition in windows using C# or C++ program

I have a FAT32 partition that is hidden. I like to copy files to it from a Windows application implemented in C# or C++. The examples I have seen end up creating a drive in Explorer while the hidden partition is mounted. Is there a way to mount this…
PC Guy
  • 71
  • 6
2
votes
1 answer

Switch a disk containing cloudera hadoop / hdfs / hbase data

we have a Cloudera 5 installation based on one single node on a single server. Before adding 2 additional nodes on the cluster, we want to increase the size of the partition using a fresh new disk. We have the following services installed: yarn…
Zen
  • 382
  • 3
  • 9
2
votes
1 answer

Raw partition access in Windows Vista

Accessing a raw disk partition in Windows Vista requires kernel mode control, as opposed to for instance WinXP where you can access it from user mode. However, I've heard that when it comes to USB flash memory, a partition can still be accessed from…
sharkin
  • 12,162
  • 24
  • 86
  • 122
2
votes
4 answers

Partition a USB stick programmatically under Linux

After deleting the partitions from a USB stick and then re-inserting the disk I see the following from dmesg: [99341.658055] sd 4:0:0:0: [sdb] 15771720 512-byte logical blocks: (8.07 GB/7.52 GiB) [99341.658670] sd 4:0:0:0: [sdb] Write Protect is…
hendry
  • 9,725
  • 18
  • 81
  • 139
2
votes
2 answers

Incorrect Function Call "IOCTL_DISK_GET_DRIVE_LAYOUT_EX"

I am currently trying to write a C++ program to automate retrieving information about the partitions of a sample hard-drive image, the information in question being the number of partitions on the disk and for each partition its start sector, size…
David Ryan
  • 25
  • 1
  • 5
1
vote
3 answers

External Drive Letter - Backup

I am writing a PowerShell script that will back up several folders from my Vista drive to an external USB drive, using robocopy. Windows does not guarantee that it will always assign the same drive letter to the external drive. What is the best way…
mcu
  • 3,302
  • 8
  • 38
  • 64
1
vote
3 answers

How do I read a fedora partition from windows?

Windows recognizes and gives my fedora partition a drive letter, but it shows it as blank. Is there a way to get windows to read ext3 filesystem? Its a Fedora 10 partition.
ryansstack
  • 1,396
  • 1
  • 15
  • 33
1
vote
3 answers

Prevent unauthorised write access to a part of filesystem or partition

Hello all I have some very important system files which I want to protect from accidental deletion even by root user. I can create a new partition for that and mount it with readonly access but the problem is that I want my application which handles…
gaurav
  • 872
  • 2
  • 10
  • 25
1
vote
1 answer

Formatting a disk with ansible filesystem

I use the ansible filesystem module to format the data disks of a newly provisioned database cluster. - name: Format data disk community.general.filesystem: fstype: ext4 dev: /dev/sdc ... But what I want is a way to automatically…
Rabi
  • 147
  • 2
  • 12
1
vote
0 answers

Formatting a disk in macOS programmatically using DiskManagement.framework

I have a task to implement disk formatting functionality in my code. I am against the use of command line wrappers (e.g. diskutil), as they are slow and unreliable. I'm importing this private framework:…
1
vote
1 answer

Resize my btrfs filesystem to add the free unallocated space

I fail to add the unallocated space to "/dev/nvme0n1p6 btrs/,/home" i can't move or resize either of /dev/nvme0n1p5 or /dev/nvme0n1p6
Mat Nouvel
  • 41
  • 5
1
vote
2 answers

Increase filesystem mounted on /home/jupyter in Google Compute Engine

I'm working on a Google Compute Engine instance (through the Notebook instance in AI Platform). I'm running a disk-intensive job (Neo4J on docker) and I've decided to both increase the root disk and attach another one. When I run df -h, this is what…
1
vote
1 answer

Why fdisk and lsblk show different partition size?

If we see the size of sdb2 is 39.5GB in fdisk whereas 1k in the lsblk output. What can be the reason for this? Disk /dev/sdb: 300 GiB, 322122547200 bytes, 629145600 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512…
1
vote
0 answers

Create partitions on a disk, and put a filesystem on them with C under linux?

I would like to use a C program to create and edit the disk label, and the partitions of block devices. Is this possible in User-space, is there a syscall to do this, or do I need a kernel module in order to do this? I know it's possible by doing it…
xcynthos
  • 49
  • 2
  • 5
1
vote
1 answer

Resizing an EXT4 Partition

I have an Ubuntu 18.04 server in a VM. The VM administrator has allocated more disk space. How do I resize a partition to use that space? My setup is as follows: Device Start End Sectors Size Type /dev/sda1 2048 1050623…
Sean
  • 35
  • 1
  • 7