[PATCH] e2fsck hangs up boot process because "Device or resource busy while checking ext3 journal for foobar"

Bug #1186331 reported by Montblanc
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
e2fsprogs (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I installed Kubuntu 13.04 x64 on a new SSD, but pointed its ext4 journal to another partition on a spinning disk (same block size, of course).

At every boot, e2fsck prompts me to check / for errors but it dies because:

fsck.ext4: Device or resource busy while checking ext3 journal for foobar

 foobar: ********** WARNING: Filesystem still has errors **********

[Please, also note: If I press I to ignore and continue the boot process, it complains about /tmp not being ready yet (I used bind in fstab because it's on another partition). So I press S to skip the mount and access lightdm which can't login yet because /tmp is unmounted (it would just restart itself). Accessing the tty with CTRL+ALT+F1 works and I can "sudo mountall" to correctly mount /tmp, then login and use the system as usual.]

Using a LiveCD to fsck the / partition shows that the filesystem is clean.

I built e2fsck from source and applied this patch http://www.spinics.net/lists/linux-ext4/msg38096.html before compiling and it solved the problem.

Now the boot-up process is smooth and it also carried away the /tmp not ready issue.

Please, apply this patch to e2fsprogs.

If you need more info, please just tell me.

Revision history for this message
Montblanc (montblanc) wrote :
Changed in e2fsprogs (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "journal.c patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

Revision history for this message
Ben Romer (bromer) wrote :

I have the same problem but the opposite disk arrangement (my root is on the spinning disk with ext4 journal data on SSD). I was able to work around the boot issue by turning off the automatic fsck in my /etc/fstab file, but obviously that is not an acceptable long-term solution.

Revision history for this message
Ben Romer (bromer) wrote :

It looks like this problem is fixed in 13.10. :)

Revision history for this message
Theodore Ts'o (tytso) wrote :

Fixed in 2013.

Changed in e2fsprogs (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Theodore Ts'o (tytso) wrote :

Was released a ***long*** time ago. Guess Canonical doesn't do this automatically.

Changed in e2fsprogs (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.