[Bug 656526] Re: Device or resource busy while trying to open

Theodore Ts'o tytso at mit.edu
Fri Oct 12 00:41:29 UTC 2012


This is not a problem which anyone else (using Fedora, Debian, etc) has
complained about.    Nor have I ever seen the problem on Lucid on my
Goobuntu laptop running Lucid or Precise.

What I would suggest is that you download the e2fsprogs sources, and
then after you build it, build lib/ext2fs/tst_ismounted

cd lib/ext2fs
make tst_ismounted

This is a debugging program which uses the mechanism used by e2fsprogrs
to determine whether a device is busy or not:

# ./tst_ismounted /dev/closure/u1 
Device /dev/closure/u1 reports flags 00
# mount /dev/closure/u1
# ./tst_ismounted /dev/closure/u1 
Device /dev/closure/u1 reports flags 11
	/dev/closure/u1 is apparently in use.
	/dev/closure/u1 is mounted.
	/dev/closure/u1 is mounted on /u1.
# umount /dev/closure/u1
# e2fsck -f /dev/closure/u1
e2fsck 1.43-WIP (21-Sep-2012)
Pass 1: Checking inodes, blocks, and sizes
^Z
[1]+  Stopped                 e2fsck -f /dev/closure/u1
# ./tst_ismounted /dev/closure/u1 
Device /dev/closure/u1 reports flags 10
	/dev/closure/u1 is apparently in use.

# ./tst_ismounted /dev/sdb1
Device /dev/sdb1 reports flags 13
	/dev/sdb1 is apparently in use.
	/dev/sdb1 is mounted.
	/dev/sdb1 is the root filesystem.
	/dev/sdb1 is mounted on /.

# ./tst_ismounted /dev/sdb5
Device /dev/sdb5 reports flags 19
	/dev/sdb5 is apparently in use.
	/dev/sdb5 is mounted.
	/dev/sdb5 is a swap device.
	/dev/sdb5 is mounted on <swap>.

-- 
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/656526

Title:
  Device or resource busy while trying to open

Status in “e2fsprogs” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: e2fsprogs

  After a system crash my Ubuntu didn´t want to boot due some problems
  in Ext4 filesystem. I was trying to repair filesystem with booting
  from Ubuntu LiveCD and run fsck.ext4 and e2fsck. But both programs
  said me that:

  fsck.ext4: Device or resource busy while trying to open /dev/sda1
  Filesystem mounted or opened exclusively by another program?

  But this partition wasn´t mounted, I checked it with mount command.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: e2fsprogs 1.41.11-1ubuntu2
  ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
  Uname: Linux 2.6.32-25-generic i686
  Architecture: i386
  Date: Fri Oct  8 00:25:35 2010
  InstallationMedia: Ubuntu-Netbook 10.04 "Lucid Lynx" - Release i386 (20100429.4)
  ProcEnviron:
   LANG=ru_RU.UTF-8
   SHELL=/bin/bash
  SourcePackage: e2fsprogs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/656526/+subscriptions




More information about the foundations-bugs mailing list