GNU Parted is a free partition editor, used for creating and deleting partitions
Questions tagged [parted]
77 questions
1
vote
1 answer
Why there is a difference in size reported by lsblk, gdisk and parted
[anaconda root@861767 ~]# lsblk /dev/sda
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 512M 0 part
└─sda2 8:2 0 465.3G 0 part
├─sys-root 253:2 0 10G 0 lvm …

zer0c00l
- 143
- 2
- 8
1
vote
0 answers
fdisk and parted won't work on a USB stick with Fedora 23 alpha 2 x86_64
So I burned a Fedora 23 alpha 2 on a 16GB USB stick through
dd if=path/to/fedora.iso of=/dev/usb_device bs=512
I used bs=512 because the sectors on the stick are 512 bytes.
Opening the stick in fdisk gives me the warning:
WARNING: GPT (GUID…

dojoe
- 11
- 1
1
vote
1 answer
How to restore a saved partition table to another disk with parted
OS: Ubuntu 10.04
I have saved my partition layout from sda and want to restore it to my new disk sdb. I have used the following command to save the layout, but how can i restore it to my new disk using parted?
parted -ms /dev/sda print > sda.parted

SteffenNielsen
- 477
- 4
- 15
1
vote
1 answer
Device file in /dev/mapper/ present even after removing partition with parted
These observations are from CentOS 6.3, 6.4 and 6.5. I have a multipath device with a single partition:
# ls -l /dev/mapper/
total 0
crw-rw---- 1 admin root 10, 57 Dec 22 12:52 control
lrwxrwxrwx 1 admin root 7 Dec 24 12:22 mpatha ->…

pdp
- 778
- 1
- 7
- 16
1
vote
1 answer
Parted automatically adding a filesystem on mkpart
I created an ext4 file system on /dev/sda1 yesterday to test the drive before trying to add it to a RAID. It's a 3 TB drive, so I'm trying to use parted to do all my partition stuff.
I've done an rm 1 and then print shows no partitions. If I…

nwalke
- 643
- 2
- 12
- 32
1
vote
1 answer
Error: partition length of 6442450944 sectors exceeds the loop-partition-table-imposed maximum of 4294967295
I'm trying to create a partition on a RHEL 6.3 machine, but parted is giving me the following error:
$ sudo parted /dev/vdb mkpart logical 1
Error: partition length of 6442450944 sectors exceeds the loop-partition-table-imposed maximum of…

Leo
- 983
- 7
- 21
- 39
1
vote
1 answer
aligning partition boundaries of already installed system
I have qemu raw disk which includes two partitions. The second partition is not aligned according to ssd principles. I will move this into Smartcloud environment and they suggest aligning according to 4k boundaries.
How can I change starting…

seaquest
- 698
- 2
- 12
- 25
1
vote
2 answers
How to install CentOs 5.8 on 3TB disk with RAID 1 on Hetzner EX 4S (10 TB) server?
I have installed centos 5.8 with Hetzner server rescue mode but its disk parttion table is in MSDOS formate which does not support more than 2 TB space of disk so i need to change the partition table into GPT formate.but enable to install os in Gpt…

user133916
- 23
- 2
- 10
1
vote
1 answer
fdisk -l only displays boot partition
I have a SAN, and it's able to read and write to the 50TB RAID just fine, but when I run
fdisk -l
it only lists the boot partition of the SAN server, and doesn't display anything about the other partitions on the RAID. I've also tried using
parted…

Franklin
- 131
- 3
1
vote
0 answers
Restoring a GPT XFS partition?
I recently added some storage to a RAID array with a single large XFS volume. To expand the volume I normally use parted to remove the partition and then recreate it so that it spans the entire volume.
However, I accidentally removed a partition…

Keith Hughitt
- 111
- 3
1
vote
2 answers
Optimal way to format 20TB partition with XFS in linux?
I have a 20TB RAID5 array (LSI 9265-8i / 8 x 3TB 7200rpm drives) configured with a 1MB stripe size.
What's the optimal way to partition, and format, this partition in Linux to maximize performance for a single ~20TB share?
I'm a linux newbie, so…

Jason
- 11
- 1
- 2
1
vote
1 answer
Debian 6 installation - unable to partition/mount with an Intel Raid Controller (readonly)
I'm trying to install a Debian 6 (newest version) on a Server which has 2 RAIDs.
First RAID is configured on an Intel controller and is a simple RAID 1 with 3 partitions (swap, /, and a special data partition)
Second RAID (not important here) is on…

Steffen Winkler
- 259
- 1
- 4
- 15
1
vote
1 answer
Disk Size is not Consistent Between fdisk and parted
I have noticed some difference in size displayed using parted and fdisk. I have a disk attached with a size of 20GB. Executing the fdisk command shows that the size is 20GB which is correct.
fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 20 GiB,…

Grabinuo
- 113
- 3
1
vote
1 answer
Different output of parted and fdisk
I have a strange CentOS behaviour,
When I type parted -l command on my server I got following results :
Model: DELL PERC H730P Adp (scsi)
Disk /dev/sda: 5758GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:…

Someone Sometime
- 21
- 5
1
vote
0 answers
unable to convert MBR disk to GPT
I've got a MySQL DB running in EC2 that I've had to continually add space to the EBS volume, then grow it (using growpart/xfs_growfs). I finally hit 2TB and couldn't figure out why I could no longer grow the partition, its because of course it's an…

skrewler
- 308
- 1
- 3
- 13