Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount: unknown filesystem type 'vfat' [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
muc-gentoo
n00b
n00b


Joined: 12 Apr 2008
Posts: 21

PostPosted: Wed Nov 12, 2008 10:17 pm    Post subject: mount: unknown filesystem type 'vfat' [SOLVED] Reply with quote

when mounting an USB stick with "sudo mount -t vfat /dev/sdb1 /mnt/usbdir" I am getting error "mount: unknown filesystem type 'vfat'", although kernel has been compiled with CONFIG_VFAT_FS=y.

Any help?


Last edited by muc-gentoo on Wed Nov 19, 2008 10:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
weaksauce
Apprentice
Apprentice


Joined: 17 Nov 2005
Posts: 204
Location: NYC

PostPosted: Wed Nov 12, 2008 10:22 pm    Post subject: Reply with quote

Do you also have
Code:
CONFIG_FAT_FS=y

I don't think menuconfig or make enforces it, but it's required for VFAT to work correctly.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Nov 12, 2008 11:57 pm    Post subject: Reply with quote

You can always do this to check what filesystems are supported by your kernel.
Code:
# cat /proc/filesystems
Back to top
View user's profile Send private message
qxtr01
n00b
n00b


Joined: 04 Nov 2008
Posts: 47

PostPosted: Thu Nov 13, 2008 10:12 am    Post subject: Reply with quote

please run 'dmesg' just after having tried mounting the partition and post the last lines.
Back to top
View user's profile Send private message
muc-gentoo
n00b
n00b


Joined: 12 Apr 2008
Posts: 21

PostPosted: Thu Nov 13, 2008 1:07 pm    Post subject: Reply with quote

CONFIG_FAT_FS=y is set

cat /proc/filesystems does not retrieve vfat

here is the output of dmesg
Quote:

scsi 5:0:0:0: Direct-Access Ut163 USB2FlashStorage 0.00 PQ: 0 ANSI: 2
sd 5:0:0:0: [sdb] 1003520 512-byte hardware sectors (514 MB)
sd 5:0:0:0: [sdb] Write Protect is off
sd 5:0:0:0: [sdb] Mode Sense: 00 00 00 00
sd 5:0:0:0: [sdb] Assuming drive cache: write through
sd 5:0:0:0: [sdb] 1003520 512-byte hardware sectors (514 MB)
sd 5:0:0:0: [sdb] Write Protect is off
sd 5:0:0:0: [sdb] Mode Sense: 00 00 00 00
sd 5:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 5:0:0:0: [sdb] Attached SCSI removable disk
sd 5:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Nov 13, 2008 1:26 pm    Post subject: Reply with quote

Hi, do you see at least the drive ?

Code:

# fdisk -l


Also, are you sure that your USBstick if formated with FAT32....not NTFS ?
Back to top
View user's profile Send private message
muc-gentoo
n00b
n00b


Joined: 12 Apr 2008
Posts: 21

PostPosted: Thu Nov 13, 2008 4:14 pm    Post subject: Reply with quote

yes, I can see it with fdisk -l

Quote:

Device Boot Start End Blocks Id System
/dev/sdc1 1 14992 77953628 b W95 FAT32
Back to top
View user's profile Send private message
weaksauce
Apprentice
Apprentice


Joined: 17 Nov 2005
Posts: 204
Location: NYC

PostPosted: Thu Nov 13, 2008 4:22 pm    Post subject: Reply with quote

I hate to be sailing in as capt. obvious here, but are you sure you're booted into the correct kernel? If /proc/filesystems doesn't show vfat that's the only thing that seems to make sense. Has this ever worked or is this a recent development?
Back to top
View user's profile Send private message
qxtr01
n00b
n00b


Joined: 04 Nov 2008
Posts: 47

PostPosted: Thu Nov 13, 2008 6:18 pm    Post subject: Reply with quote

did you compile the requested options under Native language support?
Back to top
View user's profile Send private message
muc-gentoo
n00b
n00b


Joined: 12 Apr 2008
Posts: 21

PostPosted: Wed Nov 19, 2008 3:16 pm    Post subject: Reply with quote

Yes, I am positive to have loaded the correct kernel, because

Quote:

zcat /proc/config.gz | grep -i vfat


retrieves

Quote:

CONFIG_VFAT_FS=y


I cannot say if this has ever worked


re NLS, these ones are set:

CONFIG_UDF_NLS=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
CONFIG_NLS_CODEPAGE_850=y
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
CONFIG_NLS_CODEPAGE_936=m
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
CONFIG_NLS_ISO8859_15=y
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
CONFIG_NLS_UTF8=y


Could it have something to do with dbus / HAL and the likes?

Or does it matter that I am running on 64bit?
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Wed Nov 19, 2008 5:34 pm    Post subject: Reply with quote

verify if you have not the old fat (CONFIG_MSDOS_FS=y) support enabled (it tends to prevent the correct recognition of the filesystems) and are you sure than vfat is not present in the /proc/filesystems file (note than you must have CONFIG_FAT=y also)?
Is not normal, the only thing able to break the fat support is a misconfiguration in the codepages.
Have you build the kernel with genkernel? Try to remove the archived configuration and in every case do a make mrproper and reconfigure it from zero.
Just to be clear: if CONFIG_VFAT_FS=y you must have the codepages selected in CONFIG_FAT_DEFAULT_CODEPAGE and CONFIG_FAT_DEFAULT_IOCHARSET builtin, or modular only if CONFIG_VFAT_FS=m or the kernel modules autoload works properly.
By example I have:
Code:
CONFIG_FAT_FS=y
# CONFIG_MSDOS_FS is not set
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=850
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-15"
and
Code:
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
CONFIG_NLS_CODEPAGE_437=m
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_ASCII=m
CONFIG_NLS_ISO8859_1=m
CONFIG_NLS_ISO8859_15=y
CONFIG_NLS_UTF8=y
to prevent mistakes.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
muc-gentoo
n00b
n00b


Joined: 12 Apr 2008
Posts: 21

PostPosted: Wed Nov 19, 2008 10:49 pm    Post subject: Reply with quote

Thank you very much. That last reply fixed the problem.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Nov 20, 2008 1:50 pm    Post subject: Reply with quote

Nice :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum