Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 142667

Summary: not able to mount vfat partition on amd64.
Product: Gentoo Linux Reporter: Karl <karllynch>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major CC: roland
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Karl 2006-08-03 08:57:30 UTC
Hi, I'm attempting to mount a FAT16 USB flash disk under Gentoo64 and am coming up against a recurring error.

# mount -t vfat /dev/sda /mnt/usb
AND
# mount -t msdos /dev/sda /mnt/usb
AND
# mount -t auto /dev/sda /mnt/usb

all produce:

mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or other error.

# DMesg | tail 
gives:

usb-storage: device scan complete
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda.

# fsck.msdos /dev/sda 
returns:

Logical sector size is zero.

The USB stick has been formatted and reformatted several times and works fine under MS Windows (the stick belongs to a Sony PSP, which also believes the stick to be working fine).

All codepages are installed into the kernel as is MSDOS and VFAT support.

This issue does not appear to reoccur on Gentoo x86.

Any help would be greatly appreciated.

+++ This bug was initially created as a clone of Bug #79579 +++

I'm not able to mount a vfat partition on my amd64. 
I get the error: mount: wrong fs type, bad option, bad superblock on /dev/hdc2,
       or too many mounted file systems
while trying mount -t vfat /dev/hd.. /mnt/..
I created a partition whit Partition Magic, windows, but it doesn't work.
When i try to do mkfs.vfat i get: mkfs.vfat 2.10 (22 Sep 2003)
mkfs.vfat: Attempting to create a too large file system



Reproducible: Always
Steps to Reproduce:
Mount an vfat partition on amd64

Actual Results:  
Still got the same errors

Expected Results:  
Mounting my partition so i can play some song ;)

Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 26 2005, 14:49:30)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/packages/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.belnet.be/gentoo-portage"
USE="amd64 X acpi alsa arts berkdb bitmap-fonts crypt esd f77 fam font-server
fortran gdbm gif gpm gtk imagemagick imlib ipv6 java jp2 jpeg kde lzw lzw-tiff
mad mikmod motif multilib ncurses nls oggvorbis opengl oss pam perl png python
qt readline sdl slang ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts
usb userlocales xml2 xmms xpm xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY

I tried also other kernels but still it doesn't work.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-03 09:15:23 UTC

*** This bug has been marked as a duplicate of 79579 ***