Summary: | not able to mount vfat partition on amd64. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ewoud Canniere <alcoholica666> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | CC: | karllynch, roland |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Strace log while mounting |
Description
Ewoud Canniere
2005-01-26 07:58:55 UTC
Googled following tip "-F 32" mkfs.vfat -F 32 /dev/hdc2 so, it looks like `mount` failed because it hadnt yet been formatted ... mkfs.vfat documents the fact that it defaults to FAT12/FAT16 and that if you want FAT32, you must explicitly run with -F 32 ... I'm not able to mount it, even when i did an mkfs.vfat - F 32. He's giving me still the same error. A friend of mine who has also an amd64, has also the same problem. I really don't know what i could try else... What't the output ot "fdisk /dev/hdc" ? Sorry, output of "fdisk -l /dev/hdc" ... The output is of fdisk -l /dev/hdc is: /dev/hdc2 204376 238216 17055864 c W95 FAT32 (LBA). But i cannot mount is cause i'll get this message then: mount: wrong fs type, bad option, bad superblock on /dev/hdc2, or too many mounted file systems Thanx for your help by the way :) Same issue here. I can't mount a USB key that's formatted VFAT. Portage 2.0.51-r14 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r10 x86_64) ================================================================= System uname: 2.6.9-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Aug 2 2004, 19:10:29)] ccache version 2.3 [disabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig cvs distlocks sandbox" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://localhost/portage" USE="amd64 X acpi alsa apache2 arts berkdb bitmap-fonts bzlib calendar cdr crypt cups dba dvd dvdr dvdread encode esd f77 fam flatfile font-server fortran gd gdbm gif gphoto2 gpm imagemagick imlib java jp2 jpeg kde ldap libwww lzw lzw-tiffmad mikmod motif moznocompose moznoirc moznomail mozsvg mpeg multilib mysql ncurses nls noreiserfs nptl nvidia oggvorbis opengl oss pam pdflib perl php png ppds python qt readline samba scanner sdl session slang sqlite ssl tcpd tidy tiff truetype truetype-fonts type1-fonts usb userlocales xml2 xmlrpc xmms xpm xrandr xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY Do you have - vfat in /proc/filesystems ? - Probably doublicated entries for the /dev/hdc2 in /etc/fstab Could you run mount: strace -o st.log -v -f mount rest_of_ususal_:mount_command_line and attach st.log Yes i have vfat in /proc/filesystems ...nodev hugetlbfs msdos vfat iso9660 nodev devfs ntfs nodev mqueue ... @Roland bar: strace seems not to work, can you explain again please? Thx emerge strace With strace using as a prefix to your "mount" command, you can trace/log all system calls. -o st.log #Output to st.log (text file) -v #verbose -f #follows fok()'s So if your regular mount command is: mount -t vfat /dev/hdc2 /mnt/hdc2 then issue: strace -o st.log -v -f mount -t vfat /dev/hdc2 /mnt/hdc2 then we have in file st.log all system calls and hopeful seeing whats going wrong.... Otherwise: - What's the complete command line for the mount command? (It properly takes some omitted parameters from /etc/fstab) - Any entries regarding that partition in /etc/fstab? Otherwise: - You are sure, that it contains a valid vfat filesystem? - Or are we still stuck at the mkfs.vfat -F 32 /dev/hdc2? - Can you boot from any live-cd or knoppix or from Windows and that system mounts there? Created attachment 50048 [details]
Strace log while mounting
So Roland, i uploaded the st.log as attachement. I don't understand some of your further questions, but /dev/hdc2 isn't in my fstab. The mkfs.vfat -F 32 works fine too me, it gives no errors. When i do your strace command i still get the same error, but i hope you can get a hint when you read the st.log. Thanx Just an idea, http://bugs.gentoo.org/show_bug.cgi?id=76203 but doubt that this is the problem... I have reviewed the source code, and when syscall mount() returns EINVAL, it makes an ioctl BLKGETSIZE at the device node. If the return value is 0 (as here), then following code snippet: error(_( " (could this be the IDE device where you in fact use\n" " ide-scsi so that sr0 or sda or so is needed?)")); So, probably /dev/sdb2 (something /dev/sd?2) would be the correct device node. Jason, this could also be the the hint for you usb-device. Here it's also an (pseudo)SCSI device..... I experienced similar issues on a normal p3 computer (and a usb stick). This is an older kernel, so it probably is a userland issue. Guys i tryed really everything (i think) but still i cannot mount the fat partition. Does anyone has booked some progress, or have some other ideas? Greetz Have you tried to get a corresponding SCSI devices (Comment #13 ) fdisk -l /dev/sda fdisk -l /dev/sdb fdisk -l /dev/sdc If this doesn't show up anything, then: dd if=/dev/hdc2 of=myhdc count=1 and attach myhdc to this bug-report *** Bug 142667 has been marked as a duplicate of this bug. *** old bug ... you might want to try updating e2fsprogs/glibc/strace/kernel/util-linux as the strace output looks screwed up: 1923 stat("/sbin/mount.vfat", 0x7fbfffee40) = -1 ENOENT (No such file or directory) 1923 mount("/dev/hdc2", "/mnt/windows/", "vfat", 0xc0ed0000, 0) = -1 EINVAL (Invalid argument) |