Bug 578955 - Re-Check minimum size of partition after running fsck on it
Summary: Re-Check minimum size of partition after running fsck on it
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-01 21:10 UTC by Brian Lane
Modified: 2010-07-13 20:54 UTC (History)
5 users (show)

Fixed In Version: 13.37.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-13 20:54:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
e2fsck info (88.58 KB, image/png)
2010-04-19 08:08 UTC, He Rui
no flags Details

Description Brian Lane 2010-04-01 21:10:05 UTC
Description of problem:
When resize2fs is run on a partition that was not properly unmounted (see bug 576060) the wrong minimum size is returned. Anaconda then uses this to limit what the user can set. If it is too small the resize will fail.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Install system with / on a primary partition
2. At the package selection screen turn off the system
3. Select resize with no format for the / primary partition and use the minimum
4. resize will fail because the reported minumum was too small
  
The solution for this is to rerun resize2fs -P after running e2fsck on the partition(s) selected for install. If the new minimum size is greater than the size selected adjust the size to match the correct minimum.

Comment 1 Brian Lane 2010-04-06 22:04:55 UTC
Patch committed to master and f13-branch.

Comment 2 James Laska 2010-04-16 16:19:36 UTC
Opening this up so rhe can confirm this resolves the problem she was hitting in bug#576060

Comment 3 James Laska 2010-04-16 16:20:19 UTC
rhe: I believe this should workaround the problem you encountered when filing bug#576060.  Are you able to confirm the fix?  Thanks!

Comment 4 He Rui 2010-04-19 08:05:44 UTC
(In reply to comment #3)
> rhe: I believe this should workaround the problem you encountered when filing
> bug#576060.  Are you able to confirm the fix?  Thanks! 

Yeah, the fix works for me.

I executed e2fsck and resize2fs -P at the beginning of stage2 in tty2, then the default shrunk size was 540 instead of 67M, which could shrink the system successfully without bug#576060 happening

Comment 5 He Rui 2010-04-19 08:08:31 UTC
Created attachment 407504 [details]
e2fsck info

The console info when I executed e2fsck before shrinking /dev/sda2/


Note You need to log in before you can comment on or make changes to this bug.