Questions tagged [resize2fs]

A utility to resize ext2, ext3, or ext4 file systems.

Filter by
Sorted by
Tagged with
2
votes
0answers
32 views

How to calculate correct partition size when shrinking filesystem with resize2fs

After shrinking a read only filesystem with resize2fs on GNU/Linux, how do i determine the correct partition entry for the shrunken filesystem? Initial partition scheme of remote host: Disk /dev/sda: ...
-1
votes
1answer
31 views

How to resize LVM

I found many related questions and answers like this or guides like this but most of them didn't want to do exactly what I want and I am feeling quite insecure and am afraid of doing something wrong. ...
0
votes
1answer
153 views

rhel + efsck + Deleted inode xxxxx has zero dtime

when I try to resize the disk we get that resize2fs /dev/sdb resize2fs 1.42.9 (28-Dec-2013) Please run 'e2fsck -f /dev/sdb' first. so when I try to do e2fsck I get the following e2fsck -f /dev/sdb ...
0
votes
1answer
53 views

Partition mounting/resizing failed to read last sector?

After a failed resizing operation, mount operation is failing with: Failed to read last sector (718198764): Invalid argument The partition is not accessible with Gparted and other GUI tools. How can ...
1
vote
1answer
114 views

How to shrink a file image, produced with dd?

I tried the process from this post resize partition on an image file. I didn't succeed in understanding why it goes wrong in my case. I produced a 8GB image using dd. The image contains two partitions....
0
votes
1answer
500 views

How to recover filesystem and physical size mismatch

I was trying to shrink my home partition. I followed this ArchWiki article for that. According to this I first resized my filesystem using resize2fs and then resized my physical device using parted. ...
0
votes
2answers
178 views

resize home partition and take from root partition to increase home space

here is my partitions lsblk -o NAME,FSTYPE,LABEL,SIZE,MOUNTPOINT NAME FSTYPE LABEL SIZE MOUNTPOINT sdb 9.1T ├─sdb1 swap 16G [SWAP] ├─sdb2 ext3 512M /boot ├─sdb3 ...
0
votes
1answer
16 views

I would like to extend /dev/sdb1

[root@localhost ~]# df -h ; fdisk -l Filesystem Size Used Avail Use% Mounted on devtmpfs 894M 0 894M 0% /dev tmpfs 910M 0 910M 0% /dev/...
1
vote
1answer
483 views

How to check progress of an already running lvresize command?

First, filesystem was backed up and unmounted succesfully. Then, an lvresize was executed, and is already running: lvresize --resizefs --size 1024G /dev/dbdrp/db And shows the output: fsck from ...
-2
votes
1answer
31 views

Is there any reason why ext4 device drivers cannot be updated to allow online resize (reduce AND extend)?

Question says it all really. I am a little baffled why ext4 doesn't already provide the ability for a partition to be resized online. Can anyone help me to understand why this does not exist please? ...
0
votes
2answers
3k views

Ubuntu 18.04 Extend Disk

I've got a virtual Ubuntu 18.04 server which is running low on disk space. As this is a virtual server I increased the hard disk size in vSphere. I can see the free space in cfdisk but am unsure how ...
0
votes
1answer
111 views

Ubuntu on Azure: increase partition size

I have basic unix skills and have to do some maintenance on a linux machine (Ubuntu 18.04). hosted on Azure. I need to resize the /dev/sda1 partition, giving more space to it. When I run df -h it ...
2
votes
1answer
208 views

Just how dangerous is sending SIGINT to resize2fs tasked with shrinking?

I inherited an old PC-server (quad Pentium 4) that only had partitions for /, /boot and swap (RAID1 with 2 1T SATA disks), but needed to update the distro (from CentOS 6.9). I decided to create a new ...
0
votes
0answers
28 views

How to merge two unallocated partitions which 1st is on left site and 2nd is on right side [duplicate]

This is how it looks. I wonder if it's possible to merge the 2 unallocated partitions without data loss
0
votes
1answer
219 views

“Resize2FS” compact data blocks before resize

We suppose to have a partition of 100Gb filled up by 75Gb of data. We want to reduce it by 20Gb. Does resize2fs move the 75Gb of data to the remaining 80Gb, and then resize the partition? In other ...
8
votes
3answers
2k views

How can a disk without a partition be “partitioned” without losing data?

I have a 1TB portable hard drive that I use for backups. The entire drive (/dev/sdb) has been formatted as an ext4 filesystem. I have been reading about the benefits of btrfs for backups (checksums, ...
1
vote
0answers
102 views

Does `resize2fs` only move the end position of a filesystem?

man resize2fs says The size parameter specifies the requested new size of the filesystem. Does resize2fs only move the end position of a filesystem, not the beginning position of a filesystem (...
-1
votes
1answer
121 views

How shall I better calcuate the target sizes for shrinking a LV and filesystem?

I had a LV with a ext4 filesystem. lubuntu@lubuntu:~$ sudo parted -l Model: Linux device-mapper (linear) (dm) Disk /dev/mapper/lubuntu--vg-root: 499GB Sector size (logical/physical): 512B/512B ...
0
votes
3answers
376 views

Does `resize2fs` by default do nothing?

For resize2fs, If ``size parameter is not specified, it will default to the size of the partition The size of a filesystem is by default the size of its underlying partition. So by default, ...
-1
votes
1answer
153 views

How does `resize2fs` change the size of a file system?

According to https://unix.stackexchange.com/a/501454/674, parted's resizepart does not care about the filesystem at all. It just changes the partition table to specify a new location where the ...
-1
votes
1answer
364 views

How is the size of a filesystem defined?

man resize2fs says The resize2fs program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device. ... The size parameter ...
0
votes
1answer
1k views

Do `parted resizepart` and `resize2fs` not modify or remove existing files on a partition?

Does parted's resizepart command by default not modify or remove existing files on a partition? Furthermore, does it never modify or remove existing files on a partition (even by some option)? ...
1
vote
1answer
111 views

Extend filesystem and LVM

I need to add more space to my filesystem. Right now it looks like this : Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_dcqsvu009-lv_root 50G 47G ...
1
vote
1answer
498 views

resize2fs failed to find disk

I'm trying to resize my disk that's on google cloud from 1TB to 2 TB. I resized the disk space in google's console as instructed and: df -h Filesystem Size Used Avail Use% Mounted on overlay ...
0
votes
2answers
2k views

How to resize linux partition with RAID1?

I have a Proxmox disk with 130Gb LVM image. I moved it to 235Gb disk. And resized in the Proxmox. Done. But in my Linux distro, the partition still 130Gb (disk become 235Gb). The partitions: /dev/...
0
votes
1answer
663 views

Resize partition without using LVM

I have Ubuntu 16.04 installed on remote server and I have requested another 20GB for my /dev/vda2 partition (now its 20GB), so the total size would be 40GB. Since vda2 is full of very valuable data (...
1
vote
1answer
308 views

Extend LVM size

I have an EC2 instance which has 2 EBS (1 x 200G, 1 x 100G). Below is the output of lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvde1 202:65 0 200G 0 disk / xvdj ...
3
votes
1answer
630 views

why is resize2fs telling me wrong information

Good afternoon! I am attempting to shrink an ext4 partition and I have found many tutorials online to achieve this, however, when implementing the actual changes, resize2fs is telling me wrong ...
7
votes
2answers
6k views

How to shrink a partition below the minimum size reported by resize2fs?

I want to shrink a 250GB ext4 partition down to 200GB with resize2fs. The df tool says the partition is about 40% filled up. So, I guess I can, at least, shrink the partition to that level. Yet, ...
4
votes
0answers
1k 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? (...
0
votes
1answer
253 views

Unable to Mount… EXT4: First Meta block group too large

EXT4-fs (dm-46): first meta block group too large: 1152 (group descriptor block count 1096) I have a filesystem, which is ext4, on a machine with 4.17.2-1.el7.elrepo.x86_64. The logical volume is 8....
1
vote
1answer
1k views

GParted won't resize physical volume

Booted from an USB Ubuntu 18.04 and I'm trying to shrink my current Ubuntu 16.04 partition. For the sake of completion, this is what lsblk returns in the momento I'm writing this: sda ...
0
votes
1answer
470 views

LVM not able to be resized or checked with resize2fs and e2fsck

I extended an lvm from the terminal in system rescue live CD using the commands: # pvcreate /dev/sda7 # vgextend fedora /dev/sda7 # lvextend -l +100%FREE /dev/fedora/root The above worked but when ...
4
votes
1answer
6k views

Resize2fs keeps asking me to run e2fsck -f [closed]

I set-up a server with LVM, and I just recently extended one of my logical volumes from 25TB to 35. root@server:/home/user# df -h /dev/mapper/vg--data-lv--data Filesystem Size ...
-1
votes
1answer
91 views

Fedora installed on Windows Partition

I have installed Fedora 32 on a 1 TB drive, which was filled up with data. I have resized to 50 GB, because there was no bigger value to choose and I had 50 GB free to use. After I installed it on ...
3
votes
1answer
13k views

resize2fs fail to resize partition to full capacity?

Added a new disk (/dev/vdb) of 2TB with existing data from the previous 1TB disk. I used fdisk /dev/vdb to extend its only partition /dev/vdb1 to full capacity of 2TB from previous 1TB. And then I ...
6
votes
0answers
2k views

How to stop jbd2 on unmounted filesystem

I need to resize2fs the root partition of an embedded device. Since it doesn't have an alternate boot option, I used an tmpfs, moved and restated everything until I finally was able to umount /dev/...
1
vote
1answer
759 views

How to resize logical volume in Red Hat Linux

Please guide that how to do following tasks with executing command. 1.Create a new physical volume, create a new volume group in the name of dataconresize, vg extent is 16.00MB. 2.Create a new ...
0
votes
1answer
106 views

Merge partitions resize2fs error

I was following this guide How do I combine two logical volumes that reside on a single physical volume in LVM? To merge /data into / So / would have 60G space in addition. Everything was done ...
1
vote
2answers
80 views

Want to increase partition sizes - how to do so safely?

I'm looking to resize a number of partitions, but I'm unsure how to go about doing this. I want to increase the partition size of the /var partition, that is in the middle of all the other partitions....
10
votes
4answers
24k views

Why do I need to do resize2fs after lvextend?

For resizing LVM2 partition, one needs to perform the following 2 commands: # lvextend -L+1G /dev/myvg/homevol # resize2fs /dev/myvg/homevol However, when I perform lvextend, I see that the changes ...
0
votes
1answer
155 views

How to migrate partitions and file systems to another device

I have an existing system with partitions but want to move them to a new device. The new device may be smaller and be connected to the system differently then the existing device. How do I move the ...
1
vote
0answers
343 views

Want to allocate space to centos-root folder

Below is my df -h output [root@dpnjsv2-centos7-base logs]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 12G 9.8G 1.6G 87% / devtmpfs 2....
0
votes
1answer
424 views

Amazon EBS - extend LVM partition (non destructively)

I have an Amazon EBS volume that I'm using as a backing store for MongoDB, and I want to extend it. The volume holds a single partition, which is an LVM partition type. That partition belongs to a ...
0
votes
1answer
421 views

fdisk not seing resize2fs shrinking unmounted partition

I need to make another parition (/dev/vda2) on an existing disk (/dev/vda, 20G). umount /mnt/ resize2fs /dev/vda1 10G df -h ... /dev/vda1 9.8G 7.8G 1.5G 85% /mnt So it's ok on this side, ...
3
votes
1answer
8k views

How to increase size of filesystem to match partition

Apologies for this question but I am very new to Linux. When I installed my Fedora distribution I only allocated 20GB of my hard drive space for its partition. I recently used GParted and tried to ...
1
vote
0answers
166 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 ...
0
votes
1answer
995 views

How do I update the partition table on a disk image file after resizing a partition in it?

I'm trying to resize a disk image (Raspbian image) on disk. The trouble is, when I attempt to boot the RaspberryPi from the resized image (after writing to an SD card) I get: Kernel panic - not ...
2
votes
2answers
4k views

bad geometry: block count 967424 exceeds size of device (415232 blocks)

I am trying to understand what I did wrong with the following mount command. Take the following file from here: http://elinux.org/CI20_Distros#Debian_8_2016-02-02_Beta Simply download the img file ...
3
votes
2answers
11k views

resize2fs command not found

I want to resize EC2 EBS root volume, I tried to install e2fsprogs but it's still "not found". I'm using debian 8. How do I install this application?