[Bug 711799] Re: e2fsprogs wrongly identifies ext4 as mounted

Philipp Gampe dev at philippgampe.info
Sat Apr 28 23:22:22 UTC 2012


I think I got hit by this problem too.

Fedora 16
# e2fsck -V
e2fsck 1.41.14 (22-Dec-2010)
	Benutze EXT2FS Library version 1.41.14, 22-Dec-2010

The device is definitely not mounted.

However I can mount and use the device as usual. Just once I umount it
(and it is not listed any more on /proc/mounts), I can not run e2fsck on
it.

---------------------------------------------------------------------------------------

# tune2fs -l /dev/sdb1 
tune2fs 1.41.14 (22-Dec-2010)
Filesystem volume name:   win7
Last mounted on:          /media/win7
Filesystem UUID:          7617b06c-9916-47ca-96bf-3f9ddc6fc592
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      ext_attr resize_inode dir_index filetype sparse_super large_file
Filesystem flags:         signed_directory_hash 
Default mount options:    (none)
Filesystem state:         not clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              9898080
Block count:              39731200
Reserved block count:     1986560
Free blocks:              3582970
Free inodes:              9833445
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1014
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8160
Inode blocks per group:   510
Filesystem created:       Sun Jan  9 15:10:44 2011
Last mount time:          Sat Apr 28 15:54:11 2012
Last write time:          Sat Apr 28 15:55:08 2012
Mount count:              4
Maximum mount count:      28
Last checked:             Sat Apr 28 15:01:42 2012
Check interval:           15552000 (6 months)
Next check after:         Thu Oct 25 15:01:42 2012
Lifetime writes:          176 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     28
Desired extra isize:      28
Default directory hash:   half_md4
Directory Hash Seed:      233e63e3-27e2-4b33-987f-b932f2c81aa0

---------------------------------------------------------------------------------------

I can not guaranty that there are physical errors, but smartctl still says PASSED.
# smartctl -a /dev/sdb1 
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.3.2-6.fc16.x86_64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda LP
Device Model:     ST31500541AS
Serial Number:    9XW0ECDZ
LU WWN Device Id: 5 000c50 0206609c0
Firmware Version: CC34
User Capacity:    1.500.301.910.016 bytes [1,50 TB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 4
Local Time is:    Sun Apr 29 01:19:47 2012 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(  653) seconds.
Offline data collection
capabilities: 			 (0x73) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 255) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x103f)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   114   099   006    Pre-fail  Always       -       77166356
  3 Spin_Up_Time            0x0003   100   100   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       759
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   072   060   030    Pre-fail  Always       -       16025158
  9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -       4312
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       743
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   065   060   045    Old_age   Always       -       35 (Min/Max 22/36)
194 Temperature_Celsius     0x0022   035   040   000    Old_age   Always       -       35 (0 15 0 0 0)
195 Hardware_ECC_Recovered  0x001a   063   051   000    Old_age   Always       -       77166356
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       7997229111372
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       952022423
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       3219442744

SMART Error Log Version: 1
No Errors Logged

---------------------------------------------------------------------------------------

Here is what e2fsk does to me:
execve("/sbin/e2fsck", ["e2fsck", "-y", "/dev/sdb1"], [/* 30 vars */]) = 0
brk(0)                                  = 0x1f5b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff787ec2000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=180423, ...}) = 0
mmap(NULL, 180423, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff787e95000
close(3)                                = 0
open("/lib64/libext2fs.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\227\200\0218\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=198088, ...}) = 0
mmap(0x3811800000, 2291264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3811800000
mprotect(0x381182e000, 2097152, PROT_NONE) = 0
mmap(0x3811a2e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2e000) = 0x3811a2e000
close(3)                                = 0
open("/lib64/libcom_err.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\23\300\0318\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=15104, ...}) = 0
mmap(0x3819c00000, 2107512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3819c00000
mprotect(0x3819c03000, 2093056, PROT_NONE) = 0
mmap(0x3819e02000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x3819e02000
close(3)                                = 0
open("/lib64/libblkid.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`g\200\0278\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=158296, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff787e94000
mmap(0x3817800000, 2250904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3817800000
mprotect(0x3817823000, 2093056, PROT_NONE) = 0
mmap(0x3817a22000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x3817a22000
close(3)                                = 0
open("/lib64/libuuid.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\26\300\0258\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=21688, ...}) = 0
mmap(0x3815c00000, 2113968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3815c00000
mprotect(0x3815c04000, 2093056, PROT_NONE) = 0
mmap(0x3815e03000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x3815e03000
close(3)                                = 0
open("/lib64/libe2p.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\35@\0228\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=31008, ...}) = 0
mmap(0x3812400000, 2124400, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3812400000
mprotect(0x3812406000, 2097152, PROT_NONE) = 0
mmap(0x3812606000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x3812606000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\27B\0218\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2076800, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff787e93000
mmap(0x3811400000, 3896632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3811400000
mprotect(0x38115ad000, 2097152, PROT_NONE) = 0
mmap(0x38117ad000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ad000) = 0x38117ad000
mmap(0x38117b3000, 17720, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x38117b3000
close(3)                                = 0
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320k\0\0228\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=145176, ...}) = 0
mmap(0x3812000000, 2208760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3812000000
mprotect(0x3812017000, 2093056, PROT_NONE) = 0
mmap(0x3812216000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x3812216000
mmap(0x3812218000, 13304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3812218000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff787e92000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff787e90000
arch_prctl(ARCH_SET_FS, 0x7ff787e90780) = 0
mprotect(0x3817a22000, 12288, PROT_READ) = 0
mprotect(0x3815e03000, 4096, PROT_READ) = 0
mprotect(0x38117ad000, 16384, PROT_READ) = 0
mprotect(0x3812216000, 4096, PROT_READ) = 0
mprotect(0x3811221000, 4096, PROT_READ) = 0
munmap(0x7ff787e95000, 180423)          = 0
set_tid_address(0x7ff787e90a50)         = 24937
set_robust_list(0x7ff787e90a60, 0x18)   = 0
rt_sigaction(SIGRTMIN, {0x3812006720, [], SA_RESTORER|SA_SIGINFO, 0x381200f500}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x38120067b0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x381200f500}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0)                                  = 0x1f5b000
brk(0x1f7c000)                          = 0x1f7c000
brk(0)                                  = 0x1f7c000
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=104993360, ...}) = 0
mmap(NULL, 104993360, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff781a6e000
close(3)                                = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fffa8af8938) = -1 EINVAL (Invalid argument)
getuid()                                = 0
geteuid()                               = 0
getgid()                                = 0
getegid()                               = 0
prctl(PR_GET_DUMPABLE)                  = 1
getuid()                                = 0
geteuid()                               = 0
getgid()                                = 0
getegid()                               = 0
prctl(PR_GET_DUMPABLE)                  = 1
open("/etc/blkid.conf", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("/etc/blkid/blkid.tab", O_RDONLY)  = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1848, ...}) = 0
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=1848, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff787ec1000
lseek(3, 0, SEEK_CUR)                   = 0
read(3, "<device DEVNO=\"0x0801\" TIME=\"133"..., 4096) = 1848
access("/dev/sda1", F_OK)               = 0
access("/dev/sda2", F_OK)               = 0
access("/dev/sda3", F_OK)               = 0
access("/dev/sda5", F_OK)               = 0
access("/dev/sda6", F_OK)               = 0
access("/dev/sdb5", F_OK)               = 0
access("/dev/sdb7", F_OK)               = 0
access("/dev/sdb6", F_OK)               = 0
access("/dev/sdb1", F_OK)               = 0
access("/dev/mapper/luks-3df32fb9-4422-4b90-b95b-1b96f681d883", F_OK) = 0
access("/dev/mapper/luks-b460f97b-e676-4b0b-a02f-dc04bd356556", F_OK) = 0
access("/dev/mapper/luks-2a6c1819-d710-4a1f-988e-ce2086e1a582", F_OK) = 0
access("/dev/sr0", F_OK)                = 0
access("/dev/sdb8", F_OK)               = 0
read(3, "", 4096)                       = 0
lseek(3, 1848, SEEK_SET)                = 1848
close(3)                                = 0
munmap(0x7ff787ec1000, 4096)            = 0
openat(AT_FDCWD, "/etc/e2fsck.conf", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
rt_sigaction(SIGINT, {0x407670, [], SA_RESTORER, 0x3811436300}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x407670, [], SA_RESTORER, 0x3811436300}, NULL, 8) = 0
rt_sigaction(SIGUSR1, {0x407650, [], SA_RESTORER|SA_RESTART, 0x3811436300}, NULL, 8) = 0
rt_sigaction(SIGUSR2, {0x408500, [], SA_RESTORER|SA_RESTART, 0x3811436300}, NULL, 8) = 0
open("/dev/null", O_RDWR)               = 3
close(3)                                = 0
brk(0)                                  = 0x1f7c000
getrusage(RUSAGE_SELF, {ru_utime={0, 1999}, ru_stime={0, 2999}, ...}) = 0
write(2, "e2fsck 1.41.14 (22-Dec-2010)\n", 29e2fsck 1.41.14 (22-Dec-2010)
) = 29
stat("/dev/sdb1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
open("/proc/swaps", O_RDONLY)           = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff787ec1000
read(3, "Filename\t\t\t\tType\t\tSize\tUsed\tPrio"..., 1024) = 99
stat("/dev/dm-0", {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 0), ...}) = 0
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x7ff787ec1000, 4096)            = 0
open("/proc/mounts", O_RDONLY)          = 3
stat("/dev/sdb1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
futex(0x38117b4660, FUTEX_WAKE_PRIVATE, 2147483647) = 0
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff787ec1000
read(3, "rootfs / rootfs rw 0 0\nproc /pro"..., 1024) = 1024
stat("/dev/mapper/luks-3df32fb9-4422-4b90-b95b-1b96f681d883", {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 1), ...}) = 0
read(3, "id,nodev,noexec,relatime,freezer"..., 1024) = 1024
read(3, "osuid,nodev,relatime,user_xattr,"..., 1024) = 335
stat("/dev/mapper/luks-2a6c1819-d710-4a1f-988e-ce2086e1a582", {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 2), ...}) = 0
stat("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0
read(3, "", 1024)                       = 0
stat("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3)                                = 0
munmap(0x7ff787ec1000, 4096)            = 0
open("/etc/mtab", O_RDONLY)             = 3
stat("/dev/sdb1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff787ec1000
read(3, "rootfs / rootfs rw 0 0\nproc /pro"..., 1024) = 1024
stat("/dev/mapper/luks-3df32fb9-4422-4b90-b95b-1b96f681d883", {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 1), ...}) = 0
read(3, "id,nodev,noexec,relatime,freezer"..., 1024) = 1024
read(3, "osuid,nodev,relatime,user_xattr,"..., 1024) = 335
stat("/dev/mapper/luks-2a6c1819-d710-4a1f-988e-ce2086e1a582", {st_mode=S_IFBLK|0660, st_rdev=makedev(253, 2), ...}) = 0
stat("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0
read(3, "", 1024)                       = 0
stat("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3)                                = 0
munmap(0x7ff787ec1000, 4096)            = 0
stat("/dev/sdb1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
open("/dev/sdb1", O_RDONLY|O_EXCL)      = -1 EBUSY (Device or resource busy)
open("/dev/sdb1", O_RDWR|O_EXCL)        = -1 EBUSY (Device or resource busy)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff787ec1000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2512
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7ff787ec1000, 4096)            = 0
open("/usr/share/locale/de_DE.utf8/LC_MESSAGES/e2fsprogs.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE/LC_MESSAGES/e2fsprogs.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.utf8/LC_MESSAGES/e2fsprogs.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_MESSAGES/e2fsprogs.mo", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=101232, ...}) = 0
mmap(NULL, 101232, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff787ea9000
close(3)                                = 0
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26244, ...}) = 0
mmap(NULL, 26244, PROT_READ, MAP_SHARED, 3, 0) = 0x7ff787ea2000
close(3)                                = 0
futex(0x38117b2af0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(2, "e2fsck", 6e2fsck)                   = 6
write(2, ": ", 2: )                       = 2
open("/usr/share/locale/de_DE.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_MESSAGES/libc.mo", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=123193, ...}) = 0
mmap(NULL, 123193, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff781a4f000
close(3)                                = 0
write(2, "Das Ger\303\244t oder die Ressource is"..., 40Das Gerät oder die Ressource ist belegt) = 40
write(2, " ", 1 )                        = 1
write(2, "beim Versuch, /dev/sdb1 zu \303\266ffn"..., 34beim Versuch, /dev/sdb1 zu öffnen) = 34
ioctl(2, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fffa8af88c8) = -1 EINVAL (Invalid argument)
write(2, "\n", 1
)                       = 1
write(1, "Ist das Dateisystem eingeh\303\244ngt "..., 90Ist das Dateisystem eingehängt or exklusiv von einem anderen Programm

geöffnet worden?
) = 90
exit_group(8)                           = ?

** Attachment added: "e2image -r /dev/sdb1 - | bzip2 > /tmp/sdb1.e2i.bz2"
   https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/711799/+attachment/3113922/+files/sdb1.e2i.bz2

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

Title:
  e2fsprogs wrongly identifies ext4 as mounted

Status in “e2fsprogs” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: e2fsprogs

  After a crash of Ubuntu netbook, the machine hang with initramfs (I
  have a /boot and /).
  Booting with the same system (ubuntu 10.10) from thumb drive, I cannot fsck it:
  $ sudo fsck /dev/sda2
  fsck from util-linux-ng 2.17.2
  e2fsck 1.41.12 (17-May-2010)
  fsck.ext4: Device or resource busy while trying to open /dev/sda2
  Filesystem mounted or opened exclusively by another program?

  But it is not mounted:
  $ cat /proc/mounts
  shows that it is not mounted; and it can't be unmounted.

  dmesg knows what is going on:
  $ dmesg | grep sda2
  [    6.513953]  sda: sda1  [01;31m [Ksda2 [m [K sda3 < sda5 > sda4
  [    9.300388] EXT4-fs ( [01;31m [Ksda2 [m [K): INFO: recovery
  required on readonly filesystem
  [    9.300398] EXT4-fs ( [01;31m [Ksda2 [m [K): write access will be
  enabled during recovery
  [    9.312706] EXT4-fs warning (device  [01;31m [Ksda2 [m [K):
  ext4_clear_journal_err: Filesystem error recorded from previous mount:
  IO failure
  [    9.312729] EXT4-fs warning (device  [01;31m [Ksda2 [m [K):
  ext4_clear_journal_err: Marking fs in need of filesystem check.
  $
  But this fsck does never materialise, and can't be done manually.

  Finally, I tried to delete the journal, but to no avail, the "Device
  or resource busy" stays. Is there any way to trick fsck into believing
  me that it is not mounted?
  If not, I still consider the behaviour somewhat wrong: if not in
  /proc/mount, why does fsck say so?
  And when I
  sudo mount /dev/sda2 /mnt
  it starts the mount process, but never finishes, and also it is
  impossible to ever exit this process, I tried with Ctrl-C, Ctrl-Z, and
  even with kill -9 from another console. Ubuntu isn't even able to shut
  down then, but keeps trying forever.

  In a nutshell, it is a bug in 10.10. I use the installer-CD written to the thumb drive (Startup Disk creator).
   Confirmed: Because when I boot with a 9.04 thumb drive, I can easily open a terminal and run fsck. Done and over.

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




More information about the foundations-bugs mailing list