GNU Parted is a free partition editor, used for creating and deleting partitions
Questions tagged [parted]
77 questions
0
votes
1 answer
On SD card the patitions come back after removing them
A little funny problem I'm curious about the reason.
I found an old SD Card, I even don't remember that it was used for.
So I want to remove the old partitions and use it for some of my devices.
And now the magic begins.
[root@localhost /]# parted…

Paul Zakharov
- 141
- 1
- 5
0
votes
1 answer
Extend boot partition in lvm on Centos 7
I have a CentOS 7 with a Boot Partition of 400M as number 1. And after that I have a root Partition of 50G as number 2. What would be the steps to extend the Boot volume with parted or so ?
Kind regards.

ultimo_frogman
- 11
- 3
0
votes
0 answers
Creating a swap partition from existing one
I have the following disk setup:
Disk /dev/sda: 53.7GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
14 1049kB 4194kB 3146kB …

user9102437
- 101
0
votes
0 answers
linux + extend (grow) root file systems without downtime on RHEL production machines
I want to share the following procedure that we did on lab (RHEL 7.2 machine) in order to increase The root file system (XFS filesystem) from 130G to 150G
Details from VM RHEL 7.2 machine are
df -h /
Filesystem Size Used Avail Use%…

King David
- 549
- 6
- 20
0
votes
1 answer
resize "shrink" an .img file from the command line
Shrink an .img file from the command line
I need to be able to shrink the .img for use on other drives. I can do this using gparted, but do not always have a GUI, so I want to translate the gparted step below into parted
to be verbose, here is my…

posop
- 247
- 2
- 10
0
votes
1 answer
Ansible Parted, only run if no partitions exist
I want to only run the parted operation if no partitions currently exist on that device.
Said parts could have been made previously or manually outside of ansible in the past and in that case should not be changed and the task skip.
name: "Add Disk"…

hat
- 3
- 1
0
votes
0 answers
Disk doesn't show any partition table or partition changes
I wanted to clone an encrypted drive to a new drive, so I set up CloneZilla to do a disk-to-disk clone. At the beginning, it said 9 hours to run, so I let it run overnight. The next day, it had 145 hours remaining. I figured I could just wipe the…

TheBeege
- 47
- 2
- 8
0
votes
0 answers
RAID10 software raid converted as RAID0
On one of the server, The RAID10 software raid volume had became RAID0 after one the disks in the RAID10 disk group failed. Also the converted RAID0 volume has become inactive.
How can we recover the RAID volume after replacing the failed…

Chandra
- 1
- 1
0
votes
0 answers
linux + how to extend sdd1 partition based on that sdd disk have enough space
We have rhel server 7.2 version ( VM machine ) with sdd disk
sdd disk have parted partition sdd1 , and our goal is to increase the sdd1 partition to 10g from current 1K size
From
lsblk
sdd 8:48 0 20G 0 disk
└─sdd1 …

King David
- 549
- 6
- 20
0
votes
0 answers
speed difference between FS created by LVM and parted cmd
I was testing read/write operation on FS to check speed via dd cmd.
/app - created with LVM
/app1 - created with parted
when I run below cmds, can see huge diff in speed for both operation with same cmd. Wanted to know why such discrepancy if both…

user640121
- 1
- 1
0
votes
1 answer
parted + usage help not described the resizepart
we need to use parted command as example on rhel server 7.2 version
parted -s /dev/sda resizepart 2
but from parted help we not find the option resizepart
example:
parted -s /dev/sda resizepart 2
Usage: parted [OPTION]... [DEVICE [COMMAND…

sheffadmin
- 49
- 1
- 3
- 11
0
votes
1 answer
rhel + parted failed after increasing OS VM disk and rescan
we have VM rhel machine version 7.6
example from lsblk
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 300G 0 disk
├─sda1 8:1 0 500M 0 part…

sheffadmin
- 49
- 1
- 3
- 11
0
votes
1 answer
add additional partition after increasing OS disk size
As part of add additional partition – sda3 we extend the OS disk from 50g to 120g from the vsphere client ( VM Linux server )
And we perform rescan , instead of reboot
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0…

sheffadmin
- 49
- 1
- 3
- 11
0
votes
1 answer
10TB HDD has a 9999GB partition but only allows me to access 215gb
parted print all result
I have a 10tb hdd with 3 partitions and one flag (not sure what that means).
The flag is set as 215gb and that's all i'm able to access in the filesystem.
I'm running Ubuntu Server 20.04 and i would really like to access the…

Weymouth Solutions
- 67
- 1
- 1
- 6
0
votes
1 answer
Restore root on LVM with one disk (seperate boot partition)
I did a stupid thing and accidentally removed my LVM partition in parted. Since this was a single disk LVM, parted rescue finds an EXT2 partition in the sectors, but I am unable to boot from that since my initramfs is still looking for an LVM VG. I…

Anže Jenšterle
- 1
- 1