Questions tagged [disk-partitioning]

1

votes
1

answer
39

Views

Diskpart directing resulting output to second text file

Have the following, which works great: echo BASEBOARD>>%computername%.txt wmic /APPEND:'%computername%.txt' baseboard get Manufacturer, Model, Name, PartNumber, slotlayout, serialnumber, poweredon echo BIOS>>%computername%.txt wmic /APPEND:'%computername%.txt' bios get name, version, serialnumber, I...
Leptonator
1

votes
0

answer
23

Views

Find disk size given volume size

I want to create a vhdx file and then initialize it and then create a single volume inside it. I know the volume size. How do i calculate the disk size that i have to create the vhdx file with? I want the partitioning type(GPT/MBR) to the be same as the source disk of the source volume(but the sou...
bunny10245
1

votes
1

answer
34

Views

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 '\\?\Volume{4c1b02c1-d990-11dc-99ae-806e6f6e6963}\' but it returns null. BTW, the par...
SuperJMN
1

votes
3

answer
790

Views

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 to get around this problem? How do I code the desti...
mcu
1

votes
1

answer
816

Views

Is this possible to create a partition which be accessible but invisible by TrueCrypt and C#?

I have a folder in CD/DVD and want to make its contents invisible, accessible and encrypted. So I decide to use TrueCrypt for making that folder as encrypted hidden volume.But with this method , user can see new volume contents after it mounted. So I want to know Is this possible to make the mounted...
1

votes
2

answer
389

Views

Bash script skip mounting Extended partition

I created the following script, but it hangs if there are extended partitions on the system. Mount tries to mount the extended partition witch of course does not work. How do I remove a partition from the loop if a partition is extended??? for i in hda hdb hdc hdd hde hdf sda sdb sdc sdd sde sdf s...
user1602596
1

votes
1

answer
1.2k

Views

Random value for disk Signature [closed]

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 sig...
Thomas
1

votes
2

answer
230

Views

Framework for filesystemless SD card parition [closed]

(This project would probably on-topic on the SuperUser or Electronics sites, but the focus of this question is programmable software for accomplishing it.) I have an embedded system which produces data at about 100KB/s which needs to be stored and later processed on a Windows PC. Serial streaming w...
Ben Voigt
1

votes
1

answer
110

Views

How to use file as a negative mask for reading another file, in Perl?

I want to extract only the junk data from the free space of a raw partition image (EXT4). So I got this idea, to zero out the free space and then to use the result as a mask. I have raw partition image (14GB) containing data and free space and the same raw partition image, with free space zeroed. I...
Nick
1

votes
1

answer
3.3k

Views

diskpart select by disk label

I need to select a disk in WinPE using DISKPART by label. I found this but I think it's outdated: @Echo %dbg%Off :: :: Find External drive and set it active :: Lists Disk Information using Diskpart :: SetLocal EnableDelayedExpansion :: Type the frst 11 characters of the label of the drive here. Set...
Claude Garlick
1

votes
1

answer
638

Views

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 partition listing: set cmd='echo select disk %hdd%^&...
motech man
1

votes
1

answer
88

Views

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. Critical point seems to be that of mapping the entry I...
Luca Carlon
1

votes
1

answer
325

Views

Deleting Additional Disk GCP Instance

I have searched high and low and tried the following to delete an additional disk which is tied to my VM instance as a partition. Downloaded Google SDK, ran the update. Ran the following command : C:\Users\mohamed.imran\AppData\Local\Google\Cloud SDK>gcloud alpha compute disks delete backup [backup]...
Imran Sultan
1

votes
2

answer
266

Views

Disk stuck in read-only in Ubuntu after Windows boot [closed]

I have a dual boot with Windows 10 and Ubuntu. My machine has 2 distinct physical hard drives. Windows is installed on the first drive, on a system partition The second drive is divided in 2 partitions, 1 with Ubuntu and the other with the data I want to share between my 2 OS' When running Windows,...
Darkiwi
1

votes
1

answer
0

Views

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
AVINASH DHINWA
1

votes
2

answer
0

Views

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 the area of the partition occupied by the volume -...
john_e
1

votes
3

answer
0

Views

How do I read a fedora partition from windows? [closed]

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

votes
4

answer
0

Views

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
1

votes
1

answer
841

Views

Need to get name (DeviceID) of System Reserved partition

I need to return the DeviceID of the System Reserved partition. I should be able to do this with the Win32_Volume class by first getting the Label property, and if it matches 'System Reserved' then get the DeviceID property. The following code crashes with a null reference exception: static void Mai...
Escobar Ceaser
1

votes
1

answer
4.9k

Views

Install an older version of Mac OS as dual boot [closed]

Does anyone know how to install an older version of Mac OS on a different partition so I can run both operating systems alongside? I have Mac OS lion 10.8.2 and I would like to install Mac OS 10.6 next to it for testing purposes (java 6 related). 'Downgrading' would also be good; Mac OS 10.6 was onc...
Dyte
1

votes
1

answer
687

Views

a perl script faster than rsync for images and partitions, that produces two-way diffs

sysadmin1138 and Martin have reported a replacement for rsync that works on block devices (partitions). It is based on perl, but I want to store two-way diffs. It applies changes in a block device to a preexisting outdated backup image. This is the second best to do that, after lvmsync that I did no...
user2987828
1

votes
1

answer
500

Views

Linux: user tools for run-time MTD repartitioning [closed]

I have following use case. I start the system via initramfs. Then my software gets images like u-boot, kernel, rootfs etc. over network and burns it into a NAND flash. The problem is, the partitioning can be different (number and size of partitions), depending on target. So I need to change MTD part...
yegorich
1

votes
1

answer
170

Views

Confusion about GUID Partition Table specification

I am writing software to utilize and manipulate GUID Partition Tables (GPT). I've been using a number of references, but in looking through the UEFI standards document concerning GUID Partition Tables, a number of questions have come up. On page 121 of the specification document, the field SizeOfPa...
Daniel Rudy
1

votes
2

answer
3.3k

Views

How to access hidden partitions/volumes

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 Wind...
Alan Araya
1

votes
1

answer
123

Views

What does IOCTL_DISK_VERIFY do?

The documentation for IOCTL_DISK_VERIFY says: Verifies the specified extent on a fixed disk. But what does that mean? When and why do I need to do this?
Felix Dombek
1

votes
2

answer
1.5k

Views

Diskpart script to remove all partitions [closed]

I'm trying to make a Diskpart script that takes in a value of a drive letter, and then deletes all the partitions of the corresponding device of that drive letter. The script that I currently have is select Disk 1 select partition 0 delete partition select partition 1 delete partition but the obviou...
user2370460
1

votes
2

answer
500

Views

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 exit Without CD Rom: select disk 0 clean create partition primary select volume 0 as...
Jay
1

votes
1

answer
3.8k

Views

Resize the windows 10 partition with Gparted [closed]

I installed windows 10 on my windows tablet. (the EMMC is GPT) I got 4 partitions: 1: Recovery partition 2: EFI Partition 3: Reserved partition 4: Windows 10 system partition (where win10 is installed) With gparted on a linux live cd, I removed the Recovery partition but since it was the first parti...
Alexis_FR_JP
1

votes
1

answer
13

Views

Unable to delete a unaccessible volume on Mac through terminal [closed]

how do I delete a virtual partition in virtualbox? I'm using MacOS Mojave v10.14.3 and once virtualbox was installed, I deleted the virtual machine and the app. However, the partition is still there. How can I remove/delete the virtual partition? Please help as that partition is just a burden on...
Jatin Singh Bhati
1

votes
1

answer
54

Views

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 to format it to use(correct me if I am wrong here....
Shino Lex
1

votes
4

answer
7.4k

Views

Default tmp location [closed]

How to change default tmp location in Ubuntu? I am using Ubuntu for my applications. I have seen that many APIs store their tmp files in /tmp folder. In my Ubuntu, total space assigned to root is hardly 4 GB. Which is why I have to keep cleaning the /tmp folder to avoid disk space error. Can I ch...
Learn More
1

votes
1

answer
2k

Views

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 and and file system type. I'm pretty sure at this p...
David Ryan
1

votes
2

answer
726

Views

Get boot partition drive name [closed]

I need to get the boot partition's DRIVE NAME from a bat script. I get the boot partition number with the reagentc.exe /info as follows: Windows RE location: \\?\GLOBALROOT\device\harddisk0\partition1\Recovery\WindowsRE but I need the Drive name. How could that be retrieved from bat?
ViV
2

votes
1

answer
693

Views

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 containing the filesystem. In my code I offset IO ope...
Matt Joiner
16

votes
4

answer
22.7k

Views

unable to resize root partition on EC2 centos

i created my EC2 Machine using Community Image of Centos 6.3 x64. i have added a 35 GB disk. Now when i do #df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.9G 1.2G 6.4G 16% / tmpfs 7.3G 0 7.3G 0% /dev/shm my disk is 35GB but its showing...
Adeel Ahmad
2

votes
2

answer
27.5k

Views

Deleting dynamic partition during installation of Windows 7 [closed]

I while creating some partitions in Win7 using disk management, i mistakenly created a dynamic partition which converted all of my primary partitions into dynamic partitions. Due to this, i have not been able to boot from Ubuntu. I have reistalled win7 twice but at the time of creating partitions du...
Nadeem Yasin
2

votes
1

answer
316

Views

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 with 1 NodeManager 1 JobHistory and 1 ResourceManager h...
Zen
2

votes
4

answer
5.2k

Views

Partition a USB stick programmatically under Linux [closed]

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 off [99341.658678] sd 4:0:0:0: [sdb] Mode Sense: 00 00...
hendry
5

votes
2

answer
1.1k

Views

partition full, or not? [closed]

my partition /tmp is full... and its empty at the same time. So the partition is full. Check the directory: # du -sh /tmp 28K /tmp What? It is empty... And it is really empty... just two empty directories are located in /tmp Checking partition details: # df -h Filesystem Size Used Avail U...
WarrenFaith
11

votes
1

answer
79.3k

Views

Partition information from CMD [closed]

Is there any CMD command line that shows all partition letters. For example: C, D, E... Can that command also show all the partition's information? Free space, used space, total space?
gedO

View additional questions