Device or resource busy while trying to open
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
e2fsprogs (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
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
ProcVersionSign
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
description: | updated |
Changed in e2fsprogs (Ubuntu): | |
status: | New → Incomplete |
Changed in e2fsprogs (Ubuntu): | |
status: | Incomplete → Confirmed |
Exactly the same problem here.
After Ubuntu 10.04 crashed I tried, using a 10.10 live CD, run a "fsck -y" and received the following message:
ubuntu@ubuntu:~$ LANG=en sudo fsck -y /dev/sda10
fsck from util-linux-ng 2.17.2
fsck.ext4: Device or resource busy while trying to open /dev/sda10
Filesystem mounted or opened exclusively by another program?
Even the FS is not mounted as you can see:
ubuntu@ubuntu:~$ mount nosuid, nodev) nosuid, nodev) fuse/connection s type fusectl (rw) nosuid, gid=5,mode= 0620) security type securityfs (rw) mode=0755) nosuid, nodev) fs/binfmt_ misc type binfmt_misc (rw,noexec, nosuid, nodev) fuse-daemon (rw,nosuid, nodev,user= ubuntu)
aufs on / type aufs (rw)
none on /proc type proc (rw,noexec,
none on /sys type sysfs (rw,noexec,
fusectl on /sys/fs/
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,
/dev/sr0 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/
none on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,
none on /var/lock type tmpfs (rw,noexec,
binfmt_misc on /proc/sys/
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-
ubuntu@ubuntu:~$
The disk partition table is:
ubuntu@ubuntu:~$ LANG=en sudo fdisk -l /dev/sda
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x31883188
Device Boot Start End Blocks Id System
/dev/sda1 * 1 650 5221093+ b W95 FAT32
/dev/sda2 651 9729 72927067+ f W95 Ext'd (LBA)
/dev/sda5 651 663 104391 82 Linux swap / Solaris
/dev/sda6 664 676 104391 83 Linux
/dev/sda7 677 689 104391 82 Linux swap / Solaris
/dev/sda8 690 754 522081 82 Linux swap / Solaris
/dev/sda9 755 3941 25599546 83 Linux
/dev/sda10 3942 7128 25599546 83 Linux
/dev/sda11 7129 9729 20892501 83 Linux
ubuntu@ubuntu:~$
If I run fsck in ext3 partitions everything goes ok:
ubuntu@ubuntu:~$ LANG=en sudo fsck -a /dev/sda11
fsck from util-linux-ng 2.17.2
/dev/sda11: clean, 217060/2616320 files, 3828007/5223125 blocks
ubuntu@ubuntu:~$