Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [resize2fs]

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

6
votes
3answers
337 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
37 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
44 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
50 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
45 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
95 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
280 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)? ...
0
votes
0answers
25 views

How does `resize2fs` do to shrink a file system? [duplicate]

resize2fs will resize ext2, ext3, or ext4 file systems. How does resize2fs do to shrink a file system, by removing files, or by defragmenting the files without removing or modifying existing files, or ...
0
votes
0answers
42 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
65 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
315 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
201 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
62 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 ...
1
vote
0answers
109 views

Why can't I recover (nearly) all free space with resize2fs? [closed]

I have an image made from an 8G SD card with Raspbian Stretch 9.4. I've mounted it as a loopback device on a Debian Stretch laptop. I've run resize2fs /dev/loop0p2 -M and then dumpe2fs -h /dev/...
3
votes
1answer
151 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 ...
1
vote
2answers
1k 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
366 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
94 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
525 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
195 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 ...
2
votes
1answer
2k views

Resize2fs keeps asking me to run e2fsck -f

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
65 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
4k 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 ...
3
votes
0answers
806 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
375 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
82 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
48 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....
5
votes
4answers
10k 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
93 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
248 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
327 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
134 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
3k 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
123 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
542 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
1answer
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
5k 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
3k 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
2k 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
669 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
140 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 ...
3
votes
1answer
14k 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
443 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
40 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
701 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
259 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 ...
2
votes
1answer
894 views

resize2fs: Not enough reserved gdt blocks for resizing

I'm trying to resize rootfs partion from 250Gb to 1000Gb. # sudo resize2fs /dev/sda1 resize2fs 1.42.9 (4-Feb-2014) Filesystem at /dev/sda1 is mounted on /; on-line resizing required old_desc_blocks = ...
3
votes
1answer
289 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
vote
1answer
959 views

Resizing directories

I am not too familiar with how volume sizing works, but I have a VPS running Ubuntu 14.04, and I noticed the home directory is all used up. I have a 1TB drive on this machine, how can I allocate more ...
3
votes
1answer
488 views

If I grow an ext4 partition, will it increase the number of inodes available?

If I create a small filesystem, and grow it when I need to, will the number of inodes increase proportionally? I want to use Docker with the overlay storage driver. This can be very inode hungry ...