Questions tagged [resize2fs]

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

Filter by
Sorted by
Tagged with
-2
votes
1answer
30 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
248 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
37 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 ...
0
votes
0answers
59 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 ...
1
vote
0answers
23 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
85 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 ...
7
votes
3answers
830 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
78 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
74 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
201 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
112 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
211 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
745 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
78 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
199 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
1k 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
565 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
180 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
401 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 ...
5
votes
2answers
4k 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
640 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
196 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
774 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
334 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 ...
3
votes
1answer
3k 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
77 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 ...
2
votes
1answer
9k 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 ...
5
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
667 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
102 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
67 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
18k 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
126 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
312 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
394 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
287 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
6k 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
152 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
800 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
3k 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
8k 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?
4
votes
2answers
4k views

How to resize LVM disk in Debian 8.6 without losing data

I need to resize my first disk (/dev/xvda) from 40 GB to 80 GB. I'm using XEN virtualization, and the disk is resized in XenCenter, but I need to resize its partitions without losing any data. The ...
1
vote
1answer
4k views

Ctrl-D prompt ,unable to boot the Linux system, after block-device shrink without file-system shrink beforehand

I wanted to shrink the file-system and unfortunately I have missed one step: Without resizing the file-system before, I reduced the logical volume. The result was that the system is not booting any ...
2
votes
0answers
877 views

Unable to resize filesystem on multipath device

I've encountered an issue with multipath storage. I've resized a LUN and have rescanned the system to account for it. Multipath recognizes the new size. Before rescan: mpathax (...
0
votes
3answers
169 views

Partitioning woes after SD card upgrade

I'm trying to upgrade my Raspberry PI's SD card to a bigger one. I've seen and tried guides like this one: https://raspberrypi.stackexchange.com/questions/499/how-can-i-resize-my-root-partition My ...
5
votes
1answer
20k views

Resize root lvm partition

I have a dedicated server with 2 TB storage. My problem is that the whole storage is allotted to the root partition. Whenever I try to resize it using lvresize, the root partition gets corrupted ...
0
votes
1answer
555 views

resize2fs fails on “Scanning inode table”

I consistently receive this exact error when attempting to shrink a partition on my system. This partition houses xubuntu, which has been giving me some strange errors about the disk on boot which I ...
2
votes
1answer
43 views

How to tell if a file system has been shrunk?

Is there any way to tell if a file system (regardless of its type) has been resized? Specifically shrunk?
1
vote
1answer
873 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: ...
3
votes
1answer
273 views

Filesystem still showing the old value after reduction in linux, however showing the correct value in LVM

We have a task to resize the filesystem from 8T to 7T which is in LVM. We have given resize2fs command, while the command is still being run we have got the error "Write failed: Connection reset by ...