LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-13-2006, 03:39 PM   #1
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
can't mount fat32 or fat16 as vfat


I have a sandisk USB flash drive/mp3 player. It has a fat32 filesystem on it. I can mount it just fine, if I use -t msdos, but this is no good as linux only sees the 8.3 format filenames. And if I copy anything onto it from linux, all the names get truncated and the extension gets eradicated in the process.

now the numerous threads I've read all say to mount it as "-t vfat" but that just spits out "mount: wrong fs type, bad option, bad superblock on /dev/sda1,"

I just checked my kernel config to make sure that I had vfat support in there, and I do. I need some help here - I want to be able to read (in linux) the long-format names of files that might have been copied from a windows box, and be able to copy files from a linux box without wiping out long names(and ".mp3"!) in the process.

here's the relevant fstab line:
Code:
/dev/sda1        /mnt/flash       vfat        noauto,user,umask=000     0   0
trying to mount as a user with "mount /mnt/flash" spits out the wrong fs type error with that fstab, but it mounts fine when I change vfat to msdos.

"mount -t msdos /dev/sda1 /mnt/flash" will mount it ok (but with 8.3)
"mount -t vfat /dev/sda1 /mnt/flash" will just spit out the fs error
 
Old 07-13-2006, 03:45 PM   #2
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
Do you have both MSDOS fs support and VFAT (Windows-95) fs support enabled in the kernel ? Maybe you should try including them in, not as modules.
 
Old 07-13-2006, 04:10 PM   #3
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Original Poster
Rep: Reputation: 35
well it seems M$ fs support is all modules! fat, vfat, and ntfs. I'll put them right in now and see how it goes. my third linux question, my first linux answer. thank you nykey!
 
Old 07-13-2006, 05:20 PM   #4
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Original Poster
Rep: Reputation: 35
I took my last config and compiled a new kernel, changing the following items under File Systems --> DOS/FAT/NT Filesystems from being modules to actually being in the kernel (bullets to checkmarks in xconfig):
-MSDOS fs support
-VFAT (Windows-95) fs support
-NTFS file system support

those are the only (unhidden) items in this section, excluding the ntfs sub-items. There are two items underneath VFAT that I can't change
-(437) Default codepage for FAT
-Default iocharset for FAT: iso8859-1


long story short, same wrong fs error when I try to mount as vfat. I'm sure I was booting the new kernel because X wouldn't work (would have had to reinstall the nvidia module). Are there more boxes I should be ticking somewhere outside the File Systems section?

are there any packages in the slackware install that I might need?? On my current install I tried to not install the packages that looked useless to me.. I remember I got rid of the tools for JFS and HFS and some other stuff I didn't think I needed, but I don't think I would have failed to install packages related to reading M$ filesystems since I've got many gigs of those still.

but then I don't have a mkfs.vfat in /sbin, does that scream of something missing to someone???

am I right to assume that I should be able to mount, in linux as vfat, devices formatted in windows as fat16/fat32?

Last edited by lurko; 07-13-2006 at 05:23 PM.
 
Old 07-19-2006, 06:42 AM   #5
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Original Poster
Rep: Reputation: 35
under File Systems --> Native Language Support, the NLS_ISO8859-1 module was not compiled in my kernel. Once I added that I was able to mount as vfat with no issues.
 
Old 07-19-2006, 07:16 AM   #6
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
oops, didn't think of that, ofcourse the charset is needed, good thinking. glad to know you've got it working. enjoy.
 
Old 07-19-2006, 08:00 PM   #7
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Original Poster
Rep: Reputation: 35
I'm pretty sure I removed it on my very first kernel compile. I mistakenly failed to realize that it was the defualt for US-english in my attempts to remove everything that wasn't.

actually the "good thinking" involved little more than running dmesg | tail, googling the results and going from there. I won't deny that I'm quite pleased I got this working though, despite the fact that the only reason it didn't work in the first place was down to me. thanks for the replies nykey, yours are the only ones I've been able to get for any questions I've had so far, I don't even get RTFM! replies.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mkfs vfat FAT32 2G is the largest size? bbburgess Linux - General 3 04-03-2006 01:26 PM
How to format to FAT32, and how to mount my FAT32 partition. bonniehandi Linux - Newbie 16 03-05-2006 08:54 PM
vfat or fat32 for shared partition? daTerminehtor Linux - Newbie 11 01-12-2006 07:13 PM
what do I have? (FAT, VFAT, FAT32, NTFS) shengchieh Linux - Newbie 3 08-16-2004 05:52 PM
Can't mount partition using fs type; win95 fat32, fat16 desmondwck Linux - Hardware 13 05-23-2004 06:34 PM


All times are GMT -5. The time now is 12:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration