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

SCAN and CSCAN algorithm in Operating system

With and I've gone through some notes and coursebook regarding the drawing of SCAN and CSCAN algorithm, given a queue of requests and the position of head starts in the example. I wonder if it is a must to move from the starting position to the…
zZzZ
  • 141
  • 2
  • 3
  • 10
1
vote
1 answer

Getting Volume by Path using PowerShell

I know my volume has this path, and it's inside Disk number 3: \\?\Volume{4c1b02c1-d990-11dc-99ae-806e6f6e6963}\ How do I get the actual Volume object using the Path to locate it? I have tried with Get-Volume -Path…
SuperJMN
  • 13,110
  • 16
  • 86
  • 185
1
vote
1 answer

How to create simple volume from unallocated partition

I'm trying to open a place on my harddisk to store some licensing files. So far I have tried diskpart. It looks easy to use but I could not format the unallocated partition with diskpart. I have found a way to create the unallocated space but I have…
Shino Lex
  • 487
  • 6
  • 22
1
vote
2 answers

Win32: Accessing a partition beyond the end of a volume?

It's possible to open a disk volume as a file by using a function call like HANDLE hDisk = CreateFile("\\\\.\\G:", GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, 0, OPEN_EXISTING, 0, NULL); However, that only allows access to…
john_e
  • 456
  • 3
  • 9
1
vote
1 answer

How is a MBR signature stored on a hard-disk?

I have a dump from a hard-disk which has aa55 at offset 510. But the places where I have read about it says it is 55aa in dump. 000001fe: aa55 So, I'm wondering if the data is stored in big-endian or little-endian on my disk? Thanks
1
vote
1 answer

Repartition a USB device using DiskPart

I would like to repartition a USB drive using DiskPart from a C# application. This seems reasonably simple: I collect data about plugged disks using the Win32_DiskDrive class and then use DiskPart to run a script that will change the partitions.…
Luca Carlon
  • 9,546
  • 13
  • 59
  • 91
1
vote
1 answer

Windows Volume without a Partition

Background: I'm working on a powershell script to automate installation from a USB stick via WinPE. Because the target systems have several drives, each possibly having a couple partitions, Windows quickly runs out of drive letters. Part of my…
Drew McGowen
  • 11,471
  • 1
  • 31
  • 57
1
vote
5 answers

C# write to ext2 linux partition from Windows

I'm quite new to C# and I need to write a file (grub) on an EXt2 linux partition from windows 7. What is the good way to do such thing? Do I need to mount the partition with external program?
Ben Liard
  • 11
  • 2
1
vote
2 answers

How to run diskpart and process its output in a loop without using temporary files?

I'm on my very last challenge before wrapping up this project's coding. I am trying to filter the output from diskpart's list partition and list volume commands without using temporary files. I have the solution: set /A hdd= 0 rem Use this for the…
motech man
  • 51
  • 3
1
vote
2 answers

Disk Part If based on volume number or drive type?

I have 2 scripts for imaging new PCs. 1 for if the PC has a CD rom and one for if it does not: With CD Rom: select disk 0 clean create partition primary select volume 1 assign letter="C" format quick fs=ntfs active …
Jay
  • 33
  • 5
1
vote
3 answers

Easiest way to merge partitions under debian (unix)?

I have two unix partitions under debian which I would like to merge (disk space problems :/). What would be the easiest way to do it? I think it would be best to tar or copy files from one partition to the other, delete one and resize the other. I…
Mike Minicki
  • 8,216
  • 11
  • 39
  • 43
1
vote
1 answer

Answer questions sequence using Open3.popen3 in Ruby

I'm trying to answer different questions from external script using Ruby. This is working code Open3.popen3("cp -i 1 0") {|i,o,e,p| i.write "y\n" i.close o.read.split("\n").each {|l| puts l } } But, what if external command asks a question…
Taras D.
  • 11
  • 2
1
vote
0 answers

WinApi: Access denied when creating disk

I'm running the following code with administrator privileges: HANDLE hDevice = INVALID_HANDLE_VALUE; // handle to the drive to be examined BOOL bResult = FALSE; // results flag DWORD junk = 0; // discard…
zvisofer
  • 1,346
  • 18
  • 41
1
vote
0 answers

libgio: get_connected_drives() returns an empty list

I'm linking to libgio and using the VolumeMonitor class to retrieve the current mounted volumes. When i call get_connected_drives, it should return a list of drives (usb mass storage, cd drives) but it returns an empty list. I made certain that i…
1
vote
0 answers

Loading files from a different partition

I'm working at C:\(...)\Desktop, and I need to require my scripts at G:\scripts. I tried to change the $LOAD_PATH: $LOAD_PATH << 'G:\\scripts' require 'filename' and also the argument of require: require 'G:\\scripts\\filename' but I always…
SlySherZ
  • 1,631
  • 1
  • 16
  • 25