Package: mount Version: 2.12r-19 Severity: normal I have several identical Debian unstable machines in my office. A user reported not being able to mount his USB flash drive on one of these machines, while it was working fine on the other two. This didn't make any sense at first because all three machines are identically configured, running the exact same versions of all packages and the same kernels, etc.
Digging into things further, I found that the only problem was when running a mount command as a normal user where the fstype in /etc/fstab was set to auto. I have the following pertinent lines in /etc/fstab on all three machines: --- /dev/sdb1 /mnt/usb auto defaults,rw,user,noauto 0 0 /dev/sdb1 /mnt/vfat vfat defaults,rw,user,noauto 0 0 --- Note that running 'mount /mnt/vfat' worked fine on the problem machine, but not 'mount /mnt/usb'. The latter would result in the mount command blocking or hanging and eating up 100% of the CPU indefinitely. Interestingly enough, based on what I discovered below finally, running the 'mount /mnt/usb' as root works fine. Given the data below, I'm not sure why exactly. So I finally figured out how to strace mount using sudo since normally mount won't let you strace it without the assistance of sudo. I have attached all the relevant files on two machines. monkey is the name of the machine which is not working properly. lemur is the name of one machine which is working fine. The only real difference I finally found between the two machines is in /etc/blkid.tab. If I replace the version found on monkey with the one found on lemur, or just zero out the version found on monkey entirely, then 'mount /mnt/usb' as a normal user works. So I assume that the original version as found on monkey was somehow corrupt? But then I don't understand exactly why running the same command worked as root but not as a normal user. Maybe the code path through mount is different enough running as root that a problem in this file wouldn't cause the same issue when running as root. Anyway, I'm attaching the strace from monkey and lemur, along with the versions of the blkid.tab file which existed initially on both machines. Like I said, as soon as I either zero out the file or replace it with a slightly different version, then the mount command works fine. Either way, this seems like a bug in mount since data in this file shouldn't prevent an otherwise perfectly normal and workable mount request from failing. Let me know if you need any more data on this. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.21.5 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages mount depends on: ii libblkid1 1.40-1 block device id library ii libc6 2.5-11 GNU C Library: Shared libraries ii libuuid1 1.40-1 universally unique id library mount recommends no packages. -- no debconf information
execve("/bin/mount", ["mount", "/mnt/usb"], [/* 13 vars */]) = 0 brk(0) = 0x805d000 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) = 0xb7f04000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=114590, ...}) = 0 mmap2(NULL, 114590, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ee8000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libblkid.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\37\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=32336, ...}) = 0 mmap2(NULL, 35244, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7edf000 mmap2(0xb7ee7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xb7ee7000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libuuid.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\t\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=8572, ...}) = 0 mmap2(NULL, 11504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7edc000 mmap2(0xb7ede000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7ede000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i686/cmov/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0`\1\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=1315328, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7edb000 mmap2(NULL, 1320356, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d98000 mmap2(0xb7ed5000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13d) = 0xb7ed5000 mmap2(0xb7ed8000, 9636, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ed8000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libdevmapper.so.1.02.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220/\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=84800, ...}) = 0 mmap2(NULL, 83672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d83000 mmap2(0xb7d96000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7d96000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libselinux.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P6\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=79376, ...}) = 0 mmap2(NULL, 84884, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d6e000 mmap2(0xb7d81000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb7d81000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libsepol.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360-\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=219156, ...}) = 0 mmap2(NULL, 260384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d2e000 mmap2(0xb7d63000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x35) = 0xb7d63000 mmap2(0xb7d64000, 39200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d64000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i686/cmov/libpthread.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20H\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=112373, ...}) = 0 mmap2(NULL, 90592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d17000 mmap2(0xb7d2a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7d2a000 mmap2(0xb7d2c000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d2c000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i686/cmov/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\n\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=9684, ...}) = 0 mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d13000 mmap2(0xb7d15000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7d15000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d12000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d11000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d116c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xb7ed5000, 4096, PROT_READ) = 0 munmap(0xb7ee8000, 114590) = 0 set_tid_address(0xb7d11708) = 4784 set_robust_list(0xb7d11710, 0xc) = 0 rt_sigaction(SIGRTMIN, {0xb7d1b3f0, [], SA_SIGINFO}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0xb7d1b300, [], SA_RESTART|SA_SIGINFO}, 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 uname({sys="Linux", node="monkey", ...}) = 0 brk(0) = 0x805d000 brk(0x807e000) = 0x807e000 open("/etc/selinux/config", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) statfs64("/selinux", 84, 0xbfb78830) = -1 ENOENT (No such file or directory) open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f03000 read(3, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 624 read(3, "", 1024) = 0 close(3) = 0 munmap(0xb7f03000, 4096) = 0 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1209120, ...}) = 0 mmap2(NULL, 1209120, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7be9000 close(3) = 0 umask(022) = 022 open("/dev/null", O_RDWR|O_LARGEFILE) = 3 close(3) = 0 getuid32() = 0 geteuid32() = 0 getgid32() = 0 getegid32() = 0 prctl(0x3, 0, 0, 0, 0) = 1 open("/etc/blkid.tab", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=72, ...}) = 0 fcntl64(3, F_GETFL) = 0 (flags O_RDONLY) fstat64(3, {st_mode=S_IFREG|0644, st_size=72, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f03000 _llseek(3, 0, [0], SEEK_CUR) = 0 read(3, "<device DEVNO=\"0x0811\" TIME=\"117"..., 4096) = 72 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7f03000, 4096) = 0 getuid32() = 0 geteuid32() = 0 lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=601, ...}) = 0 readlink("/mnt", 0xbfb7676b, 4096) = -1 EINVAL (Invalid argument) readlink("/mnt/usb", 0xbfb7676b, 4096) = -1 EINVAL (Invalid argument) umask(077) = 022 open("/etc/fstab", O_RDONLY|O_LARGEFILE) = 3 umask(022) = 077 fstat64(3, {st_mode=S_IFREG|0644, st_size=1054, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f03000 read(3, "# /etc/fstab: static file system"..., 4096) = 1054 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7f03000, 4096) = 0 stat64("/sbin/mount.auto", 0xbfb784d4) = -1 ENOENT (No such file or directory) rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0 time(NULL) = 1183628803 open("/dev/sdb1", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0 lseek(3, 0, SEEK_SET) = 0 read(3, "\353X\220MSDOS5.0\0\2\4&\0\2\0\0\0\0\370\0\0?\0\377\0 "..., 69632) = 69632 +++ killed by SIGKILL +++
<device DEVNO="0x0811" TIME="1175033761" TYPE="ntfs">/dev/sdb1</device>
execve("/bin/mount", ["mount", "/mnt/usb"], [/* 14 vars */]) = 0 brk(0) = 0x805d000 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) = 0xb7fbf000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=114590, ...}) = 0 mmap2(NULL, 114590, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fa3000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libblkid.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\37\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=32336, ...}) = 0 mmap2(NULL, 35244, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f9a000 mmap2(0xb7fa2000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xb7fa2000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libuuid.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\t\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=8572, ...}) = 0 mmap2(NULL, 11504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f97000 mmap2(0xb7f99000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7f99000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i686/cmov/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0`\1\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=1315328, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f96000 mmap2(NULL, 1320356, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e53000 mmap2(0xb7f90000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13d) = 0xb7f90000 mmap2(0xb7f93000, 9636, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f93000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libdevmapper.so.1.02.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220/\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=84800, ...}) = 0 mmap2(NULL, 83672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e3e000 mmap2(0xb7e51000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7e51000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libselinux.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P6\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=79376, ...}) = 0 mmap2(NULL, 84884, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e29000 mmap2(0xb7e3c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb7e3c000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libsepol.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360-\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=219156, ...}) = 0 mmap2(NULL, 260384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7de9000 mmap2(0xb7e1e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x35) = 0xb7e1e000 mmap2(0xb7e1f000, 39200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e1f000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i686/cmov/libpthread.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20H\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=112373, ...}) = 0 mmap2(NULL, 90592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dd2000 mmap2(0xb7de5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7de5000 mmap2(0xb7de7000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7de7000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i686/cmov/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\n\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=9684, ...}) = 0 mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dce000 mmap2(0xb7dd0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7dd0000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dcd000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dcc000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7dcc6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xb7f90000, 4096, PROT_READ) = 0 munmap(0xb7fa3000, 114590) = 0 set_tid_address(0xb7dcc708) = 6386 set_robust_list(0xb7dcc710, 0xc) = 0 rt_sigaction(SIGRTMIN, {0xb7dd63f0, [], SA_SIGINFO}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0xb7dd6300, [], SA_RESTART|SA_SIGINFO}, 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 uname({sys="Linux", node="lemur", ...}) = 0 brk(0) = 0x805d000 brk(0x807e000) = 0x807e000 open("/etc/selinux/config", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) statfs64("/selinux", 84, 0xbfc0d8b0) = -1 ENOENT (No such file or directory) open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbe000 read(3, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 624 read(3, "", 1024) = 0 close(3) = 0 munmap(0xb7fbe000, 4096) = 0 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1209120, ...}) = 0 mmap2(NULL, 1209120, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ca4000 close(3) = 0 umask(022) = 022 open("/dev/null", O_RDWR|O_LARGEFILE) = 3 close(3) = 0 getuid32() = 0 geteuid32() = 0 getgid32() = 0 getegid32() = 0 prctl(0x3, 0, 0, 0, 0) = 1 open("/etc/blkid.tab", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=93, ...}) = 0 fcntl64(3, F_GETFL) = 0 (flags O_RDONLY) fstat64(3, {st_mode=S_IFREG|0644, st_size=93, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbe000 _llseek(3, 0, [0], SEEK_CUR) = 0 read(3, "<device DEVNO=\"0x0300\" TIME=\"113"..., 4096) = 93 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7fbe000, 4096) = 0 getuid32() = 0 geteuid32() = 0 lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=601, ...}) = 0 readlink("/mnt", 0xbfc0b7eb, 4096) = -1 EINVAL (Invalid argument) readlink("/mnt/usb", 0xbfc0b7eb, 4096) = -1 EINVAL (Invalid argument) umask(077) = 022 open("/etc/fstab", O_RDONLY|O_LARGEFILE) = 3 umask(022) = 077 fstat64(3, {st_mode=S_IFREG|0644, st_size=1054, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbe000 read(3, "# /etc/fstab: static file system"..., 4096) = 1054 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7fbe000, 4096) = 0 stat64("/sbin/mount.auto", 0xbfc0d554) = -1 ENOENT (No such file or directory) rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0 time(NULL) = 1183626994 open("/dev/sdb1", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0 uname({sys="Linux", node="lemur", ...}) = 0 ioctl(3, BLKGETSIZE64, 0xbfc0c4a0) = 0 lseek(3, 257818624, SEEK_SET) = 257818624 read(3, "\231\224\27B\n.K\211\274-e\30\244\2,2\241PA\252\17I\276"..., 4096) = 4096 lseek(3, 0, SEEK_SET) = 0 read(3, "\353X\220MSDOS5.0\0\2\4&\0\2\0\0\0\0\370\0\0?\0\377\0 "..., 69632) = 69632 lseek(3, 1024000, SEEK_SET) = 1024000 read(3, "FLASH DRIVE\10\0\0\0\0\0\0\0\0\0\0\345N>5\0\0\0\0\0\0"..., 2048) = 2048 time(NULL) = 1183626994 close(3) = 0 stat64("/sbin/mount.vfat", 0xbfc0d554) = -1 ENOENT (No such file or directory) mount("/dev/sdb1", "/mnt/usb", "vfat", MS_MGC_VAL|MS_NOSUID|MS_NODEV|MS_NOEXEC, "") = 0 readlink("/dev", 0xbfc0b5fb, 4096) = -1 EINVAL (Invalid argument) readlink("/dev/sdb1", 0xbfc0b5fb, 4096) = -1 EINVAL (Invalid argument) readlink("/mnt", 0xbfc0b5fb, 4096) = -1 EINVAL (Invalid argument) readlink("/mnt/usb", 0xbfc0b5fb, 4096) = -1 EINVAL (Invalid argument) open("/etc/mtab", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3 close(3) = 0 rt_sigaction(SIGHUP, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGINT, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGQUIT, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGILL, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGTRAP, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGABRT, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGBUS, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGFPE, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGKILL, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = -1 EINVAL (Invalid argument) rt_sigaction(SIGUSR1, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGSEGV, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGUSR2, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGPIPE, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGALRM, {0x804d348, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGTERM, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 rt_sigaction(SIGSTKFLT, {0x804db52, ~[RTMIN RT_1], 0}, NULL, 8) = 0 open("/etc/mtab~6386", O_WRONLY|O_CREAT|O_LARGEFILE, 0600) = 3 close(3) = 0 link("/etc/mtab~6386", "/etc/mtab~") = 0 unlink("/etc/mtab~6386") = 0 open("/etc/mtab~", O_WRONLY|O_LARGEFILE) = 3 fcntl64(3, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 0xbfc0d590) = 0 close(3) = 0 umask(077) = 022 open("/etc/mtab", O_RDWR|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 3 umask(022) = 077 fstat64(3, {st_mode=S_IFREG|0644, st_size=601, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbe000 fstat64(3, {st_mode=S_IFREG|0644, st_size=601, ...}) = 0 _llseek(3, 0, [0], SEEK_SET) = 0 read(3, "/dev/sda2 / reiserfs rw,noatime,"..., 601) = 601 write(3, "/dev/sdb1 /mnt/usb vfat rw,noexe"..., 51) = 51 close(3) = 0 munmap(0xb7fbe000, 4096) = 0 unlink("/etc/mtab~") = 0 rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0 stat64("/etc/blkid.tab", {st_mode=S_IFREG|0644, st_size=93, ...}) = 0 access("/etc/blkid.tab", W_OK) = 0 gettimeofday({1183626994, 445182}, NULL) = 0 open("/etc/blkid.tab-e2CsJi", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR) fstat64(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbe000 _llseek(3, 0, [0], SEEK_CUR) = 0 fchmod(3, 0644) = 0 write(3, "<device DEVNO=\"0x0300\" TIME=\"113"..., 202) = 202 close(3) = 0 munmap(0xb7fbe000, 4096) = 0 unlink("/etc/blkid.tab.old") = 0 link("/etc/blkid.tab", "/etc/blkid.tab.old") = 0 rename("/etc/blkid.tab-e2CsJi", "/etc/blkid.tab") = 0 exit_group(0) = ?
<device DEVNO="0x0300" TIME="1139467523" LABEL="WOWDISC1" TYPE="iso9660">/dev/cdrom</device> <device DEVNO="0x0811" TIME="1183626994" LABEL="FLASH DRIVE" UUID="186B-7DD7" TYPE="vfat">/dev/sdb1</device>