A disk partitioning and partition resizing program.

learn more… | top users | synonyms

1
vote
1answer
16 views

Resized partition to too small value after shrinking filesystem

I shrinked an ext4 filesystem with resize2fs: resize2fs -p /dev/sdn1 3500G (FS is used for 2.3 TB) Then I resized the partition with parted and left a 0.3% margin (~10 GB) when setting the new end:...
0
votes
1answer
26 views

pvs not showing correct available space

Recently installed RHEL7 on a PowerEdge R320 with the following drives: 2 x 300GB sas 15k 2 x 1TB sas 7.2k When setting up LVM during installation I purposefully left over 100gb free in case I ...
0
votes
1answer
81 views

How to repair a 500GB HD showing itself as only 10MB?

I have a 500GB USB HD. I have been messing around with the dd cmd - erasing MBR data, copying my windows internal HD, eleting partitions, etc. fdisk -l returns Disk /dev/sdc: 10MiB, 10485760 bytes, ...
1
vote
1answer
28 views

Error assembling mdadm RAID1 after resizing underlying partitions

I want to shrink a mdadm RAID1 from 2TB to 100GB. This is how the setup looks like before shrinking. root@rescue ~ # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 3.7T 0 ...
3
votes
1answer
18 views

If old MBR is used and there are already 3 primary partitions, how can I create two more partitions with “parted”?

Using a RHEL7 machine, without GPT, I can see 3 primary partitions on a disk. The disk still has free space in the end. Question: How can I create 2 more partitions, a 512 MByte one, and a 1 GByte ...
1
vote
0answers
130 views

file system “/boot” is not a FAT EFI system partition (ESP) file system

I'm trying to install Arch Linux in a VM from scratch. Following the wiki, I see there are no answers to my question. I'm trying bootctl install and it returns file system "/boot" is not a FAT EFI ...
3
votes
1answer
34 views

Why the 1MiB should be used when setting the first partition?

As the arch install guide suggests (using parted to do the partitioning) (parted) mkpart primary ext4 1MiB 100MiB However, when checking the output of fdisk, the start of the partition is not ...
3
votes
2answers
51 views

Running mkfs on file image partitions

I am creating an empty file... dd if=/dev/zero of=${SDCARD} bs=1 count=0 seek=$(expr 1024 \* ${SDCARD_SIZE}) ...then turning it into an drive image... parted -s ${SDCARD} mklabel msdos ...and ...
4
votes
1answer
31 views

How do I expand a file system to fill a partition?

As shown in the picture below, I've created partitions on two 32GB devices: an SD-card, and a flash usb stick. I intended to create file systems using the entire partition in each case, yet somehow I'...
3
votes
1answer
74 views

How can I see the size of a partition's unallocated size on the command line after shrinking a partition with resize2fs?

I want to shrink my /dev/sda2 partition from 463.37GB to 400GB to make room for a new partition. So I did e2fsck -f /dev/sda2 followed by resize2fs /dev/sda2 400G. As per man resize2fs, the ...
-1
votes
1answer
66 views

Upgrade GNU parted 3.1 to 3.2

I'm trying to upgrade GNU parted 3.1 to 3.2 and when I try to verify the key it says : # gpg --verify parted-3.2.tar.xz.sig gpg: Signature made Mon 28 Jul 2014 11:20:50 PM EDT using RSA key ID ...
1
vote
1answer
317 views

Resize VFAT partition?

I'm migrating a machine to another boot drive with more space. I've done the following: sudo partclone.vfat -c -R -o partclone.sda1.vfat.img -s /dev/sdg1 and then I created my partitions on the new ...
1
vote
1answer
81 views

Remove filesystem from an unpartitioned disk

I have an un-partitioned 500GB disk with a ext3 fs using the entire disk. If I make sure there are no partitions on the disk using fdisk or parted, "ssm list" will still show an ext3 fs on the disk (...
0
votes
1answer
27 views

parted mkpart is fs-type required

I am running this line: parted -s ${drive} -- mklabel msdos \ mkpart primary 0% 100% and then formatting with vfat but my question is do i need to specify fs-type if just making it msdos ?
1
vote
2answers
119 views

how to make parted to print size in MiB size instead of MB

We are using am335x based custom board, we have eMMC as secondary storage device. Now to list partitions we are using parted utility but parted prints partition sizes in the MB instead of MiB. Is ...
2
votes
1answer
87 views

How to find unallocated disk partition with parted or another tool?

I'm using Fedora server and I have an unused partition on /dev/sda. How can I find it with parted or another command? I can only list mounted and used partitions.
1
vote
1answer
734 views

how to achieve optimal alignment for emmc partition?

We have bbb based custom board containing eMMC. And we have created partitions as follows, parted --script -a minimal /dev/mmcblk0 \ mklabel gpt \ mkpart primary 131072B 262143B \ mkpart ...
1
vote
2answers
220 views

8GB USB disk listed at only 512B or 10MB?

I made an Arch Linux ISO USB drive, and I'm trying to restore it using the directions from the Arch Linux wiki. After running: $ sudo dd count=1 bs=512 if=/dev/zero of=/dev/sde && sync ...
2
votes
1answer
632 views

Check if partitions are aligned properly for performance?

I just created a GPT disk label for the entire space on my hard disk (/dev/sda) like so: # parted (parted) select /dev/sda (parted) mklabel gpt Warning: The existing disk label on /dev/sda will be ...
0
votes
0answers
102 views

Error while compiling parted statically

I downloaded parted-3.2 and tried static compilation. These are the steps I followed : ./configure and then I tried make LDFLAGS=-static which throws the following error : ../libparted/.libs/...
1
vote
1answer
434 views

'filesystem “/boot” has the wrong type for an EFI System Partition'

I get this error when i run bootctl install in chroot filesystem "/boot" has the wrong type for an EFI System Partition I searched online and someone else had this problem and his solution was he ...
1
vote
0answers
43 views

parted with “free” option, results in invalid token in some cases

when parted with "free" option is run when there is unallocated space at end of the disk (not consumed by partition), I get this error.. [root@sprintlab423vm4 ~]# parted /dev/disk/by-path/pci-0000:03:...
2
votes
1answer
173 views

how to create a partition in free space using GNU Parted

Below is my hard disk shown in gnu parted: (parted) print free Model: ATA HGST HTS541075A9 (scsi) Disk /dev/sda: 750GB Sector size (logical/...
0
votes
0answers
95 views

why can't I partition a LUKS mounted partition?

A CentOS 7 server has to have LUKS encryption for everything but /boot and /boot/efi. And the large LUKS encrypted remainder partition (1.8 TB) will then need to be partitioned further. I was able ...
2
votes
1answer
895 views

how do I partition a CentOS 7 server using parted?

I am planning to divide the largest partition on the hard drive of a CentOS 7 server into four smaller partitions using parted. Three of the new partitions will be 300 GB each, and the fourth ...
2
votes
1answer
55 views

How does “parted” know the file-system type for GPT partitions?

parted utility somehow detects the file system on partitions on my GPT disk: I guess it does not do this based on partition type codes(seen in the gdisk output) because those would be 27(Hidden ...
1
vote
1answer
274 views

Booting off raid'ed > 2GB drives, btrfs, handling bios boot partition [duplicate]

Setting up an array of (3) 5GB drives using btrfs. It will soon grow to (6) 5GB drives. Starting with raid 1, will rebalance once all the drives are installed to either raid5, 6, or 10. I will be ...
1
vote
1answer
1k views

Remove all traces of GPT disk label

I've got an USB pen drive and I'd like to turn it into a bootable MBR device. However, at some point in its history, that device had a GPT on it, and I can't seem to get rid of that. Even after I ran ...
2
votes
1answer
2k views

Scripteable GPT partitions using parted

I am partitioning eMMC using following commands in the script, parted /dev/mmcblk0 --script mklabel gpt parted /dev/mmcblk0 --script mkpart primary ext4 32MB 132MB parted /dev/mmcblk0 --script mkpart ...
3
votes
1answer
380 views

Can I use parted resize for partitions used by mdadm

I have upgraded 3Tb drives in my RAID-5 to 5Tb one by one with same partitioning. I want to grow each of the partitions (at the end of the disc) to take the extra 2Tb. I looked at parted resize but ...
1
vote
3answers
749 views

GNU parted resizepart in script

I would like to used the yes command so that GNU parted does not wait for user input : root@195-xxx-xxx-xxx:/proc# parted /dev/sda unit B resizepart 2 1166016512B Warning: Shrinking a partition can ...
2
votes
2answers
123 views

Why can I rest assured that GNU Parted has not corrupted a single bit after shrinking my partition?

I shrunk my root partition and it seems nice. But I am thinking about overwriting now at least the most important files from the backup copy (external drive, rsync, weekly backup) in order to be sure ...
1
vote
4answers
43 views

Which files are changed when GNU Parted shrinks a partition?

When shrinking a partition with GNU Parted, some contents must be moved from the area of the physical disk that will be left out of the new shrunken partition. The contents of those files are of ...
1
vote
1answer
293 views

External HDD partition not showing [closed]

I have problem with an external HDD. I am using Debian Jessie. The partition is not showing, I can see only the device: # ls /dev/sd* /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sda5 ...
1
vote
3answers
133 views

Why is grub showing a windows 7 option?

I've recently in installed mint 17 on my pc. $ parted -l Model: ATA PLEXTOR PX-256M5 (scsi) Disk /dev/sda: 256GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Number Start End ...
0
votes
1answer
1k views

parted 3.2 says 1024MiB is outside of the device (of size 1024MiB)

I'm having a little trouble getting parted 3.2 to accept a partitioning scheme that was valid in parted 2.3 (tested on Debian with jessie vs. wheezy). parted 3.2 will not accept a partition that goes ...
0
votes
1answer
354 views

Delete labelled partition non interactively with one command

I know about fdisk and parted, but I was not able to figure out an non interactive way to delete a labelled partition. I imagine something like <command> <action> /dev/disk/by-label/LABEL ...
1
vote
0answers
195 views

Why are USB partitions & disk capacity not coherent between fdisk, parted, dmesg & /dev/sdXy

Disclaimer: I initially posted this on SF : http://serverfault.com/q/645670, but I think it better fits here First, a word of context: I'm trying to burn an ISO on a 16 Gb USB key, but I'm having ...
0
votes
1answer
592 views

Cannot see my SD card in parted

When I plug in my card reader, it shows up at /def/sdf, and when I insert this SD card I also see /dev/sdf1, but parted won't show the disk. It doesn't have any information I need, I just want to use ...
1
vote
1answer
2k views

Using dd to zero a GPT table from disc, how many bytes to write?

In the fdisk area, cleaning out the MBR would require writing 446 bytes, and to include cleaning of the partition information, zero-ing the first 512 bytes was enough: dd if=/dev/zero of=/dev/sdb bs=...
0
votes
1answer
1k views

mdadm RAID 5 and parted unrecognized disk label

I have three 3 TB drives that I am attempting to put together into a RAID 5 setup with mdadm, but I am running into some issues. (Actually, I have four 3 TB drives I will be using, but one of them ...
1
vote
1answer
40 views

Block device aligment without partitioning?

As new drives with 4096b sized blocks appeared, partition alingment is becoming more and more important. But, what I am interested in is, if I use the whole block device for filesystem (eg. /dev/sdc) ...
2
votes
0answers
455 views

CentOS 5.6 expand ext4 partition , have steps but parted shows as ext3

I have a Adaptec 5805 HW RAID card with a 6.3 TB RAID-6 array (partitioned via Parted GPT, all of which is formatted as ext4 on CentOS 5.6). I want to expand this to 7.5GB and from reading these are ...
1
vote
1answer
124 views

Free space showing problem in `parted` command?

I tried to partition disk (HDD) into several parts for Windows and Linux by parted, but I find some problem as follows: Why doesn't the free space between #3 and #5 start from 106815488s to ...
2
votes
1answer
1k views

parted: invalid token

I am teaching myself parted. In the docs it reads: Parted has two modes: command line and interactive. Parted should always be started with: # parted device [...] In command line mode, this ...
2
votes
0answers
1k views

How to find hidden partition of a USB in linux

I have a USB, which has a protected partition. I think this USB has hidden partitions, which I can't see them. $ fdisk -l /dev/sdb: You must set cylinders. You can do this from the extra functions ...
1
vote
1answer
1k views

Unable to set partition type correctly using parted

I'm trying to create a bootable USB stick with FreeDos for BIOS updates in Centos 6.5, following instructions from: chtaube.de I created the empty 30MB img file using dd: [root@dumbledore ...
3
votes
1answer
1k views

Move and resize partitions proportionally

I have a clonezilla image from a disk with GPT, and I want to clone to a larger disk and then resize the partitions proportionally. By example if I have a 100 Gb disk and two partitions of 40 an 60 Gb,...
1
vote
3answers
3k views

Error “parted: invalid token: 1” When Using Parted To Format A Partition?

Screenshot: http://imgur.com/DQnhwG2    I'm trying to format an existing ext2 partition as ntfs (or any filesystem) using the mkfs command in Parted, but when I specify the partition to ...
3
votes
2answers
3k views

Can`t part disk because 'invalid token primary'

I`m trying to partition the external HDD on my raspberry, I am running Raspbian (debian). When I run the command; mkpart primary ntfs 45% It will say: But the help says: What I am doing wrong?