[opensuse] solve an ext4 filesystem size problem
Hello, I probably classical problem, but I find no usable solution To solve the problems I speak of in other posts, I only could make a brand new install of 15.1. I planned to do so, but not that fast :-( But I had no free space. So I had to make room. I had no (no more) bootable system on this computer, so I started a rescue system on usb stick (15.1 usb one). On this rescue system, I could use parted to shrink an ext4 partition. But I expected parted to also shrink the ext4 file system (as do, I think, gparted), but it didn't. So I now have a partition with a too big file system in it. The initial partition was mostly empty (50 Gb used on 350Gb), so the risk to have lost files is low, anyway I didn't have so many important files there, but I would like to learn how to fix such problem. # e2fsck /dev/sdb4 e2fsck 1.43.8 (1-Jan-2018) The filesystem size (according to the superblock) is 86938065 blocks The physical size of the device is 62524007 blocks Either the superblock or the partition table is likely to be corrupt! what can I do to fix this? thanks jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Отправлено с iPhone
19 авг. 2019 г., в 11:56, "jdd@dodin.org" <jdd@dodin.org> написал(а):
Hello,
I probably classical problem, but I find no usable solution
To solve the problems I speak of in other posts, I only could make a brand new install of 15.1. I planned to do so, but not that fast :-(
But I had no free space. So I had to make room.
I had no (no more) bootable system on this computer, so I started a rescue system on usb stick (15.1 usb one).
On this rescue system, I could use parted to shrink an ext4 partition. But I expected parted to also shrink the ext4 file system (as do, I think, gparted), but it didn't.
So I now have a partition with a too big file system in it. The initial partition was mostly empty (50 Gb used on 350Gb), so the risk to have lost files is low, anyway I didn't have so many important files there, but I would like to learn how to fix such problem.
# e2fsck /dev/sdb4 e2fsck 1.43.8 (1-Jan-2018) The filesystem size (according to the superblock) is 86938065 blocks The physical size of the device is 62524007 blocks Either the superblock or the partition table is likely to be corrupt!
what can I do to fix this?
Restore original partition size, use resize2fs to shrink file system, reduce partition size back. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 19/08/2019 à 13:43, Andrei Borzenkov a écrit :
Restore original partition size, use resize2fs to shrink file system, reduce partition size back.
this, I can't as I use the rest of the part to run my 15.1 system I got back most of my data copying the (smaller) partition to an other disk much larger partition. After some pretty scary e2fsck messages (and answers). Video and image a readable, only the first level (root) of the partition was damaged and all was restored in lost+found but I have a probably better solution. I just did a clonezilla image, I just have to restore it to a other disk thanks jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 19/08/2019 10.56, jdd@dodin.org wrote:
On this rescue system, I could use parted to shrink an ext4 partition. But I expected parted to also shrink the ext4 file system (as do, I think, gparted), but it didn't.
Use the openSUSE XFCE rescue image. It contains gparted. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
Le 19/08/2019 à 14:01, Carlos E.R. a écrit :
On 19/08/2019 10.56, jdd@dodin.org wrote:
On this rescue system, I could use parted to shrink an ext4 partition. But I expected parted to also shrink the ext4 file system (as do, I think, gparted), but it didn't.
Use the openSUSE XFCE rescue image. It contains gparted.
or maybe the rescue system have the resize2fs utility? but it's too late now (for this) thanks jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Carlos E.R.
-
jdd@dodin.org