Questions tagged [parted]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
15
votes
6answers
22k views

Does LVM need a partition table?

It appears that I am able to successfully do a pvcreate on top of a raw block device, without ever taking the step of creating a partition table. I am then able to create a volume group, logical ...
12
votes
2answers
66k views

'Unrecognised disc label' - when using parted with qemu images

I have a Linux from scratch LiveCD running on qemu vm. I'm using this command to create a hda disc for qemu: qemu-img.exe create -f qcow2 base-linux.img 5G Then I run my vm: qemu.exe -m 1024 -...
7
votes
2answers
25k 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 ...
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 ...
4
votes
1answer
620 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 ...
4
votes
1answer
4k 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 - ...
3
votes
1answer
3k 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
3answers
2k views

Howto align partitions in Linux + NetApp

NetApp support has suggested us to align partitions to improve I/O performance, in short: starting sector must be divisible by 8. How can I move the starting point in a misaligned partition -in ...
3
votes
2answers
5k 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 ...
3
votes
1answer
8k 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 (...
3
votes
1answer
967 views

Is it possible to repartition a running Debian system without losing data

We need to resize the partition that is mounted to /var on a running machine. The only way to access it is via SSH, so live CD is not an option for us. Can we repartition the file system without ...
3
votes
0answers
4k 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 ...
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 ...
2
votes
2answers
733 views

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

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!
2
votes
1answer
804 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
1k views

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

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

Optimal way to format 20TB partition with XFS in linux? [closed]

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 ...
1
vote
2answers
977 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
2k 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....
1
vote
1answer
2k 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 ...
1
vote
1answer
149 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
1answer
5k 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 ...
1
vote
1answer
2k views

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 ...
1
vote
0answers
533 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 (...
1
vote
0answers
166 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 ...
1
vote
0answers
411 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 ...
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 ...
1
vote
0answers
533 views

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....
1
vote
2answers
216 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
1answer
187 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
2k 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 ...
0
votes
1answer
59 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 ...
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 ...
0
votes
1answer
115 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 ...
0
votes
1answer
110 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
45 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
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 ...
0
votes
1answer
72 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 ...
0
votes
0answers
26 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 ...
0
votes
1answer
67 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
918 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 ...
0
votes
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
490 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 ...