Questions tagged [parted]

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

72 questions
3
votes
2 answers

Partitions on Linux and their CHS dependance

Recently I came into a problem with partitioning WD20EARS disk (with 4k sectors). I needed partitions to be aligned correctly so I just used parted in "unit s" mode and started all partitions at mod8 sector (drive itself reports, that sector is…
Vladislav Rastrusny
  • 2,581
  • 12
  • 39
  • 56
3
votes
2 answers

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 partition (not the partition UUID, but the device UUID…
Martin
  • 446
  • 11
2
votes
1 answer

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 to delete and recreate the partition, after the…
nelasx
  • 161
  • 1
  • 8
2
votes
1 answer

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 255 heads, 63 sectors/track, 243194 cylinders,…
Freeda Suing
  • 21
  • 1
  • 4
2
votes
1 answer

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 attempted commands are known hacks, or known…
Dan
  • 61
  • 2
2
votes
2 answers

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 is working with the OS portion now. However,…
Jason
  • 371
  • 1
  • 7
  • 19
2
votes
1 answer

Parted equivalent of sfdisk -d

I have to dump all my GPT partitions from one drive to another. The MBR equivalent would be sfdisk -d. Thanks!
Martin
  • 57
  • 5
2
votes
1 answer

How to translate sfdisk command to parted command

I'm currently involved in modifying some system setup scripts to use parted rather than sfdisk, and I'm not entirely sure how to convert those commands. The existing sfdisk command is passed numeric partition-type identifiers; I'm reasonably sure it…
Sean
  • 137
  • 1
  • 6
2
votes
1 answer

how can i move ext3 partition to the beginning of drive without losing data?

I have a 500GB external drive. It had two partitions, each around 250GB. I removed the first partition. I'd like to move the 2nd to the left, so it consumes 100% of the drive. How can this be accomplished without any GUI tools (CLI only)? fdisk Disk…
Felipe Alvarez
  • 183
  • 2
  • 12
2
votes
2 answers

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/sdb: 10.0TB Sector size (logical/physical):…
HCSF
  • 245
  • 2
  • 13
1
vote
2 answers

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 using Mega Raid Manager, which took nearly a…
user8802482
  • 11
  • 1
  • 1
  • 3
1
vote
0 answers

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 (lv_vol1a) that I would like to extend using…
user460272
  • 11
  • 3
1
vote
0 answers

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 apparently in use by the system; will not make a…
Leonardo Ramé
  • 323
  • 3
  • 12
1
vote
1 answer

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 like the partition is gone! Is there any way to…
dan
  • 323
  • 1
  • 5
  • 16
1
vote
2 answers

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 the current setup. sdb 119.2G disk …
trueCamelType
  • 1,016
  • 5
  • 19
  • 41