Questions tagged [parted]

A disk partitioning and partition resizing program.

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
751 views

How to resize2fs ext4 partition that I shrunk with parted without e2fsck -f complaining of superblock or partition table

Please note that if I resize my partition back to original size with parted, I can then mount my /dev/vda1 partition without problems. But how can I get it to mount it after I SHRUNK it to 8GB? (...
4
votes
0answers
2k views

Change the start of a partition with parted?

How can I change the start location of a partition using parted or similar tool? It looks like you can only change the end location of partitions but that doesn't seem right. https://www.gnu.org/...
3
votes
1answer
242 views

Arch ISO not recognizing SSD, does see HDD

I'm installing Arch Linux and when I was about to partition my drives, I noticed something odd. In my laptop, I have two disks: a 1TB HDD and a 512 GB SSD. I would prefer to use the SSD as my boot ...
3
votes
1answer
486 views

How can I re-partition a hard/ssd-drive without losing data?

When I got my notebook with a 512GB SSD, I reformatted it and installed Ubuntu. I've followed Ubuntu's suggestion to partition the drive, so I have it partitioned as follows: $ sudo parted -l Model: ...
2
votes
1answer
263 views

Split partition on software RAID 1 with `parted`

I have a software RAID 1. There is data already stored on the system. I want to shrink an existing partion and then create a new one with the remaining space. I'll use parted. I'm aware I cannot ...
2
votes
0answers
844 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
0answers
749 views

CentOS 5.6 expand ext4 partition , have steps but parted shows as ext3

I have a Adaptec 5805 HW RAID card with a 6.3 TB RAID-6 array (partitioned via Parted GPT, all of which is formatted as ext4 on CentOS 5.6). I want to expand this to 7.5GB and from reading these are ...
2
votes
0answers
3k views

How to find hidden partition of a USB in linux

I have a USB, which has a protected partition. I think this USB has hidden partitions, which I can't see them. $ fdisk -l /dev/sdb: You must set cylinders. You can do this from the extra functions ...
2
votes
0answers
256 views

Tool to reduce a partition's size and create a new one from the command-line

At the moment I don't have any free space: (parted) mkpart Partition type? primary/extended? primary File system type? [ext2]? ext4 Start? 60G End? 62.9G Warning: You requested a partition from 60....
2
votes
0answers
2k views

WD MyBook 3TB - Gparted failed & HDD partitions recovery?

I have this new WD MyBook external HDD (USB 3.0/2.0); I created 3 partitions, all of them ext3 type (~1 TB | ~1 TB | ~750 GB) I loaded lots of files all the partitions were like ~30% full on each, ...
1
vote
1answer
262 views

Create bootable sd card with parted

I executed the following script to create a bootable SD card, but the raspberry pi doesn't boot. The sd cards are fine, they arrived today in the mail and badblocks found none. What am I missing? #!/...
1
vote
1answer
1k views

Adding brick volume to gluster fails

I created a 2TB volume to increase space on home directory. I created the partition: $ parted /dev/xvdb mklabel gpt $ parted -s /dev/xvdb mkpart primary ext4 1 100% Formatted the partition: $ mkfs....
1
vote
0answers
43 views

Why increase the size by 2B when adding only one?

Software parted takes automatically size of sector (512B for GPT). I enter exact size to MB, but I can't create swap partition with exact size. mkpart swap linux-swap 15.5GB 17013 print Number ...
1
vote
0answers
158 views

Resizing primary parition with extended one in command line

I want to extend my primary partition with a new extended one that I created with parted. Here is my actual setup (parted print free): Number Start End Size Type File system Flags ...
1
vote
1answer
67 views

Disk space unavailable for partition

I have a Debian server. I have the following situation in my server. In the root I have Apache server running. I noticed that the disk is full but I can see that in /dev/sda2 there is still 50 gb ...
1
vote
1answer
599 views

Increase the filesystem's size inside a qcow2 image

I had created a qcow2 image with Virtual Machine Manager on CentOS (150GB). Another CentOS 7 was installed along with WHM & cPanel in that image. I have done some research and increase the qcow2 ...
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:...
1
vote
0answers
722 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 ...
1
vote
0answers
315 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 ...
0
votes
0answers
13 views

File recovery from corrupted NTFS drive

I have an SSD drive that was used with Windows 10 and suddenly stopped working. To recover the data, I made an image of the drive in Linux by: ddrescue /dev/sda ssd_rescue.img ssd_rescue.log No ...
0
votes
0answers
23 views

Resize ext4 partition while minimizing potential mistakes via command line?

There are plenty of guides to resize a partition or even this question - How to to resize an ext4 partition from the command line?, however I'd like to know how to do safely this using a command line ...
0
votes
0answers
105 views

Parted and fdisk will not write changes concerning creating a partition table

I am trying to use this HDD (which is quite old) as a storage device. However, I have ran into some issues. It had two partitions which I removed with fdisk first. Now whenever I try to create a new ...
0
votes
0answers
21 views

add additional msdos based partition using maximal amount of space

Stumbled about a problem with gpt: [root@someserver ~]# parted /dev/sdb GNU Parted 2.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: VMware ...
0
votes
1answer
21 views

How can I resize root partition without using VFS or RAID

I had one SSD disk(500GB) in my desktop. I used dual booting system(Arch Linux, Windows) and Windows used 100GB of the disk. Today I added new SSD disk to my desktop so I moved windows to new disk. ...
0
votes
0answers
308 views

LINUX “No valid partition table was found on this device.” + “Error: Can't have a partition outside the disk!” + fdisk reads “7.3T” Size; How to fix?

Distro: Netrunner Blackbird (Debian) I/O: Sata to USB cable KDE Parition Editor: "No valid partition table was found on this device." me@computer:~$ sudo parted -l Model: ATA LITEONIT LCT-128 (scsi) ...
0
votes
0answers
67 views

parted start partition and grub core.img

How do you use parted to make the first [primary] partition start at sector 63? Or does this happen automatically when doing parted /dev/sdb mkpart primary 0% <end %> I am dealing with ...
0
votes
0answers
39 views

Setting flags with Parted after chroot into an external hard drive gives the “we have been unable to inform the kernel of the change” error

I attempted to run 2 parted commands after chrooting onto an external hard drive, and it gives me these errors: + parted --script /dev/sdb align-check opt 1 + parted --script /dev/sdb set 1 bios_grub ...
0
votes
1answer
189 views

What fs-type should I use in parted when creating an exFAT partition?

When I try to create a partition with parted and a filesystem type of 'exFAT', I encounter the following error: parted: invalid token: exFAT What fs-type should I use when creating a partition ...
0
votes
0answers
176 views

parted: resizefs -1s did not work but resizefs -100% works

I'm trying to resize the GPT partition to the end of disk (SD card) using following: $ sudo parted -s /dev/sdg -- resizepart 8 -1s But I got the following error Error: Unable to satisfy all ...
0
votes
0answers
25 views

Newly created partition number

I'm writing a program (in java) that slices a clean device onto a set of partitions, using parted mkpart to create the partitions. In order to create a next partition, I want to know a partition ...
0
votes
0answers
22 views

Shrink partition & Resize the other partition

I looked up all questions related but none seem to address my issue. Using the command parted /dev/sda I would like to shrink /dev/sda3 to 100 GB while extend /dev/sda2 to 1700 GB. This is the ...
0
votes
0answers
56 views

Partition Start and End Calculation

I was using the parted command and i was trying to create a new partition using the mkpart option. While i was doing this it asked for the partition start and end. Now i believe i know what the ...
0
votes
0answers
55 views

Hard disk Start and End Calculations (closed)

I am using the common Linux Parted command which is used to manipulate the partition table, but there is a problem. i was trying to create a new partition using the mkpart option. While i was doing ...
0
votes
0answers
144 views

Parted, cannot mount newly created partitions

I am making my own script for partitioning disks and I am unable to mount the partitions which were just created using parted CLI tool. I am doing this on a virtual machine with virtual disks, but ...
0
votes
1answer
514 views

How to create multiple partitions of the same size from command line?

I need to create 20 partitions of the same size (cue to the first comment only the first 3 can be primary and the 4th needs to be extended an the other remaining 17 in it) I tried: for i in $(seq 1 ...
0
votes
1answer
78 views

Does the Modifications Made In GNU Parted Affect the File System Table File?

My Nexus 7 (2013 WiFi) tablet PC has a corrupted partition table. I would now like to troubleshoot into Linux. After loading GNU Parted on the tablet and making a new GPT table with 30 partitions ...
0
votes
1answer
227 views

Where does this 16.1 GB device of “Model: General UDisk (scsi)” come from?

I installed Lubuntu 18.04 on the hard drive of a laptop (model: Toshiba Satellite C55Dt-A). When I boot into a live Lubuntu via a bootable flash drive (4GB) , sudo parted -l reports /dev/sdb as a ...
0
votes
1answer
116 views

Scripteable partitions using parted

This are my original partition tables of my device Number Start End Size File system Name Flags 19 210MB 4370MB 4161MB ext4 SYSTEM 20 4370MB 4633MB 262MB ...
0
votes
1answer
207 views

Dual Boot Linux Partition shows as Partition Table: loop in parted (Why?)

Recently I was checking into my partition scheme on my dual boot laptop (Peppermint OS, Windows 10). I was surprised by the output from parted /dev/sda12 (my Linux root partition) Model: Unknown (...
0
votes
0answers
257 views

Need to extend logical partition (Non -LVM)

I've got a physical server (RHEL 6.7) using standard partitioning with 10 partitions on block device /dev/sda. /dev/sda6 /home needs more space. Filesystem Size Used Avail Use% Mounted on /dev/...
0
votes
0answers
1k views

Parted: Creating partitions on a drive for EUFI boot, fat16 doesn't mount properly or show up on firmware as boot option

I have a library (referred to here as "wic") that generates a drive.img file that contains multiple partitions, including a boot partition with a UFI exe. If I dd if=drive.img of=/dev/sdb, it works ...
0
votes
2answers
234 views

I know a partition exists (bootable) but I can't find it in fdisk

I have a 16GB flash drive, which I converted to a bootable Kali (with persistence) drive awhile back. As far as I know it's just a Kali live ISO as a ~2GB partition with the rest automatically ...
0
votes
0answers
376 views

resizing partition was removed in latest version of parted

I am trying to resize a partition without tampering data on it. I cant backup data in external harddisk (as I am targeting this as a script) and internet backup was not an option. I was trying to use ...
0
votes
0answers
4k views

Error: Partition(s) on /dev/sda are being used

What specific commands need to be entered into a CentOS 7 server in order to: 1.) Partition the hard drive into 8 partitions and then 2.) Attach the first two partitions to the operating system, so ...
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, ...
0
votes
1answer
43 views

Will relabeling a partition destroy data

Is it possible to relabel a partition that was accidentally relabeled with a different file system type? We think we accidentally relabeled sdb1 as XFS when it should have been labeled lvm(8e), after ...
-1
votes
2answers
37 views

lvm sizes don't add upto the partition size

If you see these are my two partitions 1 and 2 Now if we look at the partition level sda2 is total of 149.5G ie root, swap, home of 50, 3.8, 25.7G each but that still not adds upto total size of the ...
-2
votes
1answer
719 views

How to move right the extended partition, to free room to enlarge the primary one?

What are the linux commands to move right the extended partition (below) over the 7G of free space while enlarging it as the primary partition with that amount. Here is parted outputting print free ...