disk-partitioning

How to prevent windows from accessing and detecting new volumes while writing a raw image file to PhysicalDrive?

て烟熏妆下的殇ゞ 提交于 2021-02-10 03:22:09
问题 After lots and lots of try and error I am now able to flash/write a raw image file (containing multiple partitions) to \\.\PhysicalDriveN (SD-Card in my case) by just using Windows Api calls ( see below ). But as soon as I have some explorer windows open and click around, the write process fails ( error 433 ). Another annoying problem are popup messages telling me that a new volume has to be formatted (at the beginning, while I am still writing!) or autoplay asks me to select an action (after

Installing ceph using kolla-ansible for all-in-one setup

╄→尐↘猪︶ㄣ 提交于 2020-12-07 07:15:09
问题 I am trying to deploy the all-in-one configuration using kolla-ansible with ceph enabled enable_ceph: "yes" #enable_ceph_mds: "no" enable_ceph_rgw: "yes" #enable_ceph_nfs: "no" enable_ceph_dashboard: "{{ enable_ceph | bool }}" #enable_chrony: "yes" enable_cinder: "yes" enable_cinder_backup: "yes" glance_backend_ceph: "yes" gnocchi_backend_storage: "{{ 'ceph' if enable_ceph|bool else 'file' }}" cinder_backend_ceph: "{{ enable_ceph }}" cinder_backup_driver: "ceph" nova_backend_ceph: "{{ enable

How to create a new partition with Ansible

。_饼干妹妹 提交于 2020-01-01 04:27:11
问题 When I run this on the command line it works fine: echo -e "n\np\n1\n\n\nw" | sudo fdisk /dev/sdb But in Ansible it does not want to run in shell: - name: partition new disk shell: echo -e "n\np\n1\n\n\nw" | sudo fdisk /dev/sdb It does not come back with an error, but it does not create the partition either. I checked that Ansible and LVM will not do what I need. Any advice? 回答1: By default, Ansible executes /bin/sh shell. For example, if /bin/sh is linked to dash , it's built echo is

unable to resize root partition on EC2 centos

风格不统一 提交于 2019-12-18 11:20:53
问题 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

How to access hidden partitions/volumes

戏子无情 提交于 2019-12-14 00:26:09
问题 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 Windows. You can´t see it on explorer but it is there. My application will write and read data from thoose partitions and I have to find a way of doing something like "c:\" for thoose. In the above

Get partition and volume information

夙愿已清 提交于 2019-12-12 09:58:23
问题 Is there a way to get disk partition and volume information using Java libraries only? I also need deleted file information. Disk is formatted as a FAT-16 and has standard MBR. I need the following information: a) Partition information - Display the number of partitions on the disk and for each partition display the start sector, size of partition and file system type. b) Volume information – For the first partition only, display the number of sectors per cluster, the size of the FAT area,

External Drive Letter - Backup

蓝咒 提交于 2019-12-11 08:18:00
问题 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 destination paths? Thanks. 回答1: Windows could change that drive letter assigned to your USB drive. The correct way to do this backup is mounting the USB drive in an empty directory. Not only does it add

Diskpart script to remove all partitions [closed]

百般思念 提交于 2019-12-11 04:45:12
问题 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 12 months ago . 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 obvious problem

C# and diskpart: how to select by disk label and not by a number?

蓝咒 提交于 2019-12-11 03:36:00
问题 I have a C# application that install Windows image. I have to choose the disk where the system will copied (C: or D: or ...) on the user interface. For that, it's ok. Then i have to format the disk. I have to select with diskpart.exe the good physical disk associed to C:. But with diskpart, we choose the disk with number: select disk 0 or 1 or ... How to make the connection between the good disk number and the letter choosen by users on the interface ? I found Nothing on google. I tried to

Raw partition access in Windows Vista [closed]

荒凉一梦 提交于 2019-12-11 01:55:34
问题 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 . 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 user mode even on Windows Vista. Is this true? Regards /Robert