[Bug 1857914] Re: resize2fs destroy the content of the partition
Theodore Ts'o
tytso at mit.edu
Mon Dec 30 19:49:28 UTC 2019
Can you provide a detailed reproduction instructions --- preferably one
that I can run myself, so I can see exactly is going on?
One thing that would be helpful is whether this can me reproduced
without gpart being part of the mix. That is, can you do something like
this:
mke2fs -t ext4 /path/to/fs.img 20G
mount -o loop /path/to/fs.img /mnt
<create files, or not, if it's not needed for the repro>
umount /mnt
e2fsck -fy /path/to/fs.img
resize2fs /path/to/fs.img 30G
If it does require gpart being in the mix, this could very much be a
gpart bug, in which case I'll be happy to hand this off to the gpart
maintainer.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to e2fsprogs in Ubuntu.
https://bugs.launchpad.net/bugs/1857914
Title:
resize2fs destroy the content of the partition
Status in e2fsprogs package in Ubuntu:
New
Bug description:
Hello
The used version of ubuntu is 19.10
So the used version of ubuntu is GParted 0.32.0
and the used of resize2fs is 1.45.3 (14-Jul-2019)
I wanted to shrink by 20 GB the size of an old partition created with
ubuntu 18.04 and stored on an external hard drive connected by USB3.
The process says it works perfectly well see attachment file
But the partition can no longer be mounted. The message is:
mount: /mnt/sdb2 : wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or helper program, or other error.
if I do the stupidity to launch the fsk command to repair, I find all
the files and directory in the special directory called Lost + found
Being able to remake the original content, I have seen four times that
it gives this unpleasant result.
It also allows me to change the scenario.
- If I use an internal disk partition instead of the external disk, you're fine.
- If I use version 18.04, everything is fine even if I use the external disk
- If I make a new partition on the external disk in version 19.10, I can shrink also without any problem.
So I think there is a software regression for a very specific context.
Thanks.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1857914/+subscriptions
More information about the foundations-bugs
mailing list