Questions tagged [parted]
A disk partitioning and partition resizing program.
260 questions
3 votes
2 answers
229 views
What should I backup before using parted or fdisk to resize a partition?
Let's say I have disk sda with format MBR and I have N partitions and I want to resize partition K (allocate more space on partition K) I will use a USB device and use a Linux installation medium so ...
1 vote
0 answers
89 views
No space left on device but only 50% space and 1% inodes used
This is on a Iomega IX200 NAS which had been expanded to 4TB disks from the original 2TB. It all looks good. But when I try to save data to a new file I get the "No space left on device error&...
2 votes
1 answer
562 views
Parted Error: The location XXMB is outside of the device /dev/xxx
I'm trying to manually create a distro on my SD card, starting with creating partitions and it's failing... $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 1 119.4G 0 disk vda ...
0 votes
1 answer
261 views
Extending Logical Volume Size Beyond 2TB in CentOS 7
I need to extend the size of the logical volumes in a CentOS 7 system and noticed that the current partition table cannot handle the updated disk size, which is around 5TB: Disk /dev/sda: 5497.6 GB, ...
0 votes
1 answer
112 views
Created a partition in the front of HDD with parted while it was mounted. What do I do so that my system doesn't crash on reboot?
I ran this command on /dev/sda1 when I meant to do something similar to /dev/sda2. /dev/sda1 was mounted at this time. sudo parted -a opt /dev/sda mkpart primary ext4 0% 100% Warning: You requested a ...
-2 votes
1 answer
128 views
Linux + how to increase partitions based on disk size
we have some red-hat servers with the following details ( when OS disk size is 230G ) # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 230G 0 disk ├─sda1 ...
3 votes
1 answer
265 views
Parted in scripted mode can increase but not decrease partition size
I am trying to use parted in scripted mode to resize a partition. When I use the command to increase the partition size it works but when I use the same command but simply change the sector size to ...
0 votes
1 answer
232 views
What is Recursive partition on /dev/sda
The disk I’m trying to recover the file system from, gives the error invalid partition table - recursive partition on /dev/sda. Is there a way to fix this particular problem? I’m using parted to ...
0 votes
1 answer
1k views
Which partition should be bootable, and why?
Using Debian 12.5 Bookworm, 64bit I wanted to teach myself how to partition my disks for my needs, so I did this: ——————————————————————————————| [!!] Partition Disks |—————————————————————————————— ...
0 votes
0 answers
124 views
RHEL 7.2 + is it possible to resize partition sda2 when parted not support resizepart
we have old RHEL machines with version 7.2 ( RHEL 7.2 ) this machines has old parted version that not support resizepart so for example we can't use this syntax in order to resize sda partiton parted /...
0 votes
2 answers
516 views
How to expand FAT32 SD Card Image
Given sd_card.img that is 512000000 bytes (i.e. 488MB): $ file sd_card.img sd_card.img: DOS/MBR boot sector; partition 1 : ID=0xc, start-CHS (0x0,1,1), end-CHS (0xdf,15,54), startsector 63, 999873 ...
0 votes
0 answers
655 views
How to use dd for only allocated space?
I want to backup whole disk using DD. I have a 512 Gb disk with 3 partitions who take only 8 Gb and the rest is unused. root@routerMARS:~# parted /dev/sda print Model: ATA MT-512 (scsi) Disk /dev/sda:...
2 votes
0 answers
165 views
500gb external hard drive listed with 512b only
Has anyone experienced this problem? I have a 500GB Seagate external hard drive that recently had some problems. Due to these problems I tried to format but unfortunately the formatting shows an error ...
0 votes
0 answers
242 views
parted not recognizing loop device
I created a loop device with $ truncate -s 20G test.img $ losetup -fP ./test.img $ losetup -a /dev/loop0: [0032]:4051 (/tmp/test/test.img) lsblk is able to see it just fine $ test]# lsblk NAME ...
2 votes
1 answer
4k views
Move partition to end of disk
I have a VM on Promox running Debian 11. I need to increase disk space, so I've resized disk in Proxmox GUI. But now, I need to enlarge root partition. This wouldn't be a problem, if root partition ...