linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* (no subject)
@ 2007-08-07 16:34 Brian J. Murrell
  2007-08-08 16:28 ` problems while mounting /boot partition Michal Piotrowski
  2007-08-09 20:33 ` Mark Lord
  0 siblings, 2 replies; 6+ messages in thread
From: Brian J. Murrell @ 2007-08-07 16:34 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 11470 bytes --]

I am using Ubuntu Gutsy, which is the in-development branch heading for
their next stable release.

I have noticed that since some kernel release post-2.6.20 I have been
unable to mount my /boot partition:

$ sudo strace -f mount /dev/hda1 /mnt/foo
execve("/bin/mount", ["mount", "/dev/hda1", "/mnt/foo"], [/* 41 vars*/])= 0
brk(0)                                  = 0x8062000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbc000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=91976, ...}) = 0
mmap2(NULL, 91976, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fa5000
close(4)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260a\1"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0644, st_size=1339816, ...}) = 0
mmap2(NULL, 1349136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7e5b000
mmap2(0xb7f9f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x143) = 0xb7f9f000
mmap2(0xb7fa2000, 9744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fa2000
close(4)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e5a000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e5a6b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7f9f000, 4096, PROT_READ)   = 0
munmap(0xb7fa5000, 91976)               = 0
brk(0)                                  = 0x8062000
brk(0x8083000)                          = 0x8083000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbb000
read(4, "# Locale name alias data base.\n#"..., 1024) = 1024
read(4, "ies are case independent.\n\n# Not"..., 1024) = 1024
read(4, ".euc \tko_KR.eucKR\nko_KR\t\tko_KR.e"..., 1024) = 538
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0xb7fbb000, 4096)                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_IDENTIFICATION", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=363, ...}) = 0
mmap2(NULL, 363, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fbb000
close(4)                                = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=25486, ...}) = 0
mmap2(NULL, 25486, PROT_READ, MAP_SHARED, 4, 0) = 0xb7fb4000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_MEASUREMENT", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 23, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fb3000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_TELEPHONE", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=51, ...}) = 0
mmap2(NULL, 51, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fb2000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_ADDRESS", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_ADDRESS", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=127, ...}) = 0
mmap2(NULL, 127, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fb1000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_NAME", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
mmap2(NULL, 62, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fb0000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_PAPER", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
mmap2(NULL, 34, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7faf000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_MESSAGES", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(4)                                = 0
open("/usr/lib/locale/en_CA.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fae000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_MONETARY", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_MONETARY", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
mmap2(NULL, 286, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fad000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_COLLATE", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=880094, ...}) = 0
mmap2(NULL, 880094, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7d83000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_TIME", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=2451, ...}) = 0
mmap2(NULL, 2451, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fac000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_NUMERIC", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_NUMERIC", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fab000
close(4)                                = 0
open("/usr/lib/locale/en_CA.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_CA.utf8/LC_CTYPE", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=238336, ...}) = 0
mmap2(NULL, 238336, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7d48000
close(4)                                = 0
umask(022)                              = 022
open("/dev/null", O_RDWR|O_LARGEFILE)   = 4
close(4)                                = 0
getuid32()                              = 0
geteuid32()                             = 0
lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=1136, ...}) = 0
stat64("/dev/hda1", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 1), ...}) = 0
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
open("/dev/hda1", O_RDONLY|O_LARGEFILE) = 4
ioctl(4, BLKGETSIZE64, 0xbf80f540)      = 0
_llseek(4, 41025536, [41025536], SEEK_SET) = 0
read(4, "#=\353\177\374A\305\366d\332&\230\373\222\\\353\3331\r"..., 2048) = 2048
brk(0x80aa000)                          = 0x80aa000
_llseek(4, 0, [0], SEEK_SET)            = 0
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 2048
_llseek(4, 0, [0], SEEK_SET)            = 0
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 6144) = 6144
_llseek(4, 41093632, [41093632], SEEK_SET) = 0
read(4, "e\262\321\332\273j\242\335\317*\nlb\237T\237\212\236\247"..., 512) = 512
_llseek(4, 41093120, [41093120], SEEK_SET) = 0
read(4, ">\270\20XK\177\307\233\334j\315\357ac\235\360\225\276\234"..., 512) = 512
_llseek(4, 41093632, [41093632], SEEK_SET) = 0
read(4, "e\262\321\332\273j\242\335\317*\nlb\237T\237\212\236\247"..., 512) = 512
_llseek(4, 41093120, [41093120], SEEK_SET) = 0
read(4, ">\270\20XK\177\307\233\334j\315\357ac\235\360\225\276\234"..., 512) = 512
_llseek(4, 41061888, [41061888], SEEK_SET) = 0
read(4, "\327\312Z\320s/\201\322\241\274\216\374*\263\1\7\\\220"..., 512) = 512
_llseek(4, 40963584, [40963584], SEEK_SET) = 0
read(4, "ODUX\237\253{I\24\216\372\204\213\3525\316\20\341\274\327"..., 512) = 512
_llseek(4, 40963072, [40963072], SEEK_SET) = 0
read(4, ":<\217\6\371F\16M\267f\260\265?uH\3656gNJ\v\30\253\350"..., 512) = 512
_llseek(4, 41085952, [41085952], SEEK_SET) = 0
read(4, "~\360\373F>\247\346bp\266gA\231\373\24\v0\307\37\222G$"..., 512) = 512
_llseek(4, 40889856, [40889856], SEEK_SET) = 0
read(4, "KD\276\330\26\36\266U\373\332\255=\3440\22c\323\276\266"..., 512) = 512
_llseek(4, 41088512, [41088512], SEEK_SET) = 0
read(4, "o\331\251yn\365\25669S!} \1\303\334\31\264K\27A)p\341s"..., 512) = 512
_llseek(4, 41093632, [41093632], SEEK_SET) = 0
read(4, "e\262\321\332\273j\242\335\317*\nlb\237T\237\212\236\247"..., 512) = 512
_llseek(4, 0, [0], SEEK_SET)            = 0
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192) = 8192
_llseek(4, 0, [0], SEEK_SET)            = 0
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16384) = 16384
brk(0x8099000)                          = 0x8099000
brk(0x8089000)                          = 0x8089000
close(4)                                = 0
stat64("/sbin/mount.ext3", 0xbf80f484)  = -1 ENOENT (No such file or directory)
mount("/dev/hda1", "/mnt/foo", "ext3", MS_MGC_VAL, NULL) = -1 EBUSY (Device or resource busy)
rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
write(2, "mount: /dev/hda1 already mounted"..., 50mount: /dev/hda1 already mounted or /mnt/foo busy) = 50
umask(077)                              = 022
open("/etc/mtab", O_RDONLY|O_LARGEFILE) = 4
umask(022)                              = 077
fstat64(4, {st_mode=S_IFREG|0644, st_size=1136, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d47000
read(4, "/dev/dm-20 / ext3 rw,errors=remo"..., 1024) = 1024
read(4, "ib/nfs/rpc_pipefs rpc_pipefs rw "..., 1024) = 112
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0xb7d47000, 4096)                = 0
exit_group(32)                          = ?
Process 27016 detached

All other block devices (all LVM LVs) seem to mount with no problems.

Certainly I leave open the possibility of pilot error (by either me or
Ubuntu) but I don't know how to even see why/where/what could be going
wrong.

/proc/mounts does not show the device mounted:

$ grep hda /proc/mounts
$ 

and fuser and lsof doesn't show anything using the mount point:

$ fuser /mnt/foo
$ sudo lsof | grep /mnt/foo
$ 

Nor does lsof show /dev/hda (device 3,1) in use:

$ sudo lsof | grep -e hda -e 3,1
$ 

So I'm kind of perplexed as to what to try next in how to debug
this?

Any ideas?  Thanx in advance.

b.

-- 
A day in the yard with my son is just like a day at work.  He goes
hunting around for stuff and brings it back to me and says: "Hey Dad,
look what I found.  The money is for me and the screw is for you."

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* problems while mounting /boot partition
  2007-08-07 16:34 Brian J. Murrell
@ 2007-08-08 16:28 ` Michal Piotrowski
  2007-08-08 18:18   ` [SOLVED] " Brian J. Murrell
  2007-08-09 23:57   ` Jan Engelhardt
  2007-08-09 20:33 ` Mark Lord
  1 sibling, 2 replies; 6+ messages in thread
From: Michal Piotrowski @ 2007-08-08 16:28 UTC (permalink / raw)
  To: Brian J. Murrell; +Cc: linux-kernel, linux-fsdevel, linux-ide

Hi Brian,

Brian J. Murrell pisze:
> I am using Ubuntu Gutsy, which is the in-development branch heading for
> their next stable release.

You forgot about message subject, so no one has read this report.

> 
> I have noticed that since some kernel release post-2.6.20 I have been
> unable to mount my /boot partition:
> 
> $ sudo strace -f mount /dev/hda1 /mnt/foo
> execve("/bin/mount", ["mount", "/dev/hda1", "/mnt/foo"], [/* 41 vars*/])= 0
> brk(0)                                  = 0x8062000
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
> mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbc000
> access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=91976, ...}) = 0
> mmap2(NULL, 91976, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fa5000
> close(4)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
> open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 4
> read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260a\1"..., 512) = 512
> fstat64(4, {st_mode=S_IFREG|0644, st_size=1339816, ...}) = 0
> mmap2(NULL, 1349136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7e5b000
> mmap2(0xb7f9f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x143) = 0xb7f9f000
> mmap2(0xb7fa2000, 9744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fa2000
> close(4)                                = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e5a000
> set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e5a6b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
> mprotect(0xb7f9f000, 4096, PROT_READ)   = 0
> munmap(0xb7fa5000, 91976)               = 0
> brk(0)                                  = 0x8062000
> brk(0x8083000)                          = 0x8083000
> open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
> open("/usr/share/locale/locale.alias", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbb000
> read(4, "# Locale name alias data base.\n#"..., 1024) = 1024
> read(4, "ies are case independent.\n\n# Not"..., 1024) = 1024
> read(4, ".euc \tko_KR.eucKR\nko_KR\t\tko_KR.e"..., 1024) = 538
> read(4, "", 1024)                       = 0
> close(4)                                = 0
> munmap(0xb7fbb000, 4096)                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_IDENTIFICATION", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=363, ...}) = 0
> mmap2(NULL, 363, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fbb000
> close(4)                                = 0
> open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=25486, ...}) = 0
> mmap2(NULL, 25486, PROT_READ, MAP_SHARED, 4, 0) = 0xb7fb4000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_MEASUREMENT", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
> mmap2(NULL, 23, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fb3000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_TELEPHONE", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=51, ...}) = 0
> mmap2(NULL, 51, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fb2000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_ADDRESS", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_ADDRESS", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=127, ...}) = 0
> mmap2(NULL, 127, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fb1000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_NAME", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
> mmap2(NULL, 62, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fb0000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_PAPER", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
> mmap2(NULL, 34, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7faf000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_MESSAGES", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
> mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fae000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_MONETARY", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_MONETARY", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
> mmap2(NULL, 286, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fad000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_COLLATE", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=880094, ...}) = 0
> mmap2(NULL, 880094, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7d83000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_TIME", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=2451, ...}) = 0
> mmap2(NULL, 2451, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fac000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_NUMERIC", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_NUMERIC", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
> mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fab000
> close(4)                                = 0
> open("/usr/lib/locale/en_CA.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/locale/en_CA.utf8/LC_CTYPE", O_RDONLY) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=238336, ...}) = 0
> mmap2(NULL, 238336, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7d48000
> close(4)                                = 0
> umask(022)                              = 022
> open("/dev/null", O_RDWR|O_LARGEFILE)   = 4
> close(4)                                = 0
> getuid32()                              = 0
> geteuid32()                             = 0
> lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=1136, ...}) = 0
> stat64("/dev/hda1", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 1), ...}) = 0
> rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
> open("/dev/hda1", O_RDONLY|O_LARGEFILE) = 4
> ioctl(4, BLKGETSIZE64, 0xbf80f540)      = 0
> _llseek(4, 41025536, [41025536], SEEK_SET) = 0
> read(4, "#=\353\177\374A\305\366d\332&\230\373\222\\\353\3331\r"..., 2048) = 2048
> brk(0x80aa000)                          = 0x80aa000
> _llseek(4, 0, [0], SEEK_SET)            = 0
> read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 2048
> _llseek(4, 0, [0], SEEK_SET)            = 0
> read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 6144) = 6144
> _llseek(4, 41093632, [41093632], SEEK_SET) = 0
> read(4, "e\262\321\332\273j\242\335\317*\nlb\237T\237\212\236\247"..., 512) = 512
> _llseek(4, 41093120, [41093120], SEEK_SET) = 0
> read(4, ">\270\20XK\177\307\233\334j\315\357ac\235\360\225\276\234"..., 512) = 512
> _llseek(4, 41093632, [41093632], SEEK_SET) = 0
> read(4, "e\262\321\332\273j\242\335\317*\nlb\237T\237\212\236\247"..., 512) = 512
> _llseek(4, 41093120, [41093120], SEEK_SET) = 0
> read(4, ">\270\20XK\177\307\233\334j\315\357ac\235\360\225\276\234"..., 512) = 512
> _llseek(4, 41061888, [41061888], SEEK_SET) = 0
> read(4, "\327\312Z\320s/\201\322\241\274\216\374*\263\1\7\\\220"..., 512) = 512
> _llseek(4, 40963584, [40963584], SEEK_SET) = 0
> read(4, "ODUX\237\253{I\24\216\372\204\213\3525\316\20\341\274\327"..., 512) = 512
> _llseek(4, 40963072, [40963072], SEEK_SET) = 0
> read(4, ":<\217\6\371F\16M\267f\260\265?uH\3656gNJ\v\30\253\350"..., 512) = 512
> _llseek(4, 41085952, [41085952], SEEK_SET) = 0
> read(4, "~\360\373F>\247\346bp\266gA\231\373\24\v0\307\37\222G$"..., 512) = 512
> _llseek(4, 40889856, [40889856], SEEK_SET) = 0
> read(4, "KD\276\330\26\36\266U\373\332\255=\3440\22c\323\276\266"..., 512) = 512
> _llseek(4, 41088512, [41088512], SEEK_SET) = 0
> read(4, "o\331\251yn\365\25669S!} \1\303\334\31\264K\27A)p\341s"..., 512) = 512
> _llseek(4, 41093632, [41093632], SEEK_SET) = 0
> read(4, "e\262\321\332\273j\242\335\317*\nlb\237T\237\212\236\247"..., 512) = 512
> _llseek(4, 0, [0], SEEK_SET)            = 0
> read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192) = 8192
> _llseek(4, 0, [0], SEEK_SET)            = 0
> read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16384) = 16384
> brk(0x8099000)                          = 0x8099000
> brk(0x8089000)                          = 0x8089000
> close(4)                                = 0
> stat64("/sbin/mount.ext3", 0xbf80f484)  = -1 ENOENT (No such file or directory)
> mount("/dev/hda1", "/mnt/foo", "ext3", MS_MGC_VAL, NULL) = -1 EBUSY (Device or resource busy)
> rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
> write(2, "mount: /dev/hda1 already mounted"..., 50mount: /dev/hda1 already mounted or /mnt/foo busy) = 50
> umask(077)                              = 022
> open("/etc/mtab", O_RDONLY|O_LARGEFILE) = 4
> umask(022)                              = 077
> fstat64(4, {st_mode=S_IFREG|0644, st_size=1136, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d47000
> read(4, "/dev/dm-20 / ext3 rw,errors=remo"..., 1024) = 1024
> read(4, "ib/nfs/rpc_pipefs rpc_pipefs rw "..., 1024) = 112
> read(4, "", 1024)                       = 0
> close(4)                                = 0
> munmap(0xb7d47000, 4096)                = 0
> exit_group(32)                          = ?
> Process 27016 detached
> 
> All other block devices (all LVM LVs) seem to mount with no problems.
> 
> Certainly I leave open the possibility of pilot error (by either me or
> Ubuntu) but I don't know how to even see why/where/what could be going
> wrong.
> 
> /proc/mounts does not show the device mounted:
> 
> $ grep hda /proc/mounts
> $ 
> 
> and fuser and lsof doesn't show anything using the mount point:
> 
> $ fuser /mnt/foo
> $ sudo lsof | grep /mnt/foo
> $ 
> 
> Nor does lsof show /dev/hda (device 3,1) in use:
> 
> $ sudo lsof | grep -e hda -e 3,1
> $ 
> 
> So I'm kind of perplexed as to what to try next in how to debug
> this?
> 
> Any ideas?  Thanx in advance.
> 
> b.
> 

Regards,
Michal

--
LOG
http://www.stardust.webpages.pl/log/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [SOLVED] problems while mounting /boot partition
  2007-08-08 16:28 ` problems while mounting /boot partition Michal Piotrowski
@ 2007-08-08 18:18   ` Brian J. Murrell
  2007-08-09 23:57   ` Jan Engelhardt
  1 sibling, 0 replies; 6+ messages in thread
From: Brian J. Murrell @ 2007-08-08 18:18 UTC (permalink / raw)
  To: Michal Piotrowski; +Cc: linux-kernel, linux-fsdevel, linux-ide

[-- Attachment #1: Type: text/plain, Size: 1917 bytes --]

On Wed, 2007-08-08 at 18:28 +0200, Michal Piotrowski wrote:
> Hi Brian,

Hi Michal,

> Brian J. Murrell pisze:
> > I am using Ubuntu Gutsy, which is the in-development branch heading for
> > their next stable release.
> 
> You forgot about message subject, so no one has read this report.

Indeed.  Very unfortunate.  I did re-post with a subject but I have not
seen it show up yet, which I have been waiting for to post the solution.

Maybe I will just do that here and again if it shows up with the subject
posted.

The crux of the problem is that the real partitions are being
mapped/managed by device mapper, which is being used by LVM:

$ ls -l /dev/mapper/
total 0
crw-rw---- 1 root root 10, 63 2007-08-08 04:56 control
lrwxrwxrwx 1 root root      7 2007-08-08 04:56 hda1 -> ../dm-0
lrwxrwxrwx 1 root root      7 2007-08-08 04:56 hda2 -> ../dm-1
lrwxrwxrwx 1 root root      7 2007-08-08 04:56 hda3 -> ../dm-2

This is of course causing those partitions to be opened exclusively,
preventing any further uses (i.e. sys_mount()) from being able to use
them.  Only hda3 of those above is actually an LVM PV.  hda1 is an ext3
filesystem (/boot) and hda2 is a FAT32 (could even be FAT16) filesystem.

Of course, mounting /dev/dm-0 instead of /dev/hda1 solves the problem.

Why this started with Ubuntu's 2.6.22 kernel in Gutsy, I'm not sure.
Whether it's a new DM feature or some change in the way Ubuntu handles
devices, I don't know.  Whatever the case, they need to fix
their /dev/disk/by-uuid mappings anyway:

$ ls -l /dev/disk/by-uuid/ | grep hda
lrwxrwxrwx 1 root root 10 2007-08-08 08:56 12b8250a-d031-4ee1-b486-5e67478d06b4 -> ../../hda1

Cheers,
b.

-- 
A day in the yard with my son is just like a day at work.  He goes
hunting around for stuff and brings it back to me and says: "Hey Dad,
look what I found.  The money is for me and the screw is for you."

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re:
  2007-08-07 16:34 Brian J. Murrell
  2007-08-08 16:28 ` problems while mounting /boot partition Michal Piotrowski
@ 2007-08-09 20:33 ` Mark Lord
  2007-08-09 21:04   ` Re: Brian J. Murrell
  1 sibling, 1 reply; 6+ messages in thread
From: Mark Lord @ 2007-08-09 20:33 UTC (permalink / raw)
  To: Brian J. Murrell; +Cc: linux-kernel

Brian J. Murrell wrote:
> I am using Ubuntu Gutsy, which is the in-development branch heading for
> their next stable release.
> 
> I have noticed that since some kernel release post-2.6.20 I have been
> unable to mount my /boot partition:
> 
> $ sudo strace -f mount /dev/hda1 /mnt/foo
> execve("/bin/mount", ["mount", "/dev/hda1", "/mnt/foo"], [/* 41 vars*/])= 0
...                             = 0
> mount("/dev/hda1", "/mnt/foo", "ext3", MS_MGC_VAL, NULL) = -1 EBUSY (Device or resource busy)
> rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
> write(2, "mount: /dev/hda1 already mounted"..., 50mount: /dev/hda1 already mounted or /mnt/foo busy) = 50
...
> All other block devices (all LVM LVs) seem to mount with no problems.

Probably something to do with either LVM or the Device Mapper having
the raw partition already "open" for some remapping purpose.
There was a note about that around here somewhere quite recently..

??


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re:
  2007-08-09 20:33 ` Mark Lord
@ 2007-08-09 21:04   ` Brian J. Murrell
  0 siblings, 0 replies; 6+ messages in thread
From: Brian J. Murrell @ 2007-08-09 21:04 UTC (permalink / raw)
  To: Mark Lord; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

On Thu, 2007-08-09 at 16:33 -0400, Mark Lord wrote:
> Probably something to do with either LVM or the Device Mapper having
> the raw partition already "open" for some remapping purpose.
> There was a note about that around here somewhere quite recently..

Indeed, that was it.  I posted a followup "Re: [SOLVED] problems while
mounting /boot partition" reporting such.

Thanx for the heads up though!

b.

-- 
My other computer is your Microsoft Windows server.

Brian J. Murrell

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problems while mounting /boot partition
  2007-08-08 16:28 ` problems while mounting /boot partition Michal Piotrowski
  2007-08-08 18:18   ` [SOLVED] " Brian J. Murrell
@ 2007-08-09 23:57   ` Jan Engelhardt
  1 sibling, 0 replies; 6+ messages in thread
From: Jan Engelhardt @ 2007-08-09 23:57 UTC (permalink / raw)
  To: Michal Piotrowski
  Cc: Brian J. Murrell, linux-kernel, linux-fsdevel, linux-ide


On Aug 8 2007 18:28, Michal Piotrowski wrote:
>
>Hi Brian,
>
>Brian J. Murrell pisze:
>> I am using Ubuntu Gutsy, which is the in-development branch heading for
>> their next stable release.
>
>You forgot about message subject, so no one has read this report.

Actually, given the volume on LKML, a line without a subject is making
the most attention since all others do have one. :)


	Jan
-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-09 23:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-07 16:34 Brian J. Murrell
2007-08-08 16:28 ` problems while mounting /boot partition Michal Piotrowski
2007-08-08 18:18   ` [SOLVED] " Brian J. Murrell
2007-08-09 23:57   ` Jan Engelhardt
2007-08-09 20:33 ` Mark Lord
2007-08-09 21:04   ` Re: Brian J. Murrell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).