Questions tagged [parted]

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

72 questions
27
votes
7 answers

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 volume, and finally a filesystem, mount it, and test…
cat pants
  • 2,139
  • 10
  • 33
  • 44
19
votes
2 answers

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 with GPT + LDM (dynamic disk) in a state that seems…
Karol J. Piczak
  • 2,348
  • 1
  • 20
  • 22
18
votes
5 answers

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 similar to Deleting All Partitions From the Command…
c33s
  • 1,465
  • 3
  • 20
  • 39
16
votes
2 answers

'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 -boot d -cdrom lfslivecd-x86-6.3-r2145.iso -hda…
Valentin V
  • 355
  • 1
  • 3
  • 7
8
votes
2 answers

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 exactly to the filesystem size. I tried to used…
Vikelidis Kostas
  • 927
  • 1
  • 6
  • 15
6
votes
1 answer

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 root partition is taking 1TB and the home partition…
Raul G
  • 161
  • 3
5
votes
2 answers

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 case I needed to expand later. I'm now seeing…
a coder
  • 719
  • 4
  • 20
  • 37
5
votes
1 answer

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 - are these two 'hiddens' different? how can I set…
stuck
  • 667
  • 2
  • 10
  • 23
4
votes
0 answers

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 multiple devices without any required user…
Devon
  • 780
  • 1
  • 9
  • 20
4
votes
1 answer

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 add map loop0p2 (252:3): 0 7825408 linear…
3
votes
1 answer

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 ran this command: zpool create -f my-pool…
user122992
  • 150
  • 1
  • 8
3
votes
1 answer

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 (depending on function), and their filesystem sizes…
Anonymouslemming
  • 801
  • 2
  • 14
  • 25
3
votes
2 answers

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 this for sure. I am talking of course about the…
3
votes
1 answer

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 losing any data? (The system is freshly installed so…
Igor Pavelek
  • 133
  • 5
3
votes
3 answers

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 production, with ext3- under Linux? A screenshot with a…
santisaez
  • 201
  • 1
  • 3
  • 10
1
2 3 4 5