Hi Alan,

Alan Stern wrote:
Always run with usb-storage debugging turned on :-)
:-)

mount -t ext2 /dev/sda1 /mnt does not return
Have you tried mounting it read-only? Also, can you tell where the mount process is hung? Try Alt-SysRq-T (and make sure you have enabled the Magic SysRq key in your kernel).

Since my system is an embedded platform without keyboard, I can only post a strace output from the mount command. As you can see, the call blocks in the open systemcall on the /dev/sda1 device.

When I interrupt the strace/mount with CTRL-C the open() call is interrupted 
unfinished.
Without strace the mount call cannot be interrupted by CTRL-C.

bash-2.05# strace /root/mount -t auto /dev/sda1 /mnt
execve("/root/mount", ["/root/mount", "-t", "auto", "/dev/sda1", "/mnt"], [/* 16 vars 
*/]) = 0
uname({sys="Linux", node="abg405", ...}) = 0
brk(0)                                  = 0x1002052c
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30014000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/usr/lib/qt/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
SYS_195(0x7fffee20, 0x7fffee48, 0x7fffee48, 0x30025a20, 0x7ffff5f8) = 0
open("/etc/ld.so.cache", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\2N\230"..., 1024) = 1024
SYS_197(0x3, 0x7ffff110, 0x7ffff110, 0x30014490, 0x30014000) = 0
mmap(0xfea6000, 1349728, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xfea6000
mprotect(0xffbe000, 202848, PROT_NONE)  = 0
mmap(0xffc6000, 151552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x110000) = 
0xffc6000
mmap(0xffeb000, 18528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 
0) =
0xffeb000
close(3)                                = 0
brk(0)                                  = 0x1002052c
brk(0x10020554)                         = 0x10020554
brk(0x10021000)                         = 0x10021000
open("/dev/null", O_RDWR|0x10000)       = 3
close(3)                                = 0
getuid()                                = 0
geteuid()                               = 0
SYS_196(0x1000d650, 0x7ffffc88, 0x7ffffc88, 0x1001e61c, 0) = -1 ENOENT (No such file 
or directory)
rt_sigaction(SIGHUP, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGINT, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGILL, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGTRAP, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGABRT, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGBUS, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGFPE, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGKILL, {0x10005420, ~[], 0}, NULL, 8) = -1 EINVAL (Invalid argument)
rt_sigaction(SIGUSR1, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGUSR2, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGALRM, {0x1000545c, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x10005420, ~[], 0}, NULL, 8) = 0
rt_sigaction(SIGSTKFLT, {0x10005420, ~[], 0}, NULL, 8) = 0
getpid()                                = 88
open("/etc/mtab~88", O_WRONLY|O_CREAT|0x10000, 0) = 3
close(3)                                = 0
link("/etc/mtab~88", "/etc/mtab~")      = 0
unlink("/etc/mtab~88")                  = 0
open("/etc/mtab~", O_WRONLY|0x10000)    = 3
SYS_204(0x3, 0xd, 0x7ffffc78, 0, 0x1)   = 0
close(3)                                = 0
open("/etc/mtab", O_RDWR|O_APPEND|O_CREAT|0x10000, 0666) = 3
SYS_197(0x3, 0x7ffffa28, 0x7ffffa28, 0, 0x2) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30015000
SYS_197(0x3, 0x7ffffac8, 0x7ffffac8, 0x1, 0xffffffff) = 0
_llseek(0x3, 0, 0, 0x7ffffa98, 0)       = 0
open("/etc/fstab", O_RDONLY|0x10000)    = 4
SYS_197(0x4, 0x7ffffad8, 0x7ffffad8, 0xa, 0x1) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30016000
read(4, "none\t\t/proc\t\tproc\t\tdefaults\t\t0  "..., 4096) = 406
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x30016000, 4096)                = 0
fchmod(3, 0644)                         = 0
close(3)                                = 0
munmap(0x30015000, 4096)                = 0
unlink("/etc/mtab~")                    = 0
SYS_195(0x7ffffa98, 0x7ffffb18, 0x7ffffb18, 0xfefefeff, 0x1) = -1 ENOENT (No such file 
or
directory)
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV], NULL, 8) = 0
SYS_195(0x100206b0, 0x7fff7b18, 0x7fff7b18, 0, 0) = 0
open("/dev/sda1", O_RDONLY|0x10000 <unfinished ...>

Any idea?
Matthias

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

                            _/_/_/_/   Matthias Fuchs
                           _/_/_/_/   Dipl.-Ing.
                          _/_/_/_/   [EMAIL PROTECTED]

      _/_/_/   _/_/_/_/_/_/_/      esd electronic system design gmbh
    _/   _/  _/             _/    Vahrenwalder Str. 207
   _/   _/    _/_/_/   _/   _/   D-30165 Hannover
   _/             _/  _/   _/   Phone: +49-511-37298-0
    _/_/_/_/_/_/_/   _/_/_/    Fax:   +49-511-37298-68

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




------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to