Fedora Linux Support Community & Resources Center
  #1  
Old 14th February 2012, 11:49 AM
mikebg Offline
Registered User
 
Join Date: Jun 2008
Posts: 38
linuxfirefox
Cannot reformat partition - in use by jbd2

Using Fedora 16 (64 bit) with ext4 filesystem. I previously ran Fedora 14 32 bit edition and ran a disk copy operation three times a week and once a month, which built a new filesystem on a spare disk and then copied the entire filesystem onto it. It ran without fail until installing a fresh 64 bit Fedora 16.

I now find that once a filesystem has been mounted, it will never be 'forgotten' by the system, as it is being held by jbd2. For example:

Linux-root (13:16) /home/mybg # lsof -ln | grep sdb2
jbd2/sdb2 20664 0 cwd DIR 9,0 4096 2 /
jbd2/sdb2 20664 0 rtd DIR 9,0 4096 2 /
jbd2/sdb2 20664 0 txt unknown /proc/20664/exe


Also here:
Linux-root (13:43) /home/mybg # ls -l /proc/fs/jbd2/
total 0
dr-xr-xr-x 2 root root 0 Feb 14 13:43 md0-8/
dr-xr-xr-x 2 root root 0 Feb 14 13:43 sdb2-8/
dr-xr-xr-x 2 root root 0 Feb 14 13:43 sdc2-8/
dr-xr-xr-x 2 root root 0 Feb 14 13:43 sde2-8/
dr-xr-xr-x 2 root root 0 Feb 14 13:43 sdf2-8/

All the partitions apart from md0 are backup partitions.

I cannot reformat any of these partitions, nor can I run e2fsck on them:

Linux-root (13:45) /home/mybg # /sbin/mkfs -v -t ext4 -m 1 -L tuesday /dev/sdb2
mke2fs 1.41.14 (22-Dec-2010)
/dev/sdb2 is apparently in use by the system; will not make a filesystem here!

Linux-root (13:46) /home/mybg # e2fsck /dev/sdb2
e2fsck 1.41.14 (22-Dec-2010)
e2fsck: Device or resource busy while trying to open /dev/sdb2
Filesystem mounted or opened exclusively by another program?

Any ideas? I have hunted for solutions but found nothing so far!
I could do a rm -fr on the mounted old backup filesystem before copying the current filesystem, but it would take far longer then just creating a new filesystem with mkfs.
Reply With Quote
  #2  
Old 21st April 2012, 05:18 PM
dmguru Offline
Registered User
 
Join Date: Dec 2008
Posts: 9
linuxfirefox
Re: Cannot reformat partition - in use by jbd2

Any luck finding a solution? I'm having same issue and have searched for hours looking for a solution.
I can't seem to find much documentation about jbd2.

I've unmounted file system but can't run fsck on it because jbd2 has the file system in use.
Can't seem to kill the jbd2 process either.
Reply With Quote
Reply

Tags
jbd2, partition, reformat

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! How do I reformat Fedora? ace655321 Using Fedora 3 26th December 2008 07:15 PM
How do I reformat from XFS to JFS on FC8? daviding Installation, Upgrades and Live Media 12 20th February 2008 04:47 AM
external hd reformat sleetm Using Fedora 1 18th April 2006 08:56 AM
Undo a partition reformat klatch Using Fedora 2 29th September 2005 06:41 AM
Reformat hdd Ron Hardware & Laptops 3 14th November 2004 09:03 PM


Current GMT-time: 07:24 (Thursday, 31-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat