Questions tagged [parted]

GNU Parted is a free partition editor, used for creating and deleting partitions

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

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 ...
Paul Zakharov's user avatar
0 votes
1 answer
103 views

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 ...
ultimo_frogman's user avatar
1 vote
1 answer
260 views

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 /...
Grabinuo's user avatar
  • 113
0 votes
1 answer
1k views

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 ...
posop's user avatar
  • 247
0 votes
1 answer
1k views

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 ...
hat's user avatar
  • 3
0 votes
0 answers
83 views

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 ...
TheBeege's user avatar
1 vote
1 answer
652 views

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/...
Someone Sometime's user avatar
3 votes
2 answers
941 views

Not able to get swap partition UUID after creating it with Parted ansible's module

I have to create a new partition in a fresh disk on a VM. I use the parted module in order to create the partition. In a future task (in the same playbook), I need to use the UUID of the device ...
Martin's user avatar
  • 499
0 votes
0 answers
62 views

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 ...
Chandra's user avatar
0 votes
0 answers
170 views

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 ...
King David's user avatar
0 votes
0 answers
42 views

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 ...
user640121's user avatar
2 votes
2 answers
737 views

Failed to Partition a 10TB HD?

Before I tried to partition a 10TB HDD again, parted saw it: # parted /dev/sdb (parted) print list Model: ATA ST10000NM0016-1T (scsi) Disk /dev/...
HCSF's user avatar
  • 245
0 votes
1 answer
1k views

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 ...
sheffadmin's user avatar
0 votes
1 answer
203 views

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 ...
sheffadmin's user avatar
0 votes
1 answer
1k views

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 ...
sheffadmin's user avatar
0 votes
1 answer
189 views

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 ...
Weymouth Solutions's user avatar
1 vote
0 answers
1k views

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 ...
skrewler's user avatar
  • 308
0 votes
1 answer
186 views

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 ...
Anže Jenšterle's user avatar
0 votes
2 answers
2k views

Partition didn't resize after increasing OS Disk Size in Azure

I have a Ubuntu VM which has an unmanaged OS disk associated with it. When we increased the size of the unmanaged OS disk from 30 GB to 50 GB(after deallocating the VM and increasing its size from ...
Sameer Keluskar's user avatar
0 votes
1 answer
1k views

Partition didn't reflect the changes after increasing OS Disk Size in Azure

I have a Ubuntu VM which has an unmanaged OS disk associated with it. When we increased the size of the unmanaged OS disk from 30 GB to 50 GB(after deallocating the VM and increasing its size from ...
Sameer Keluskar's user avatar
0 votes
1 answer
4k views

Extending a partition on a VMware disk in Linux

I'm having some problems trying to extend a Disk. I'm using a VMware Debian 9 virtual machine on an ESXi host. After extending the virtual disk-size by 32 GB and rebooting the VM I see: bob@apollo:...
Stewart's user avatar
  • 351
0 votes
2 answers
4k views

Extended/Logical partition with parted

I have already partition/installed server and its partition is like following # parted -l Model: ATA TOSHIBA THNSNJ51 (scsi) Disk /dev/sda: 512GB Sector size (logical/physical): 512B/512B Partition ...
ImranRazaKhan's user avatar
1 vote
2 answers
25k views

Resize partition using parted

There is a pretty big file-server(~85TB) running xfs file system, on Centos 6.9 which we use for our backups. We were out of space, so I added 10 new similar drives to the array and rebuilt RAID 6 ...
user8802482's user avatar
1 vote
0 answers
4k views

vgdisplay not showing free PE / Size space

I have Dell PowerEdge R730xd running Centos 6. I just added more physical disks to our raid and used open manage to increase the raid size, which is now at 67,063.50GB. I'm using xfs and have a lv (...
user460272's user avatar
0 votes
0 answers
136 views

How to extending a partition onto a new drive in Ubuntu Server

I have a VPS which was installed by my hosting provider. Recently I ran out of space on the original 100GB drive and so they have now allocated an additional 100GB drive to me. I would like to expand ...
Philip's user avatar
  • 650
1 vote
0 answers
245 views

XEN Server 4.4.4 - Cannot create disk partition

In an Oracle VM Server we created a 2nd partition on /dev/sdb, now we want to create the ext4 filesystem on it, but mkfs -t ext4 /dev/sdb2 returns this: mke2fs 1.43-WIP (20-Jun-2013) /dev/sdb2 is ...
Leonardo Ramé's user avatar
3 votes
1 answer
3k views

ZFS on Linux: Deleting the "Solaris reserved 1" partition. Did I break anything?

I have a Debian 8 VM with: 1x virtual root disk 1x virtual data disk with a ZFS file system on it. When I initially created the ZFS file system, I did not manually create partitions, but simply ...
user122992's user avatar
2 votes
1 answer
4k views

extend MBR disk with ext4 partition to over 2 TB on CentOS 7

I have a CentOS 7 machine with two disks mounted [ /dev/sda and /dev/sdb ] using ext4. I need to extend /dev/sdb1 to over 2 TB. I extended the disk from 2 TB to 2.5 TB (google cloud) After using fdisk ...
nelasx's user avatar
  • 161
0 votes
1 answer
110 views

Need to expand LV and partition LUN

I am fairly new with this. I read many about expanding to the back of the current partition but how do I expand partition to the front of the disk. I need to keep the data on it as it is 1/4 part ...
s. Kim's user avatar
  • 11
0 votes
2 answers
2k views

4 TB external disk on Centos 5

I have an old server running CentOS 5(Kernel 2.6.18-92.el5). It is running a legacy application so I can't retire it yet. I had connected a 2 TB USB disk to it to take backups and the disk is almost ...
Debianuser's user avatar
12 votes
2 answers
16k views

Shrink partition to exactly fit the underlying filesystem size

Recently i shrinked an ext4 filesystem size to 500GB df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 493G 64G 404G 14% / now i want to shrink the partition size to fit ...
Vikelidis Kostas's user avatar
6 votes
3 answers
18k 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 several hundred GB free in ...
a coder's user avatar
  • 799
1 vote
1 answer
6k views

undo rm in parted - recover parition? cancel operations?

I accidentally removed a partition on my primary partition. I thought I was on a removable drive. I clearly should have been paying more attention... I didn't "save" or "exit" parted, but it looks ...
dan's user avatar
  • 333
0 votes
1 answer
58 views

Copying parition tables (only) on two GPT HDDs of 4TB each

I have two hdds of 4TB each on CentOS 7. I need to copy partitions of one to the other so that I can use the second to take periodic backups from the first. Tried sgdisk using -R option but it did not ...
Quiescent's user avatar
  • 125
0 votes
1 answer
70 views

Centos 6 partition raid

Firstly, I am 20 years windows user. Recently, i decided move to unix and buy a centos server for my work. Today, i found that I missed a 3TB disk drive, it does not show on my system. I dont know ...
trinvh's user avatar
  • 101
1 vote
2 answers
1k views

How to remove SWAP partition, and add back to root partition in cli

I am on Ubuntu 14.04 server with only ssh access into the machine in question. Someone else setup this machine, and they added a ridiculous swap space...a little more than half of the SSD. Here's ...
trueCamelType's user avatar
1 vote
1 answer
5k views

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....
zer0c00l's user avatar
  • 143
20 votes
5 answers
107k views

How to reset a Harddisk (delete Mbr & delete Partitions) from the Command Line with a script without rebooting?

To start from a clean state I need to reset the hard disk to an empty state from command line. It is not about running a wipe utility, the data don't have to be overwritten. This question is quite ...
c33s's user avatar
  • 1,535
1 vote
0 answers
542 views

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 ...
dojoe's user avatar
  • 11
1 vote
1 answer
5k views

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 ...
SteffenNielsen's user avatar
2 votes
1 answer
9k views

Fdisk reports: Partition 1 does not start on physical sector boundary. Partition created using Parted

I used Parted to create a partition on my server /dev/sdb. When I run fdisk -l, Warning Partition 1 does not start on physical sector boundary appears. Disk /dev/sdb: 2000.3 GB, 2000341917696 bytes ...
Freeda Suing's user avatar
3 votes
1 answer
10k views

How to script parted to resize partition on running root filesystem?

I have a VM template that I use for building other VMs using virt-clone / KVM. The VM template is 4GB to save space. The storage for VMs that I build from this are on iSCSI targets or LVM volumes (...
Anonymouslemming's user avatar
0 votes
2 answers
3k views

resizing a Debian linux partition without losing data

i have made by mistake a small partition partion on my Debian installation and after installing openvz on this bare metal server i notice that i created production vps on this partion and that it ...
Taha's user avatar
  • 3
1 vote
1 answer
7k views

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 ...
pdp's user avatar
  • 778
2 votes
1 answer
440 views

Regular and repetitive sudo alerts from several Linux hosts

I've got several hosts running CentOS 5.11 on the LAN. Lately we've been getting fairly regular sudo alerts (via email) from attempted sudo commands by non-authorized users. Been Googling in case the ...
Dan's user avatar
  • 61
2 votes
2 answers
5k views

Recreate XFS Partition with Existing Filesystem

I have a CentOS server with two RAID arrays. The OS array and a DATA array. Long story short, recently had tons of trouble with the OS and had to reload CentOS (was 5.7 and went to 6.5). Everything ...
Jason's user avatar
  • 381
0 votes
1 answer
705 views

Increase partition size in debian server

I have a debian server instance and I need to increase the root partition size of it. I installed the parted program and took a backup first. Then I attached another 2GB volume to the instance. When ...
Asanka sanjaya's user avatar
4 votes
0 answers
6k views

CentOS kickstart automated setup with parted / RAID

I'm trying to use parted to partition my entire drives automatically during the CentOS kickstart install, however, I'm getting two issues with my install. I want to kickstart my installs across ...
Devon's user avatar
  • 800
0 votes
1 answer
962 views

How to create two partitions with same size?

I created two partitions using the following commands. parted /dev/sda --script -- mkpart primary 1 50001 parted /dev/sda --script -- mkpart primary 1948001 1998001 Each partition should have 50001 ...
user180574's user avatar
7 votes
1 answer
8k views

setting the 'hidden' attribute on a partion from Linux (parted) isnt respected by Windows?

when I set the 'hidden' flag on a GPT partition it's not respected by Windows 8.1 (Windows attempts to mound, throws UI, etc). However if I set the 'hidden' flag from diskpart.exe it is respected - ...
stuck's user avatar
  • 707