Questions tagged [disk-partitioning]

0

votes
0

answer
15

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.2k

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
693

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
3

votes
1

answer
21.3k

Views

Format microSD card for Android smart phone with exFat partition [closed]

what is the best way to format a microSD card for my Android smart phone with an exFat partition? Formatting from the Android storage settings doesn't give me an option for the partition type. I have also tried to format from Windows with my phone connected to my computer via USB (and SDCard mounted...
littleK
2

votes
1

answer
1.9k

Views

Programmatically Create Bootable NTFS/FAT Partition Windows XP to Windows 7 [closed]

I am trying to create a bootable partition in Windows. I need to be able to do this from Windows XP through Windows 7. Ideally I would be able to do it both for FAT32 and NTFS depending on if the device is smaller than 32 GB (FAT32) or larger (NTFS). On Vista and 7 I have a script that can do this...
Ben
1

votes
1

answer
161

Views

How to maintain my SSD disk effectively? [closed]

I'm running Linux (kernel 3.18) over a SSD disk (with an Ext4 partition) with TRIM feature enable. I'm running an application that writes a lot of new files every day. At the end of the day (or after the disk usage reaches 95%), the application erases all the created files. I read the following reso...
user3668129
4

votes
2

answer
3.1k

Views

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

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...
Alon Gubkin
5

votes
5

answer
17k

Views

Raspberry Pi broke SD Card? Can't format

so, I have a 8GB SDHC from CnMemory. I used it for my Raspberry Pi. It worked so far. But then my raspberry froze (can't connect via ssh, apache didnt respond either). So I pulled the power out. I rebootet the raspberry. This time with my monitor. FS seemed corrupt. I did fsck and resolved the issue...
Sbls
2

votes
1

answer
1.7k

Views

Linux Read Only Partition's data changes [closed]

I have a read only partition who's data is changing. The change occurs on the first mount only. Subsequent mounts do not change the partition data. Tried with ext3 and ext2 incase journalling was an issue ... no help. Tried tune2fs with -c -1 -i 0 in order to disable updating timestamps or any other...
lostdev
23

votes
1

answer
39.4k

Views

Trying to resize2fs EB volume fails [closed]

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 peac...
Shamoon
4

votes
9

answer
8.2k

Views

How to get a bigger boot disk on Google Compute Engine

Default images have 10GB, but I need more (30GB approx). If I create a disk of 30GB using one of that default images, the usable space it's 10GB, not 30GB. I know I can install the distro using tools like debootstrap, but that seems unnecessarily complicated. is there any other way to do it?
user1193085
2

votes
1

answer
664

Views

Creating Windows 8 Development partition on Windows 7 machine [closed]

I have a new EliteBook with Windows 7. I would like have two bootable partitions: one for Windows 7 and one for Windows 8. My hard drive was partitioned in 4 volumes (that I could see): SYSTEM, Healthy (Windows 7), HP_RECOVERY, HP_TOOLS. I "shrank" the Healthy partition (not sure what its original n...
westsider
3

votes
1

answer
1.3k

Views

Create/delete disk partitions via WMI

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.
Marco
2

votes
1

answer
463

Views

How to use winapi classes?

am trying to create a project that create a file, formatting it, create a new partition and mount it, dismount it ... in C++ with Qtcretor I found that winapi offer several function help me to do that Format method of the Win32_Volume class and AddMountPoint method of the Win32_Volume class but ther...
Oumaya
1

votes
5

answer
1.5k

Views

Is a hard drive partition's label upper- or lowercase? (C:\ or c:\) [closed]

Windows displays partition labels as uppercase letters (C:). I need to know what to use when creating config files or hardcoding other paths (e.g. in a deployment script). Does it matter?
Claus Thomsen
4

votes
10

answer
4.6k

Views

What is the best way to partition terabyte drive in a linux development machine? [closed]

I have a new 1 TB drive coming in tomorrow. What is the best way to divide this space for a development workstation? The biggest problem I think I'm going to have is that some partitions (probably /usr) will become to small after a bit of use. Other partitions are probably to huge. The swap drive fo...
Peter Stuifzand
7

votes
1

answer
13.5k

Views

Valid arguments for parted [closed]

I've been reading the parted man page but can't seem to find any documentation on valid parameters. I'm trying to partition a USB CompactFlash with specific partitions sizes (regardless of CF size). But I'd like to make sure that my alignment is perfectly correct and optimal. For example, when I u...
Jeach
7

votes
1

answer
2.5k

Views

Get size of volume on Windows

I'm writing a library to extract information about physical disks, partitions, and volumes on a Windows system (XP or later). I'm trying to get the capacity of a volume. Here are the approaches I know about and the reason each fails: GetDiskFreeSpaceEx -- Affected by user quota. IOCTL_DISK_GET_DRIV...
Ben Voigt
2

votes
1

answer
357

Views

How can I detect errors in diskpart when using a pipe?

I am trying to eliminate the temporary script file (i.e. diskpart /s scriptFile) used to automate diskpart by replacing it with commands issued via a pipe, however I can't seem to figure out how to detect when diskpart throws an error. If you have a drive N: change the select vol n with a non-existe...
motech man
4

votes
1

answer
660

Views

Android emulator version 16.0 persistant /system/ storage?

In the past, I was able to create an AVD with persistant /system/ storage by copying the system.img file from the base directory (ex: $ANDROID_HOME/platforms/android-10/images/system.img) into the AVD directory (ex: ~/.android/avd/wuntee.avd/) then remount the /system/ partition as rw and finally mo...
wuntee
3

votes
3

answer
1.5k

Views

Disk partition structure

Is there any way in Java (1.6+) to retrieve the partition disk structure? (For example: NTFS, FAT32, HFS+, or EXT3.) External libraries are permitted. Thanks, Gianni
Gianni
4

votes
1

answer
1.6k

Views

Python: check if two Linux paths are on same physical disk

For now I use os.stat(path).st_dev to get the device id. But the id seems to be different for logical disks on same same physical drive. So it doesn't actually works for me. Is there a better or direct solution to it.
Barun Sharma
5

votes
0

answer
3.1k

Views

USE WMI and WMQ to get Logical Disk and Partition Information from Win32_PnPEntity of SERVICE type USBSTOR

I am detecting when our proprietary USB device is attached to a PC. When we detect this, we get the related Win32_PnPEntity. We want to use this Win32_PnPEntity as a source of the following information: - USB Descriptor VID, PID, REV, Firmware Version. - Logical Disk Drive Volume and Partition inf...
Ian Mc Shane
2

votes
1

answer
7.3k

Views

Get partition and volume information

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 part...
Scadge
7

votes
2

answer
6.2k

Views

How to create a new partition with Ansible

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 partitio...
warhansen
1

votes
3

answer
2.2k

Views

Easiest way to merge partitions under debian (unix)? [closed]

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 will use parted to resize but how should I copy the...
Michał Minicki
4

votes
1

answer
854

Views

How to read the GUID Partition Table (GPT) and its entries?

To read the MBR partition table we use an offset of 0x1be, similarly what is the offset for reading the GP(artition)T(able) entries (ie, number of partitions and their sizes). I am writing a C program using "gdisk" to create the partitions, I need to write the filesystems onto these partitions. So f...
4

votes
2

answer
8k

Views

How to check a disk for partitions for use in a script in Linux?

I'm scripting something in Bash for Linux systems. How would I check a disk for partitions in a robust manner? I could use grep, awk, or sed to parse the output from fdisk, sfdisk, etc., but this doesn't seem to be an exact science. I could also check if there are partitions in /dev, but it is also...
Synthead
4

votes
3

answer
11.2k

Views

Assign a mount point folder path to a drive using PowerShell

I have a server that is provisioned with several disks. One for an OS, one for programs etc., and the remaining are to be mounted to empty NTFS folders. Disk 0: C: Disk 1: G: Disk 2: G:\Folder01\ Disk 3: G:\Folder02\ This is fairly straightforward through the GUI: https://technet.microsoft.com/en-us...
William Nelson
8

votes
1

answer
9.2k

Views

Smallest FAT32 Partition [closed]

I need to create a small partition image (a few MB) with FAT32 filesystem. I came up some contradictory info on the Internet about the minimum size limit of a FAT32 partition. When I tried to mkfs a 5MB partition as FAT32 in Linux, I get a warning since it's too small. Though, it writes something in...
mustafa
4

votes
1

answer
22.1k

Views

How to make a tar backup of a root filesystem? [closed]

I have linux installed on SD card, I used this command to install the rootfs tar xpjf rootfs.tar.bz -C /mnt/rootfs/ Now, I made some changes to the rootfs and I would like to create a backup that I can use with the same command above, I tried using: tar cpjf rootfs.tar.bz2 /mnt/rootfs and tar cpjf r...
iabdalkader

View additional questions