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

which partition types (00..FE) can be accessed in Windows XP?

In mapping partitions starting from PhysicalDrive I use a code that mounts partitions of a certain type [0, 1, 6, 7, 11, 12, 114]. I want to extend the range for all partitions that can be accessed. I found this:…
John Mirror
  • 193
  • 1
  • 13
0
votes
0 answers

Creating new partition with label in Rust

I'm trying to partition the disk on my Linux machine using Rust. To format and create new partition I'm using sgdisk utility. #[derive(Deserialize, Debug)] pub struct Drives { system: PathBuf, home: Option, } impl Drives { fn…
phodina
  • 1,341
  • 1
  • 12
  • 25
0
votes
0 answers

problems installing packages with npm

i have a problem installing any packages with npm. The console error are. npm WARN rollback Rolling back serve-static@1.13.2 failed (this is probably harmless): ENOTEMPTY: directory not empty, rmdir '/media/moshab97/W -…
0
votes
0 answers

windows API to access partitions on an SD card

Let's say I have an SD card with about 10 partitions on it, some of them ext4 and some of them FAT32. Windows (10) only shows and mounts the first FAT32 partition on the card in the file explorer. If I want to write a tool in C/C++ that mounts the…
b20000
  • 995
  • 1
  • 12
  • 30
0
votes
0 answers

How do you get the numbers of hard disk (not partitions!) on Windows in golang?

This question is different from How can I get a listing of all drives on Windows using golang? I know how get the partitions of hard disk, but what about the numbers of hard disk? I tried using diskpark but don't like it. Is there some native go…
Zander Wong
  • 639
  • 2
  • 8
  • 15
0
votes
1 answer

How to read/write sectors in range 0 - 2048 under Linux?

I have small task to read/write sectors in "free area", this free area between MBR's sector (LBA=0) and first sector of the first partition (tipicaly LBA=2048). So, I can read/write first 128 sectors. After LBA=127 write operation end successfully…
user5177344
0
votes
1 answer

two inputs within subprocess

I am trying to automate fdisk utility on Linux in order to delete partitions on the attached disk device (USB /dev/sdb in this case) by using Python 3. The script should execute the following commands: 1). sudo fdisk /dev/sdb …
BrightA
  • 3
  • 1
0
votes
3 answers

mapping partitions starting from PhysicalDrive

I want to map all partitions from all drives in Windows (the ones who are not mapped already). I mean I want to assign to each of them drive letters. I know that you can do it with FindFirstVolume, FindNextVolume, FindVolumeClose but there are…
John Mirror
  • 193
  • 1
  • 13
0
votes
0 answers

Reading Disk in Java Gives Exception

File diskRoot = new File ("\\\\.\\PhysicalDrive1"); RandomAccessFile diskAccess = new RandomAccessFile (diskRoot, "r"); byte[] content = new byte[512]; diskAccess.readFully (content); I am using the above mentioned code to read by…
0
votes
1 answer

Shell script to list unformatted disks (partitions)

I'm looking to create a script that lists the unformatted partitions/disks in Linux OS. I couldn't find a reliable way of listing the unformatted disks / partitions. I tried to use lsblk --output NAME,FSTYPE,MOUNTPOINT | grep "sd" which…
Sandeep Kanabar
  • 1,264
  • 17
  • 33
0
votes
1 answer

What's behind this GPT header value?

This dump is the output of a dd if=/dev/sda bs=512 | hexdump -C on a 2GiB hard disk (.vdi, on Virtual Box) onto which a GUID Partition Table was written using cfdisk. This is what LBA 1 (the GPT header logical block) looks like: 45 46 49 20 50 41 52…
pr0gma
  • 577
  • 3
  • 8
  • 18
0
votes
1 answer

Brillo's partitioning scheme

I've just recently stumbled over Brillo on Google's source code website. On it, I've found several files with the extension bpt. These are JSON files that appear to describe partitions on devices. Here are the contents of the base file: { …
Melab
  • 2,594
  • 7
  • 30
  • 51
0
votes
1 answer

See disk management info with c# - incl. hidden volumes

I like to see every Partition/volume (also the hidden system volumes) on all physical disks. The Information of the Volume should contain Partition Index (e.g. "1") Name (e.g. "c:"), Label (e.g. "Windows") capacity (e.g. 200GB) In my opinion…
mut
  • 11
  • 2
0
votes
0 answers

Visual studio list/search for partitions

I have partitioned my usb drive to look like a cd (partition A) and a normal thumb drive(partition B). I want the cd(A) to auto run a visual studio program that will look for the other partition on my thumb drive(B) and launch another visual studio…
0
votes
2 answers

Automate partitioning a disk using DISKPART and prompting user for disk or quit

I need to create a batch file which partitions and formats a USB drive. This is to create a Windows 7 USB boot disk. DISKPART is the tool used and you pass it instructions as in: DISKPART /s instructions.txt In my case I want my instructions to…
Angus Comber
  • 9,316
  • 14
  • 59
  • 107