disk-partitioning

Trying to resize2fs EB volume fails [closed]

时光毁灭记忆、已成空白 提交于 2019-12-03 05:39:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I have a 200GB EBS volume and am trying to increase the space available. I followed the instructions on: http://www.hellersoftware.com/2012/resize-ebs-volume-attached-to-amazon-web-services-ec2-instance/ and managed to create a snapshot and create a new EBS based on that snapshot. Everything is peachy, except

Obtain a list of partitions on Windows

纵饮孤独 提交于 2019-12-03 02:59:26
Goal I'm porting a filesystem to Windows, and am writing a more Windows-like interface for the mounter executable. Part of this process is letting the user locate a partition and pick a drive letter. Ultimately the choice of partition has to result in something I can open using CreateFile() , open() , fopen() or similar. Leads Windows seems to revolve around the concept of volumes, which don't seem quite analogous to disks, and only occur for already mounted filesystems. Promising leads I've had include: IOCTL_DISK_GET_DRIVE_LAYOUT_EX Physical Disks and Volumes Displaying Volume Paths However

Create/delete disk partitions via WMI

泄露秘密 提交于 2019-12-01 22:06:08
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. As far as I know, there is no way to create/delete partitions in WMI. You may want to look into the Shell Functions 来源: https://stackoverflow.com/questions/2456768/create-delete-disk-partitions-via-wmi

mapping partitions starting from PhysicalDrive

主宰稳场 提交于 2019-12-01 13:06:02
问题 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 situations where you can't use them. I tried with QueryDosDevice, same thing. The idea is to start from \.\PhysicalDrive[n], find out the partitions and map them. I know it's doable because I saw a program that can do that. But I don't like it, because

Is it possible to format a memory stick, pen drive or disk using Java? [closed]

我与影子孤独终老i 提交于 2019-12-01 06:28:37
I would like to create a multi-plattform utility to format / erase memory sticks, disks, etc. Is it possible to do this in Java? Or do I need to call native methods for each operational system plattform? disrvptor It is very system specific, there is no universal way to perform this. Your options are Create a JNI library to perform this using system calls Write a wrapper class around utilities that perform this operation (for example, capture stdout and give inputs to stdin for an external process) Use OS-specific techniques (as previously mentioned) to zero out devices Use something like

Way to know if two partitions are in one physical hard disk without WMI?

巧了我就是萌 提交于 2019-12-01 06:13:10
I have those partitions (in Windows) for example: Hard Disk 1 - Partition C, Partition D Hard Disk 2 - Partition E Is there any way in a program language to know if for example partition C and partition D are in one physical hard disk without WMI ? I don't want to use WMI because it's slow - for this example, it took for me 0.5 seconds. I need it to be fast. Thank you. I don't know of any other managed way to get disk partition information. You may use the Win32 API using P/Invoke from C#. However, you shouldn't unless it's absolutely necessary. The Win32 function you'll need is called

Way to know if two partitions are in one physical hard disk without WMI?

ぐ巨炮叔叔 提交于 2019-12-01 05:35:31
问题 I have those partitions (in Windows) for example: Hard Disk 1 - Partition C, Partition D Hard Disk 2 - Partition E Is there any way in a program language to know if for example partition C and partition D are in one physical hard disk without WMI ? I don't want to use WMI because it's slow - for this example, it took for me 0.5 seconds. I need it to be fast. Thank you. 回答1: I don't know of any other managed way to get disk partition information. You may use the Win32 API using P/Invoke from C

Is it possible to format a memory stick, pen drive or disk using Java? [closed]

倾然丶 夕夏残阳落幕 提交于 2019-12-01 05:26:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I would like to create a multi-plattform utility to format / erase memory sticks, disks, etc. Is it possible to do this in Java? Or do I need to call native methods for each operational system plattform? 回答1: It is very system specific, there is no universal way to perform this.

unable to resize root partition on EC2 centos

耗尽温柔 提交于 2019-11-30 01:42:49
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 8 GB in root and 7 as tmpfs. i tried to use resize2fs but it didnt work on centos. disk has ext4 partation.. # resize2fs /dev/xvda resize2fs 1.41.12 (17-May-2010) resize2fs: Device or resource busy while trying to open /dev/xvda Couldn't find valid filesystem superblock. or even if i tried resize2fs /dev/xvda1 it says device has nothing to do. any

How to find out mount/partition a directory or file is on? (Linux Server) [closed]

扶醉桌前 提交于 2019-11-28 02:40:20
Is there a Linux command to easily find out which partition/mount a directory or file is on? (This is probably a RTM question, and I feel guilty for asking it, but somehow, I can't find a good answer on google just yet..) df -P file/goes/here | tail -1 | cut -d' ' -f 1 来源: https://stackoverflow.com/questions/3274354/how-to-find-out-mount-partition-a-directory-or-file-is-on-linux-server