Jari Ruusu wrote: > > > blockdev --setbsz 2048 /dev/sda1 > > > losetup -e AES128 /dev/loop0 /dev/sda1 > > > blockdev --setbsz 2048 /dev/loop0 > > > mount -t ext2 /dev/loop0 /mnt > > > > I tried this - and many variants just to be sure - but it doesn't help. > > > > When using --getbsz to ask for the current block size, the correct > > value (2048) is returned (for both the loop and the block device). > > "mount" fails nevertheless... > > > > Ok, so what's the next thing to try? :-) > > You could post exact commands (and their output) that you used to create and > mount your encrypted fs. And since the mount command is the one that fails, > strace the mount process like this: > > strace -i -o tempname1 /bin/mount -t ext2 /dev/loop0 /mnt I tried with kernel 2.4.18 and loop-AES-1.6b. Ok, here's the script I used for the test: -------------------------------------------------------------------------------- #!/bin/sh echo -n "blockdev /dev/sdb result: " blockdev --getbsz /dev/sdb echo "12345678901234567890" | losetup -p 0 -e AES128 /dev/loop0 /dev/sdb echo echo -n "blockdev /dev/loop0 result: " blockdev --getbsz /dev/loop0 echo echo "mkfs output:" mkfs -t ext2 /dev/loop0 echo echo "fsck output:" fsck.ext2 -f /dev/loop0 echo echo "mount output:" strace -f -i -o /tmp/test mount -t ext2 /dev/loop0 /mnt/floppy losetup -d /dev/loop0 --------------------------------------------------------------------------------- Here is the output of the script running (when there's a 2048 byte sector medium in the drive /dev/sdb): --------------------------------------------------------------------------------- blockdev /dev/sdb result: 2048 blockdev /dev/loop0 result: 2048 mkfs output: mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 77600 inodes, 155176 blocks 7758 blocks (5.00%) reserved for the super user First data block=0 5 block groups 32768 blocks per group, 32768 fragments per group 15520 inodes per group Superblock backups stored on blocks: 32768, 98304 Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 24 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. fsck output: e2fsck 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/loop0: 11/77600 files (0.0% non-contiguous), 2446/155176 blocks mount output: mount: wrong fs type, bad option, bad superblock on /dev/loop0, or too many mounted file systems --------------------------------------------------------------------------------- Here is the strace output of the mount command in that situation: --------------------------------------------------------------------------------- 2514 [40011d07] brk(0) = 0x805d040 2514 [40011f2d] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 2514 [40011864] open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) 2514 [40011864] open("/etc/ld.so.cache", O_RDONLY) = 3 2514 [400117e9] fstat64(3, {st_mode=S_IFREG|0644, st_size=61293, ...}) = 0 2514 [40011f2d] old_mmap(NULL, 61293, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000 2514 [4001189d] close(3) = 0 2514 [40011864] open("/lib/libc.so.6", O_RDONLY) = 3 2514 [400118e4] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\303"..., 1024) = 1024 2514 [400117e9] fstat64(3, {st_mode=S_IFREG|0755, st_size=5724399, ...}) = 0 2514 [40011f2d] old_mmap(NULL, 1265160, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40026000 2514 [40011fb4] mprotect(0x40152000, 36360, PROT_NONE) = 0 2514 [40011f2d] old_mmap(0x40152000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12b000) = 0x40152000 2514 [40011f2d] old_mmap(0x40157000, 15880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40157000 2514 [4001189d] close(3) = 0 2514 [40011f71] munmap(0x40017000, 61293) = 0 2514 [40105d97] brk(0) = 0x805d040 2514 [40105d97] brk(0x805d068) = 0x805d068 2514 [40105d97] brk(0x805e000) = 0x805e000 2514 [400ff064] open("/usr/share/locale/locale.alias", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0 2514 [4010946d] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 2514 [400ff124] read(3, "# Locale name alias data base.\n#"..., 4096) = 2601 2514 [400ff124] read(3, "", 4096) = 0 2514 [400ff0dd] close(3) = 0 2514 [40109551] munmap(0x40017000, 4096) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_IDENTIFICATION", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=370, ...}) = 0 2514 [4010946d] old_mmap(NULL, 370, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_MEASUREMENT", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=28, ...}) = 0 2514 [4010946d] old_mmap(NULL, 28, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_TELEPHONE", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0 2514 [4010946d] old_mmap(NULL, 64, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40019000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_ADDRESS", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=160, ...}) = 0 2514 [4010946d] old_mmap(NULL, 160, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001a000 2514 [400ff0dd] close(3) = 0 2514 [40105d97] brk(0x805f000) = 0x805f000 2514 [400ff064] open("/usr/lib/locale/en_US/LC_NAME", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=82, ...}) = 0 2514 [4010946d] old_mmap(NULL, 82, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001b000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_PAPER", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=39, ...}) = 0 2514 [4010946d] old_mmap(NULL, 39, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001c000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_MESSAGES", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0 2514 [4010946d] old_mmap(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001d000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_MONETARY", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=291, ...}) = 0 2514 [4010946d] old_mmap(NULL, 291, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_COLLATE", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=21499, ...}) = 0 2514 [4010946d] old_mmap(NULL, 21499, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001f000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_TIME", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=2456, ...}) = 0 2514 [4010946d] old_mmap(NULL, 2456, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40025000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_NUMERIC", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0 2514 [4010946d] old_mmap(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4015b000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 3 2514 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=173408, ...}) = 0 2514 [4010946d] old_mmap(NULL, 173408, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4015c000 2514 [400ff0dd] close(3) = 0 2514 [400ff064] open("/dev/null", O_RDWR|O_LARGEFILE) = 3 2514 [400ff0dd] close(3) = 0 2514 [400da794] getuid32() = 0 2514 [400da80c] geteuid32() = 0 2514 [400fe2f5] lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=340, ...}) = 0 2514 [400fdfb5] stat64("/sbin/mount.ext2", 0xbffff850) = -1 ENOENT (No such file or directory) 2514 [4005489d] rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV], NULL, 8) = 0 2514 [4010cbfe] mount("/dev/loop0", "/mnt/floppy", "ext2", 0xc0ed0000, 0) = -1 EINVAL (Invalid argument) 2514 [4005489d] rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV], NULL, 8) = 0 2514 [40105d97] brk(0x8060000) = 0x8060000 2514 [400ff064] open("/usr/share/locale/en_US/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory) 2514 [400ff064] open("/usr/share/locale/en/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory) 2514 [400ff164] write(2, "mount: wrong fs type, bad option"..., 104) = 104 2514 [400fdfb5] stat64("/dev/loop0", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 0), ...}) = 0 2514 [400ff064] open("/dev/loop0", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 3 2514 [40105e74] ioctl(3, BLKGETSIZE, 0xbffff970) = 0 2514 [400ff0dd] close(3) = 0 2514 [400da05d] _exit(32) = ? --------------------------------------------------------------------------------- Here's the output of the script again, now with a 512-byte/sector medium in the drive: --------------------------------------------------------------------------------- blockdev /dev/sdb result: 512 blockdev /dev/loop0 result: 512 mkfs output: mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 56000 inodes, 223162 blocks 11158 blocks (5.00%) reserved for the super user First data block=1 28 block groups 8192 blocks per group, 8192 fragments per group 2000 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185 Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 32 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. fsck output: e2fsck 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/loop0: 11/56000 files (0.0% non-contiguous), 7086/223162 blocks mount output: ioctl: LOOP_CLR_FD: Device or resource busy --------------------------------------------------------------------------------- (in the end, the losetup -d fails, of course, as the mount was successful...) ... and here is the strace output of the test with 512byte/sector: --------------------------------------------------------------------------------- 2534 [40011d07] brk(0) = 0x805d040 2534 [40011f2d] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 2534 [40011864] open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) 2534 [40011864] open("/etc/ld.so.cache", O_RDONLY) = 3 2534 [400117e9] fstat64(3, {st_mode=S_IFREG|0644, st_size=61293, ...}) = 0 2534 [40011f2d] old_mmap(NULL, 61293, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000 2534 [4001189d] close(3) = 0 2534 [40011864] open("/lib/libc.so.6", O_RDONLY) = 3 2534 [400118e4] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\303"..., 1024) = 1024 2534 [400117e9] fstat64(3, {st_mode=S_IFREG|0755, st_size=5724399, ...}) = 0 2534 [40011f2d] old_mmap(NULL, 1265160, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40026000 2534 [40011fb4] mprotect(0x40152000, 36360, PROT_NONE) = 0 2534 [40011f2d] old_mmap(0x40152000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12b000) = 0x40152000 2534 [40011f2d] old_mmap(0x40157000, 15880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40157000 2534 [4001189d] close(3) = 0 2534 [40011f71] munmap(0x40017000, 61293) = 0 2534 [40105d97] brk(0) = 0x805d040 2534 [40105d97] brk(0x805d068) = 0x805d068 2534 [40105d97] brk(0x805e000) = 0x805e000 2534 [400ff064] open("/usr/share/locale/locale.alias", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0 2534 [4010946d] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 2534 [400ff124] read(3, "# Locale name alias data base.\n#"..., 4096) = 2601 2534 [400ff124] read(3, "", 4096) = 0 2534 [400ff0dd] close(3) = 0 2534 [40109551] munmap(0x40017000, 4096) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_IDENTIFICATION", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=370, ...}) = 0 2534 [4010946d] old_mmap(NULL, 370, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_MEASUREMENT", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=28, ...}) = 0 2534 [4010946d] old_mmap(NULL, 28, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_TELEPHONE", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0 2534 [4010946d] old_mmap(NULL, 64, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40019000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_ADDRESS", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=160, ...}) = 0 2534 [4010946d] old_mmap(NULL, 160, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001a000 2534 [400ff0dd] close(3) = 0 2534 [40105d97] brk(0x805f000) = 0x805f000 2534 [400ff064] open("/usr/lib/locale/en_US/LC_NAME", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=82, ...}) = 0 2534 [4010946d] old_mmap(NULL, 82, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001b000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_PAPER", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=39, ...}) = 0 2534 [4010946d] old_mmap(NULL, 39, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001c000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_MESSAGES", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0 2534 [4010946d] old_mmap(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001d000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_MONETARY", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=291, ...}) = 0 2534 [4010946d] old_mmap(NULL, 291, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_COLLATE", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=21499, ...}) = 0 2534 [4010946d] old_mmap(NULL, 21499, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001f000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_TIME", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=2456, ...}) = 0 2534 [4010946d] old_mmap(NULL, 2456, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40025000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_NUMERIC", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0 2534 [4010946d] old_mmap(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4015b000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=173408, ...}) = 0 2534 [4010946d] old_mmap(NULL, 173408, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4015c000 2534 [400ff0dd] close(3) = 0 2534 [400ff064] open("/dev/null", O_RDWR|O_LARGEFILE) = 3 2534 [400ff0dd] close(3) = 0 2534 [400da794] getuid32() = 0 2534 [400da80c] geteuid32() = 0 2534 [400fe2f5] lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=385, ...}) = 0 2534 [400fdfb5] stat64("/sbin/mount.ext2", 0xbffff850) = -1 ENOENT (No such file or directory) 2534 [4005489d] rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV], NULL, 8) = 0 2534 [4010cbfe] mount("/dev/loop0", "/mnt/floppy", "ext2", 0xc0ed0000, 0) = 0 2534 [40105d97] brk(0x8061000) = 0x8061000 2534 [40100ed4] readlink("/dev", 0xbfffe890, 4096) = -1 EINVAL (Invalid argument) 2534 [40100ed4] readlink("/dev/loop0", 0xbfffe890, 4096) = -1 EINVAL (Invalid argument) 2534 [40100ed4] readlink("/mnt", 0xbfffe890, 4096) = -1 EINVAL (Invalid argument) 2534 [40100ed4] readlink("/mnt/floppy", 0xbfffe890, 4096) = -1 EINVAL (Invalid argument) 2534 [400ff064] open("/etc/mtab", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3 2534 [400ff0dd] close(3) = 0 2534 [4005475b] rt_sigaction(SIGHUP, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGINT, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGQUIT, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGILL, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGTRAP, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGABRT, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGBUS, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGFPE, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGKILL, {0x804d840, ~[], 0x4000000}, NULL, 8) = -1 EINVAL (Invalid argument) 2534 [4005475b] rt_sigaction(SIGUSR1, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGSEGV, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGUSR2, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGPIPE, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGALRM, {0x804d860, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGTERM, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [4005475b] rt_sigaction(SIGSTKFLT, {0x804d840, ~[], 0x4000000}, NULL, 8) = 0 2534 [400da6e7] getpid() = 2534 2534 [400ff064] open("/etc/mtab~2534", O_WRONLY|O_CREAT|O_LARGEFILE, 0) = 3 2534 [400ff0dd] close(3) = 0 2534 [40100e51] link("/etc/mtab~2534", "/etc/mtab~") = 0 2534 [40100f0d] unlink("/etc/mtab~2534") = 0 2534 [400ff064] open("/etc/mtab~", O_WRONLY|O_LARGEFILE) = 3 2534 [400ff527] fcntl64(3, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 0xbffff830) = 0 2534 [400ff0dd] close(3) = 0 2534 [40105d97] brk(0x8062000) = 0x8062000 2534 [400ff064] open("/etc/mtab", O_RDWR|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 3 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=385, ...}) = 0 2534 [4010946d] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40187000 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=385, ...}) = 0 2534 [4010c66b] _llseek(3, 0, [0], SEEK_SET) = 0 2534 [400ff124] read(3, "/dev/hda6 / ext2 rw 0 0\nnone /pr"..., 385) = 385 2534 [400fe155] fstat64(3, {st_mode=S_IFREG|0644, st_size=385, ...}) = 0 2534 [4010c66b] _llseek(3, 385, [385], SEEK_SET) = 0 2534 [400ff164] write(3, "/dev/loop0 /mnt/floppy ext2 rw 0"..., 35) = 35 2534 [400ff0dd] close(3) = 0 2534 [40109551] munmap(0x40187000, 4096) = 0 2534 [40100f0d] unlink("/etc/mtab~") = 0 2534 [4005489d] rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV], NULL, 8) = 0 2534 [400da05d] _exit(0) = ? --------------------------------------------------------------------------------- Any idea? Regards, Peter Niemayer - Linux-crypto: cryptography in and on the Linux system Archive: http://mail.nl.linux.org/linux-crypto/