Questions tagged [parted]

A disk partitioning and partition resizing program.

Filter by
Sorted by
Tagged with
-2
votes
1answer
373 views

Get Entries in Parted

I was determined to solve this myself but after much frustration here I am. I am trying to get the entries in parted for a particular disk. I can do something like this parted /dev/sdc print but I ...
2
votes
2answers
6k views

“Error: Can't have a partition outside the disk!” even though number of sectors is fine

I am looking at an image file which was created using dd with an SD card with Raspbian (with Qt 5.7 on it that I compiled a while ago) as input. When invoking sudo parted raspbian_jessie_qt5....
4
votes
2answers
9k views

Expanding a disk with a GPT table

I'm running a CentOS 7 VM, where I have a second disk (sdb), which I need to expand often. After expanding the disk and I open 'parted' so that I can create a new partition, the following error ...
1
vote
1answer
3k views

Resize partition , problems with mount and boot system Arch

I used parted program to resize my /home (mounted) partition. /home had 420 GB (60 GB used) and I resized to 320 GB (now is 100 GB free). And when I reboot computer I have had failed to start file ...
2
votes
0answers
842 views

Corrupt FAT32 cluster chain after resizing with parted

I have a 500GB external USB drive formatted with a single FAT32 partition. I wanted a partition that would support normal Linux filesystem permissions, so I shrank the existing partition using parted: ...
2
votes
1answer
283 views

Sizing a disk image/filesystem to hold exactly a certain set of files with near-zero free space

I need to construct, in code suitable for scripting/make/automation, a disk image (two partitions, a FAT filesystem and an ext4 filesystem, for UEFI/Syslinux USB Linux booting [OS installer], which ...
2
votes
2answers
302 views

parted - Completely overwrite USB device

After using Kubuntu for a few months, I wanted to install a lower level OS, e.g. Debian. I used the Debian manual, by writing the ISO directly to the USB. Now GParted doesn't see the USB, fdisk says ...
2
votes
1answer
293 views

Can't mount partition/partitions not recognized in Solaris 11.1

I'm playing around with Solaris 11.1, and have run into a bit of a problem... I've installed three OS on my computer - LinuxMint, FreeBSD and Solaris - and have partitioned my harddrive (/dev/sda on ...
4
votes
1answer
3k views

parted created an XFS partition whereas I asked for ext4. Why?

I attached a new hard drive to my computer (Ubuntu 14.04.4 LTS x64), which I can see using sudo lshw -C disk: *-disk description: ATA Disk product: ST6000NM0024-1HT vendor: ...
3
votes
1answer
703 views

Creating a new partition with parted for a new hard drive: when mounted, it is much smaller than expected. Why?

I attached a new hard drive (6TB, /dev/sdb) to my computer (Ubuntu 14.04.4 LTS x64), and tried to create a new partition as follows: sudo lshw -C disk # Checking the location of the ...
1
vote
1answer
913 views

Resized partition to too small value after shrinking filesystem

I shrinked an ext4 filesystem with resize2fs: resize2fs -p /dev/sdn1 3500G (FS is used for 2.3 TB) Then I resized the partition with parted and left a 0.3% margin (~10 GB) when setting the new end: ...
1
vote
1answer
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 100gb free in case I ...
0
votes
1answer
249 views

How to repair a 500GB HD showing itself as only 10MB?

I have a 500GB USB HD. I have been messing around with the dd cmd - erasing MBR data, copying my windows internal HD, eleting partitions, etc. fdisk -l returns Disk /dev/sdc: 10MiB, 10485760 bytes, ...
3
votes
1answer
753 views

Error assembling mdadm RAID1 after resizing underlying partitions

I want to shrink a mdadm RAID1 from 2TB to 80GB. This is how the setup looks like before shrinking. root@rescue ~ # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 3.7T 0 ...
2
votes
1answer
87 views

If old MBR is used and there are already 3 primary partitions, how can I create two more partitions with “parted”?

Using a RHEL7 machine, without GPT, I can see 3 primary partitions on a disk. The disk still has free space in the end. Question: How can I create 2 more partitions, a 512 MByte one, and a 1 GByte ...
2
votes
1answer
10k views

file system “/boot” is not a FAT EFI system partition (ESP) file system

I'm trying to install Arch Linux in a VM from scratch. Following the wiki, I see there are no answers to my question. I'm trying bootctl install and it returns file system "/boot" is not a FAT EFI ...
2
votes
1answer
353 views

Why the 1MiB should be used when setting the first partition?

As the arch install guide suggests (using parted to do the partitioning) (parted) mkpart primary ext4 1MiB 100MiB However, when checking the output of fdisk, the start of the partition is not the ...
6
votes
3answers
3k views

How to run mkfs on file image partitions without mounting?

I am creating an empty file... dd if=/dev/zero of=${SDCARD} bs=1 count=0 seek=$(expr 1024 \* ${SDCARD_SIZE}) ...then turning it into an drive image... parted -s ${SDCARD} mklabel msdos ...and ...
3
votes
1answer
12k views

How do I expand a file system to fill a partition?

As shown in the picture below, I've created partitions on two 32GB devices: an SD-card, and a flash usb stick. I intended to create file systems using the entire partition in each case, yet somehow I'...
3
votes
1answer
368 views

How can I see the size of a partition's unallocated size on the command line after shrinking a partition with resize2fs?

I want to shrink my /dev/sda2 partition from 463.37GB to 400GB to make room for a new partition. So I did e2fsck -f /dev/sda2 followed by resize2fs /dev/sda2 400G. As per man resize2fs, the ...
-1
votes
1answer
755 views

Upgrade GNU parted 3.1 to 3.2

I'm trying to upgrade GNU parted 3.1 to 3.2 and when I try to verify the key it says : # gpg --verify parted-3.2.tar.xz.sig gpg: Signature made Mon 28 Jul 2014 11:20:50 PM EDT using RSA key ID ...
3
votes
1answer
10k views

Resize VFAT partition?

I'm migrating a machine to another boot drive with more space. I've done the following: sudo partclone.vfat -c -R -o partclone.sda1.vfat.img -s /dev/sdg1 and then I created my partitions on the new ...
5
votes
2answers
8k views

Remove filesystem from an unpartitioned disk

I have an un-partitioned 500GB disk with a ext3 fs using the entire disk. If I make sure there are no partitions on the disk using fdisk or parted, "ssm list" will still show an ext3 fs on the disk (...
0
votes
1answer
737 views

parted mkpart is fs-type required

I am running this line: parted -s ${drive} -- mklabel msdos \ mkpart primary 0% 100% and then formatting with vfat but my question is do i need to specify fs-type if just making it msdos ?
5
votes
3answers
3k views

how to make parted to print size in MiB size instead of MB

We are using am335x based custom board, we have eMMC as secondary storage device. Now to list partitions we are using parted utility but parted prints partition sizes in the MB instead of MiB. Is ...
2
votes
1answer
1k views

How to find unallocated disk partition with parted or another tool?

I'm using Fedora server and I have an unused partition on /dev/sda. How can I find it with parted or another command? I can only list mounted and used partitions.
1
vote
1answer
5k views

how to achieve optimal alignment for emmc partition?

We have bbb based custom board containing eMMC. And we have created partitions as follows, parted --script -a minimal /dev/mmcblk0 \ mklabel gpt \ mkpart primary 131072B 262143B \ mkpart ...
1
vote
2answers
943 views

8GB USB disk listed at only 512B or 10MB?

I made an Arch Linux ISO USB drive, and I'm trying to restore it using the directions from the Arch Linux wiki. After running: $ sudo dd count=1 bs=512 if=/dev/zero of=/dev/sde && sync ...
6
votes
2answers
12k views

Check if partitions are aligned properly for performance?

I just created a GPT disk label for the entire space on my hard disk (/dev/sda) like so: # parted (parted) select /dev/sda (parted) mklabel gpt Warning: The existing disk label on /dev/sda will be ...
2
votes
2answers
3k views

'filesystem “/boot” has the wrong type for an EFI System Partition'

I get this error when i run bootctl install in chroot filesystem "/boot" has the wrong type for an EFI System Partition I searched online and someone else had this problem and his solution was he ...
1
vote
0answers
313 views

parted with “free” option, results in invalid token in some cases

when parted with "free" option is run when there is unallocated space at end of the disk (not consumed by partition), I get this error.. [root@sprintlab423vm4 ~]# parted /dev/disk/by-path/pci-0000:03:...
10
votes
2answers
33k views

how to create a partition in free space using GNU Parted

Below is my hard disk shown in gnu parted: (parted) print free Model: ATA HGST HTS541075A9 (scsi) Disk /dev/sda: 750GB Sector size (logical/...
1
vote
0answers
721 views

why can't I partition a LUKS mounted partition?

A CentOS 7 server has to have LUKS encryption for everything but /boot and /boot/efi. And the large LUKS encrypted remainder partition (1.8 TB) will then need to be partitioned further. I was able ...
2
votes
1answer
4k views

how do I partition a CentOS 7 server using parted?

I am planning to divide the largest partition on the hard drive of a CentOS 7 server into four smaller partitions using parted. Three of the new partitions will be 300 GB each, and the fourth ...
2
votes
1answer
789 views

How does “parted” know the file-system type for GPT partitions?

parted utility somehow detects the file system on partitions on my GPT disk: I guess it does not do this based on partition type codes(seen in the gdisk output) because those would be 27(Hidden NTFS ...
1
vote
1answer
1k views

Booting off raid'ed > 2GB drives, btrfs, handling bios boot partition [duplicate]

Setting up an array of (3) 5GB drives using btrfs. It will soon grow to (6) 5GB drives. Starting with raid 1, will rebalance once all the drives are installed to either raid5, 6, or 10. I will be ...
9
votes
2answers
15k views

Remove all traces of GPT disk label

I've got an USB pen drive and I'd like to turn it into a bootable MBR device. However, at some point in its history, that device had a GPT on it, and I can't seem to get rid of that. Even after I ran ...
9
votes
2answers
29k views

Scripteable GPT partitions using parted

I am partitioning eMMC using following commands in the script, parted /dev/mmcblk0 --script mklabel gpt parted /dev/mmcblk0 --script mkpart primary ext4 32MB 132MB parted /dev/mmcblk0 --script mkpart ...
4
votes
1answer
1k views

Can I use parted resize for partitions used by mdadm

I have upgraded 3Tb drives in my RAID-5 to 5Tb one by one with same partitioning. I want to grow each of the partitions (at the end of the disc) to take the extra 2Tb. I looked at parted resize but ...
6
votes
6answers
5k views

GNU parted resizepart in script

I would like to used the yes command so that GNU parted does not wait for user input : root@195-xxx-xxx-xxx:/proc# parted /dev/sda unit B resizepart 2 1166016512B Warning: Shrinking a partition can ...
2
votes
2answers
233 views

Why can I rest assured that GNU Parted has not corrupted a single bit after shrinking my partition?

I shrunk my root partition and it seems nice. But I am thinking about overwriting now at least the most important files from the backup copy (external drive, rsync, weekly backup) in order to be sure ...
1
vote
4answers
81 views

Which files are changed when GNU Parted shrinks a partition?

When shrinking a partition with GNU Parted, some contents must be moved from the area of the physical disk that will be left out of the new shrunken partition. The contents of those files are of ...
1
vote
3answers
185 views

Why is grub showing a windows 7 option?

I've recently in installed mint 17 on my pc. $ parted -l Model: ATA PLEXTOR PX-256M5 (scsi) Disk /dev/sda: 256GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Number Start End ...
1
vote
1answer
4k views

parted 3.2 says 1024MiB is outside of the device (of size 1024MiB)

I'm having a little trouble getting parted 3.2 to accept a partitioning scheme that was valid in parted 2.3 (tested on Debian with jessie vs. wheezy). parted 3.2 will not accept a partition that goes ...
0
votes
1answer
2k views

Delete labelled partition non interactively with one command

I know about fdisk and parted, but I was not able to figure out an non interactive way to delete a labelled partition. I imagine something like <command> <action> /dev/disk/by-label/LABEL ...
1
vote
0answers
313 views

Why are USB partitions & disk capacity not coherent between fdisk, parted, dmesg & /dev/sdXy

Disclaimer: I initially posted this on SF : https://serverfault.com/q/645670, but I think it better fits here First, a word of context: I'm trying to burn an ISO on a 16 Gb USB key, but I'm having ...
1
vote
1answer
3k views

Cannot see my SD card in parted

When I plug in my card reader, it shows up at /def/sdf, and when I insert this SD card I also see /dev/sdf1, but parted won't show the disk. It doesn't have any information I need, I just want to use ...
2
votes
1answer
9k views

Using dd to zero a GPT table from disc, how many bytes to write?

In the fdisk area, cleaning out the MBR would require writing 446 bytes, and to include cleaning of the partition information, zero-ing the first 512 bytes was enough: dd if=/dev/zero of=/dev/sdb bs=...
1
vote
1answer
3k views

mdadm RAID 5 and parted unrecognized disk label

I have three 3 TB drives that I am attempting to put together into a RAID 5 setup with mdadm, but I am running into some issues. (Actually, I have four 3 TB drives I will be using, but one of them ...
1
vote
1answer
57 views

Block device aligment without partitioning?

As new drives with 4096b sized blocks appeared, partition alingment is becoming more and more important. But, what I am interested in is, if I use the whole block device for filesystem (eg. /dev/sdc) ...