我已将 NTFS 格式的 USB3 2.5" 硬盘直接连接到我的 DIY Ubuntu 20.04.2 NAS 以加快传输速度。
访问某些文件时,Linux openat() 系统调用只是挂起:
sto@pnjnas:/mnt/SBA-W10TABLET$ sudo strace dd if='/mnt/SBA-W10TABLET/C/Users/steph/AppData/Roaming/Microsoft/SystemCertificates/My/AppContainerUserCertRead' of=/dev/null
execve("/bin/dd", ["dd", "if=/mnt/SBA-W10TABLET/C/Users/st"..., "of=/dev/null"], 0x7fff4d0f2570 /* 23 vars */) = 0
brk(NULL) = 0x55ef69494000
arch_prctl(0x3001 /* ARCH_??? */, 0x7fffd4c4bc00) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=86039, ...}) = 0
mmap(NULL, 86039, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fce2547e000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/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\360q\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\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"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\t\233\222%\274\260\320\31\331\326\10\204\276X>\263"..., 68, 880) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=2029224, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fce2547c000
pread64(3, "\6\0\0\0\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"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\t\233\222%\274\260\320\31\331\326\10\204\276X>\263"..., 68, 880) = 68
mmap(NULL, 2036952, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fce2528a000
mprotect(0x7fce252af000, 1847296, PROT_NONE) = 0
mmap(0x7fce252af000, 1540096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7fce252af000
mmap(0x7fce25427000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19d000) = 0x7fce25427000
mmap(0x7fce25472000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7fce25472000
mmap(0x7fce25478000, 13528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fce25478000
close(3) = 0
arch_prctl(ARCH_SET_FS, 0x7fce2547d580) = 0
mprotect(0x7fce25472000, 12288, PROT_READ) = 0
mprotect(0x55ef68292000, 4096, PROT_READ) = 0
mprotect(0x7fce254c1000, 4096, PROT_READ) = 0
munmap(0x7fce2547e000, 86039) = 0
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGUSR1, {sa_handler=0x55ef682838b0, sa_mask=[INT USR1], sa_flags=SA_RESTORER, sa_restorer=0x7fce252d0210}, NULL, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x55ef682838a0, sa_mask=[INT USR1], sa_flags=SA_RESTORER|SA_NODEFER|SA_RESETHAND, sa_restorer=0x7fce252d0210}, NULL, 8) = 0
brk(NULL) = 0x55ef69494000
brk(0x55ef694b5000) = 0x55ef694b5000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=5703744, ...}) = 0
mmap(NULL, 5703744, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fce24d19000
close(3) = 0
openat(AT_FDCWD, "/mnt/SBA-W10TABLET/C/Users/steph/AppData/Roaming/Microsoft/SystemCertificates/My/AppContainerUserCertRead", O_RDONLY
Ctrl+C
产量:
= ? ERESTARTSYS (To be restarted if SA_RESTART is set)
有什么线索吗?