Hello Mike
On Monday 07 January 2008, Peter Klotz wrote:
When trying to mount one of my NTFS partitions without specifying the
"-t" option mount uses reiserfs instead of NTFS.
The mount command (util-linux-ng 2.13):
with 2.13+, mount itself no longer does filesystem detection. instead, that
job is left up to other (better) libraries which is a good thing (people
maintaining mount need not spend time on it).
however, there are two different libraries util-linux will attempt to use and
the one is decided at build time. please post the output of:
ldd $(which util-linux)
so that we can figure out what library you're using and so you can figure out
what library you should see if there is a newer version of
Karel: perhaps we should include this information in the output of
`mount --version` ?
-mike
There seems to be no util-linux binary on my system.
I can provide the dynamic dependencies of mount instead:
root@centrino:~# ldd /bin/mount
linux-gate.so.1 => (0xffffe000)
libselinux.so.1 => /lib/libselinux.so.1 (0xb7f10000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dc6000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7dc1000)
libsepol.so.1 => /lib/libsepol.so.1 (0xb7d80000)
/lib/ld-linux.so.2 (0xb7f36000)
Also find attached a complete strace output of the failed mount command.
Best regards, Peter.
root@centrino:~# strace mount /dev/sdh1 /mnt/data2a
execve("/bin/mount", ["mount", "/dev/sdh1", "/mnt/data2a"], [/* 15 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) = 0xb7fbd000
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=55570, ...}) = 0
mmap2(NULL, 55570, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7faf000
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\0 ?\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=83516, ...}) = 0
mmap2(NULL, 88980, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f99000
mmap2(0xb7fad000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7fad000
close(3) = 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) = 3
read(3, "\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(3, {st_mode=S_IFREG|0644, st_size=1339816, ...}) = 0
mmap2(NULL, 1349136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e4f000
mmap2(0xb7f93000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x143) = 0xb7f93000
mmap2(0xb7f96000, 9744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f96000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/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, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e4e000
mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e4a000
mmap2(0xb7e4c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7e4c000
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@.\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=219668, ...}) = 0
mmap2(NULL, 264992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e09000
mmap2(0xb7e3f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x35) = 0xb7e3f000
mmap2(0xb7e40000, 39712, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e40000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e08000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e086b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7f93000, 4096, PROT_READ) = 0
munmap(0xb7faf000, 55570) = 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, 0xbffcea00) = -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) = 0xb7fbc000
read(3, "rootfs / rootfs rw 0 0\nnone /sys"..., 1024) = 849
read(3, "", 1024) = 0
close(3) = 0
munmap(0xb7fbc000, 4096) = 0
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) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbc000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2586
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7fbc000, 4096) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=373, ...}) = 0
mmap2(NULL, 373, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fbc000
close(3) = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=25486, ...}) = 0
mmap2(NULL, 25486, PROT_READ, MAP_SHARED, 3, 0) = 0xb7fb5000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_MEASUREMENT", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fb4000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_TELEPHONE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0
mmap2(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fb3000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_ADDRESS", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_ADDRESS", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=155, ...}) = 0
mmap2(NULL, 155, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fb2000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_NAME", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=77, ...}) = 0
mmap2(NULL, 77, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fb1000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_PAPER", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
mmap2(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fb0000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3) = 0
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=52, ...}) = 0
mmap2(NULL, 52, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7faf000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_MONETARY", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_MONETARY", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
mmap2(NULL, 286, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7e07000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=915322, ...}) = 0
mmap2(NULL, 915322, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d27000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_TIME", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2451, ...}) = 0
mmap2(NULL, 2451, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d26000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_NUMERIC", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_NUMERIC", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d25000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=254020, ...}) = 0
mmap2(NULL, 254020, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ce6000
close(3) = 0
umask(022) = 022
open("/dev/null", O_RDWR|O_LARGEFILE) = 3
close(3) = 0
getuid32() = 0
geteuid32() = 0
lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=605, ...}) = 0
readlink("/dev", 0xbffcc807, 4096) = -1 EINVAL (Invalid argument)
readlink("/dev/sdh1", 0xbffcc807, 4096) = -1 EINVAL (Invalid argument)
stat64("/dev/sdh1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 113), ...}) = 0
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
open("/dev/sdh1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, BLKGETSIZE64, 0xbffce6a8) = 0
_llseek(3, 300066340864, [300066340864], SEEK_SET) = 0
read(3, "m\327\267\207T\254\276\303\300?Q\33\345\323!\351~\3746"..., 2048) = 2048
_llseek(3, 300066398208, [300066398208], SEEK_SET) = 0
read(3, "\271\256\375l\370l\0225\353\321j\342\325\353\343\7\325"..., 2048) = 2048
brk(0x80a5000) = 0x80a5000
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "\353R\220NTFS \0\2\10\0\0\0\0\0\0\0\370\0\0?\0\377\0"..., 2048) = 2048
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "\353R\220NTFS \0\2\10\0\0\0\0\0\0\0\370\0\0?\0\377\0"..., 6144) = 6144
_llseek(3, 300066406912, [300066406912], SEEK_SET) = 0
read(3, "\353R\220NTFS \0\2\10\0\0\0\0\0\0\0\370\0\0?\0\377\0"..., 512) = 512
_llseek(3, 300066406400, [300066406400], SEEK_SET) = 0
read(3, "\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"..., 512) = 512
_llseek(3, 300066406912, [300066406912], SEEK_SET) = 0
read(3, "\353R\220NTFS \0\2\10\0\0\0\0\0\0\0\370\0\0?\0\377\0"..., 512) = 512
_llseek(3, 300066406400, [300066406400], SEEK_SET) = 0
read(3, "\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"..., 512) = 512
_llseek(3, 300066375168, [300066375168], SEEK_SET) = 0
read(3, "\274i\\\256\20\211\304\227\327\200\v\330\223;\21A\3465"..., 512) = 512
_llseek(3, 300066276864, [300066276864], SEEK_SET) = 0
read(3, "~\315\336\34\231\267\357\16{m\377\376\344 -\202\210\6u"..., 512) = 512
_llseek(3, 300066276352, [300066276352], SEEK_SET) = 0
read(3, "\257\336\342rP\200=\330\240\330\221!+\236\235\330\244\313"..., 512) = 512
_llseek(3, 300066399232, [300066399232], SEEK_SET) = 0
read(3, "+\215\36L\r\314U!\230\351\230\371^\30\240\217jC\266\32"..., 512) = 512
_llseek(3, 300066203136, [300066203136], SEEK_SET) = 0
read(3, "\270\362 x@3\303O\fPO7\344\272\376\243\21*\263w\16\332"..., 512) = 512
_llseek(3, 300066401792, [300066401792], SEEK_SET) = 0
read(3, "N\225\270Gl*\315\262\202\306\25\7z\234v\216\201\203\243"..., 512) = 512
_llseek(3, 300066406912, [300066406912], SEEK_SET) = 0
read(3, "\353R\220NTFS \0\2\10\0\0\0\0\0\0\0\370\0\0?\0\377\0"..., 512) = 512
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "\353R\220NTFS \0\2\10\0\0\0\0\0\0\0\370\0\0?\0\377\0"..., 8192) = 8192
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "\353R\220NTFS \0\2\10\0\0\0\0\0\0\0\370\0\0?\0\377\0"..., 16384) = 16384
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "\353R\220NTFS \0\2\10\0\0\0\0\0\0\0\370\0\0?\0\377\0"..., 66048) = 66048
brk(0x8094000) = 0x8094000
brk(0x8084000) = 0x8084000
close(3) = 0
stat64("/sbin/mount.reiserfs", 0xbffce584) = -1 ENOENT (No such file or directory)
mount("/dev/sdh1", "/mnt/data2a", "reiserfs", MS_MGC_VAL, NULL) = -1 EOPNOTSUPP (Operation not supported)
rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "mount: Operation not supported", 30mount: Operation not supported) = 30
write(2, "\n", 1
) = 1
exit_group(32) = ?
Process 870 detached