Questions tagged [resize2fs]
A utility to resize ext2, ext3, or ext4 file systems.
128 questions
4
votes
2
answers
113
views
How to resize ext4 without adding more inodes?
On this filesystem, there are enough inodes already, I only need more filesystem size:
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/spinning-backup ...
0
votes
1
answer
39
views
Unable to extend fedora Server VirtualBox Volume (lvm2)
I Im trying to resize my root volume. I already resized the virtual volume inside virtualbox and also reallocated the space with gparted:
But undortunately after using lvextend and resize2fs there is ...
6
votes
3
answers
2k
views
filesystem on disk without partition
One may help me with this, because its confusing me:
I have a 1.8T Disk (it's a VM virtual disk), here a snippet of df:
df -TH
Filesystem Type Size Used Avail Use% ...
0
votes
2
answers
681
views
The filesystem is already 65010688 (4k) blocks long
Please help me , when I try to increase the partition size in LVM, but when I try it doesn’t work,
I do the following:
df -h
Filesystem Size Used Avail Use% Mounted on
udev ...
0
votes
1
answer
530
views
Moving Pop-OS installation to a smaller drive (using GParted?)
I need to move a Pop-OS installation from a 250GB HDD to a 128GB SSD. So far I have been trying to use GParted (which worked for moving my Ubuntu installation between drives of the same size).
The ...
1
vote
1
answer
414
views
Resize2fs shrink operation leaves free space in filesystem?
I'm trying to shrink a filesystem image down to the smallest possible size. I'm okay with resize2fs leaving reserved filesystem blocks in place, but it's leaving about 400Mb of free space in the ...
0
votes
0
answers
141
views
How can i use ffmpeg to compress a .mp4 ( h264 ) to a smaller size without quality loss? [duplicate]
Hello i am kinda new with ffmpeg and learning everyday, i am now looking for on how i can compress a video in a smaller size. since i have some 1920x1080 mp4 files with a rediculous high size.
For ...
0
votes
1
answer
931
views
How can I clone from 1TB MBR ssd to 4TB GPT ssd?
I have a raspberry pi with a 1TB hard drive. I managed to fill it up, so I purchased a new 4TB hard drive to replace it.
I then used software called "Macurim Reflect" to clone the previous ...
0
votes
1
answer
428
views
Remove swap partition and extend root one(ext4)
sda 8:0 0 400G 0 disk
├─sda1 8:1 0 953M 0 part /boot
├─sda2 8:2 0 7.5G 0 part
├─sda3 8:3 0 1K 0 part
└─sda5 8:5 0 391.6G 0 part /
I'm having this type of ...
1
vote
1
answer
161
views
Negative disk used space after shrinking RAID1 in Debian 11
I resized an ext4 software RAID1 consisting of two disks sda3 and sdb3 (in rescue mode, i.e. disks are not mounted):
e2fsck -f /dev/md126
resize2fs /dev/md126 39G
mdadm --grow /dev/md126 --size 40G
...
0
votes
1
answer
218
views
resize /dev/sda8 to add 40GB
I have a question regarding the enlargement of a partition without LVM.
I have already read through some things how to proceed here, but I am still unsure, so I ask the question myself.
I have /dev/...
0
votes
0
answers
842
views
Can't resize mounted file to dir after increasing size (fallocate)
I created a file to mount as /tmp dir to limit it's size so it cant crash the system. I used mkfs.ext4 on it and it mounts in /etc/fstab. Now I need to increase the size, so I used fallocate again, ...
1
vote
1
answer
10k
views
In an Ubuntu VM in VMWare I increased the hard disk space, how do I add that to the file system?
I have an Ubuntu (v20.04) VM in VMWare. I increased (2x from 20G to 40G) the hard disk size. How do I add that space to the file system?
From lsblk, I have the following: sda is 40G type disk which is ...
0
votes
1
answer
633
views
How to resize /dev/sda2 when it is md0 sw raid 1
I just added bigger 4TBfrom 2TB ssd to the md0 raid but the size is still the same. I tryed to resize .partition but it says it is busy. Parted is still resizing it on old size.
array:
Personalities : ...
0
votes
1
answer
5k
views
Adjust a disk space available for a directory in Linux
I need to adjust the disk space given for an ordinary directory such as /opt directory. I'd found that the /opt directory allocates the space 4.0G, by using the below command:
sudo du -sh /opt
I need ...
2
votes
2
answers
2k
views
Unable to extend LV file system in Ubuntu Server
I run a bare metal Ubuntu server with several VMs running in a KVM environment. I want to increase the size of one VM from 50GB to 100GB.
I ran the following command to increase the nextcloudph-lv ...
0
votes
1
answer
321
views
Umderstanding the output of resizefs -d 32
After shrinking an ext4 file system with resize2fs M I mounted it to realize it has only 57% used. So I ran
$ resize2fs -d 32 -M rootfs-2021-06-28.img
resize2fs 1.44.5 (15-Dec-2018)
fs has 9698 inodes,...
1
vote
0
answers
488
views
Calculate correctly the ext2 used blocks by the file system
What I'm trying achieve is, a safe shrinking of an ext2 file system and make sure I can cut/shrink the physical partition underneath to a safe minimum (without cutting file system blocks). I have ...
1
vote
1
answer
87
views
is it possible to know on which date and time resize2fs was activated on disk
we have rhel machine with disk sdb , and disk OS is sda
before couple days - not sure about the time & date
resize2fs was implemented on the disk sdb , so disk sdb expended from 20G to 40G
is it ...
3
votes
0
answers
797
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: ...
2
votes
1
answer
4k
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
...
2
votes
1
answer
6k
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
2
answers
2k
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 ...
2
votes
2
answers
5k
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 ...
1
vote
3
answers
19k
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 ...