resize2fs doesn't notice the partition was fsck'ed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
e2fsprogs (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
gparted (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gparted
Running from a live cd image of ubuntu 9.04 through virtual box.
When trying to shrink a partition (on a virtual box HDD) I got a message saying the e2fsck should be run on the affected partition. It was run and finished without errors:
check file system on /dev/sda5 for errors and (if possible) fix them 00:04:02 ( SUCCESS )
e2fsck -f -y -v /dev/sda5
....
shrink file system 00:00:01 ( ERROR )
resize2fs /dev/sda5 15791863K
resize2fs 1.41.4 (27-Jan-2009)
Please run 'e2fsck -f /dev/sda5' first.
(full output attached)
Manually running e2fsck followed by resize2fs ends in the same result.
Performing the operation on another partition (/dev/sda6) also fails.
Note: resizing partitions inside a virtual box disk (VDI) using a gparted from a livecd is the recommended way (http://
description: | updated |
Changed in e2fsprogs (Ubuntu): | |
status: | Confirmed → Fix Released |
status: | Fix Released → Confirmed |
Changed in gparted (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in gparted (Ubuntu): | |
status: | Invalid → Confirmed |
tags: | added: jaunty |
Changed in e2fsprogs (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in gparted (Ubuntu): | |
status: | Confirmed → Fix Released |
I think I have the same problem. It resizes the partition, checks the file system, then tries to resize the filesystem to fit the partition. resize2fs gives an error, so GParted just gives up and doesn't try to fix the problem it created.
ubuntu@ubuntu:~$ sudo resize2fs -p /dev/sda7
resize2fs 1.41.4 (27-Jan-2009)
Please run 'e2fsck -f /dev/sda7' first.
ubuntu@ubuntu:~$ sudo e2fsck -f /dev/sda7
e2fsck 1.41.4 (27-Jan-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Jaunty: 665315/4340752 files (0.6% non-contiguous), 16571397/17464655 blocks
ubuntu@ubuntu:~$ sudo resize2fs -p /dev/sda7
resize2fs 1.41.4 (27-Jan-2009)
Please run 'e2fsck -f /dev/sda7' first.