Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

mount: unknown filesystem type 'vfat' [SOLVED]

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
muc-gentoo
n00b
n00b
Posts: 21
Joined: Sat Apr 12, 2008 9:08 am

mount: unknown filesystem type 'vfat' [SOLVED]

  • Quote

Post by muc-gentoo » Wed Nov 12, 2008 10:17 pm

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.
Top
weaksauce
Apprentice
Apprentice
User avatar
Posts: 204
Joined: Thu Nov 17, 2005 2:31 am
Location: NYC

  • Quote

Post by weaksauce » Wed Nov 12, 2008 10:22 pm

Do you also have

Code: Select all

CONFIG_FAT_FS=y
I don't think menuconfig or make enforces it, but it's required for VFAT to work correctly.
Top
cyrillic
Watchman
Watchman
User avatar
Posts: 7311
Joined: Wed Feb 19, 2003 3:05 am
Location: Groton, Massachusetts USA

  • Quote

Post by cyrillic » Wed Nov 12, 2008 11:57 pm

You can always do this to check what filesystems are supported by your kernel.

Code: Select all

# cat /proc/filesystems 
Top
qxtr01
n00b
n00b
Posts: 47
Joined: Tue Nov 04, 2008 7:54 pm
Contact:
Contact qxtr01
Website

  • Quote

Post by qxtr01 » Thu Nov 13, 2008 10:12 am

please run 'dmesg' just after having tried mounting the partition and post the last lines.
Top
muc-gentoo
n00b
n00b
Posts: 21
Joined: Sat Apr 12, 2008 9:08 am

  • Quote

Post by muc-gentoo » Thu Nov 13, 2008 1:07 pm

CONFIG_FAT_FS=y is set

cat /proc/filesystems does not retrieve vfat

here is the output of dmesg
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
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Thu Nov 13, 2008 1:26 pm

Hi, do you see at least the drive ?

Code: Select all

# fdisk -l
Also, are you sure that your USBstick if formated with FAT32....not NTFS ?
Top
muc-gentoo
n00b
n00b
Posts: 21
Joined: Sat Apr 12, 2008 9:08 am

  • Quote

Post by muc-gentoo » Thu Nov 13, 2008 4:14 pm

yes, I can see it with fdisk -l
Device Boot Start End Blocks Id System
/dev/sdc1 1 14992 77953628 b W95 FAT32
Top
weaksauce
Apprentice
Apprentice
User avatar
Posts: 204
Joined: Thu Nov 17, 2005 2:31 am
Location: NYC

  • Quote

Post by weaksauce » Thu Nov 13, 2008 4:22 pm

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?
Top
qxtr01
n00b
n00b
Posts: 47
Joined: Tue Nov 04, 2008 7:54 pm
Contact:
Contact qxtr01
Website

  • Quote

Post by qxtr01 » Thu Nov 13, 2008 6:18 pm

did you compile the requested options under Native language support?
Top
muc-gentoo
n00b
n00b
Posts: 21
Joined: Sat Apr 12, 2008 9:08 am

  • Quote

Post by muc-gentoo » Wed Nov 19, 2008 3:16 pm

Yes, I am positive to have loaded the correct kernel, because
zcat /proc/config.gz | grep -i vfat
retrieves
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?
Top
djinnZ
Advocate
Advocate
User avatar
Posts: 4831
Joined: Thu Nov 02, 2006 12:47 pm
Location: somewhere in L.O.S.
Contact:
Contact djinnZ
Website

  • Quote

Post by djinnZ » Wed Nov 19, 2008 5:34 pm

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: Select all

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: Select all

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:
Top
muc-gentoo
n00b
n00b
Posts: 21
Joined: Sat Apr 12, 2008 9:08 am

  • Quote

Post by muc-gentoo » Wed Nov 19, 2008 10:49 pm

Thank you very much. That last reply fixed the problem.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Thu Nov 20, 2008 1:50 pm

Nice :P
Top
Post Reply

13 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic