Questions tagged [parted]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
57 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 ...
0
votes
0answers
22 views

Scripting of partitioning NVME disk will not mount

I am trying to update a legacy script that grows an xfs partition on a disk that now uses nvme based drives. It uses parted to remove and recreate the partition over the entire disk. Which now ...
0
votes
0answers
36 views

wipefs doesn’t clear raid or LVM data?

I have a kickstart file that attempts to handle the lack of support for RAID on /boot and /boot/efi by creating the partitions of the two RAID1-disks manually. When reinstalling, the script wipes the ...
1
vote
0answers
116 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 ...
0
votes
1answer
40 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 ...
0
votes
2answers
173 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 ...
0
votes
1answer
49 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 ...
0
votes
0answers
19 views

qemu-kfm LVM logical volume size inconsistency in df output

The Problem: andi@docker-host-01:~$ df -hT . Filesystem Type Size Used Avail Use% Mounted on /dev/vdb1 ext4 79G 41G 35G 55% / Adding 41G & 35G gives 76G and not 79G as shown ...
0
votes
0answers
266 views

Ansible - create partitions on different disksizes in the host groups

enter code hereI'm having serious trouble to do something that seems very trivial, I guess I'm probably going on the wrong way. The scenario is quite simple, I have a host_group in which I have a ...
0
votes
1answer
1k 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:...
0
votes
1answer
645 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 ...
1
vote
2answers
2k 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 ...
1
vote
0answers
1k 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 (...
0
votes
0answers
34 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 ...
1
vote
0answers
187 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 ...
3
votes
1answer
1k 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 ...
2
votes
1answer
2k 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 ...
0
votes
1answer
81 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 ...
0
votes
2answers
1k 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 ...
4
votes
2answers
4k 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 ...
3
votes
2answers
8k 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 ...
1
vote
1answer
3k 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 ...
0
votes
1answer
49 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 ...
0
votes
1answer
63 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 ...
1
vote
2answers
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 ...
1
vote
1answer
3k 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....
10
votes
4answers
41k 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 ...
1
vote
0answers
442 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 ...
0
votes
1answer
3k 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 ...
2
votes
1answer
7k 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 ...
3
votes
1answer
9k 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 (...
0
votes
2answers
1k 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 ...
1
vote
1answer
6k 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 ...
2
votes
1answer
415 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 ...
2
votes
1answer
2k 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 ...
0
votes
1answer
546 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 ...
4
votes
0answers
5k 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 ...
0
votes
1answer
673 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 ...
4
votes
1answer
5k 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 - ...
19
votes
2answers
5k views

Is there any way to fix a corrupted LDM database?

TL;DR: Are there any tools/approaches to diagnosing and fixing LDM (Logical Disk Manager) metadata structures without recreating from scratch? Full description: I have two SSD drives set up ...
0
votes
1answer
582 views

lvm-managed gpt partition: partition length exceeds the loop-partition-table-imposed maximum

CentOS 6.4 /dev/sdb is a hardware raid. I'm getting this error reported from 'parted -l': <snip> Model: JetStor JetStor -VOL#000 (scsi) Disk /dev/sdb: 39.0TB Sector size (logical/physical): ...
1
vote
1answer
3k views

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 ...
0
votes
1answer
3k views

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 ...
6
votes
1answer
2k views

Resize openSUSE 12.3 GPT ext4 partitions in a RAID1 disk array

I have a software raid configured (/dev/md2) which has assigned the partitions sda3 and sdb3 from two 3TB disks (sda and sdb). The partition types are GPT not LVM and file system is ext4. Now, the ...
1
vote
1answer
163 views

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 ...
1
vote
2answers
1k views

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 ...
2
votes
2answers
7k views

Is it safe to change the name of a partition in a gpt table using parted?

I guess it IS but I didn't find any explicit statement that changing the name does not affect the data in the partition in the parted documentation and since I could loose a lot of data I want to know ...
4
votes
1answer
640 views

kpartx verbose info: what does it mean?

When mounting images with the wonderful kpartx in verbose mode it displays some, likely very useful, information: # kpartx -av wheezy_cln.img add map loop0p1 (252:2): 0 131072 linear /dev/loop0 2048 ...
1
vote
1answer
208 views

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 ...
0
votes
1answer
148 views

Is there a tool that can take partition table information and partition another based on it?

Is there a tool that can read the partitioning information of a disk and partition another disk based on that information? I don't know whether parted for instance can partition a disk based on a ...