Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-14-2004, 04:29 PM
|
#1
|
Member
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169
Rep:
|
mounting FAT (not FAT32) file systems w/ 2.4 kernel
I have an mp3 player (iriver ifp-300) that will only allow FAT formatting. I have no problem mounting fat32 filesystems in linux but have not had to mount FAT fs until now. I put the line
/dev/sdb2 /mnt/mp3 vfat noauto,users 0 0
in fstab and the device would mount, but the folders and files were unrecognizable. I changed the line to:
/dev/sdb2 /mnt/mp3 fat noauto,users 0 0
blindly hoping that would be correct, but i then get the following error message:
mount: fs type fat not supported by kernel
I've got slack 10 with the 2.4.26 kernel. I'd have thought that it would support FAT....
What do I need to do to be able to mount FAT fs?
|
|
|
11-14-2004, 04:56 PM
|
#2
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
vfat is the device driver to support both FAT16 and FAT32 filesystems.
The most likely problem is that your mount-point is wrong; many such devices only use one partition, in which case it would be /dev/sdb1 not sdb2. Also, sdb is the second SCSI (or USB mass storage) device; make sure you have the right one.
The fact that you use the word “unrecognizable” implies that you are seeing files and directories with strange names (unusual characters). In which case, you have the wrong codepage selected; you'll probably want something like UTF8 or Unicode (at a guess).
You can change this in the options column of the fstab entry; A list of options for vfat can be found in the file /usr/src/linux/Documentation/filesystems/vfat.h
eg.
Code:
/dev/sdb2 /mnt/mp3 vfat noauto,users,utf8=true 0 0
|
|
|
11-14-2004, 08:53 PM
|
#3
|
Member
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169
Original Poster
Rep:
|
I use sdb2 because I have my camera mount on sdb1 in fstab. This is what I get when I plug the mp3 player in:
Nov 14 20:51:22 sbc kernel: sdb: sdb1 sdb2 sdb4
so I just picked sdb2 and it does mount there without error messages. I can change to the mp3 directory. when I list contents, I get the following (in part):
? °ntldr °ntldr »?.ý}ë ë<?msdos.5.0 ë<?msdos.5.0 at2nt??Ç. ;û at2nt??Ç. ;û estart?? f??f??v?.?f? f??f??v?.?f? ?Ѽð{?Ù¸ ?ô?v$Í?a.ar? ?ô?v$Í?a.ar? °ntldr °ntldr »?.ý}ë ë<?msdos.5.0 ë<?msdos.5.0 at2nt??Ç. ;û estart?? estart?? f??f??v?.?f? f??f??v?.?f? ?Ѽð{?Ù¸ ?ô?v$Í?a.ar? ?ô?v$Í?a.ar? °ntldr »?.ý}ë »?.ý}ë ë<?msdos.5.0 ë<?msdos.5.0 at2nt??Ç. ;û estart?? estart?? f??f??v?.?f? f??f??v?.?f? ?Ѽð{?Ù¸ ?ô?v$Í?a.ar? ?ô?v$Í?a.ar? °ntldr »?.ý}ë »?.ý}ë ë<?msdos.5.0 ë<?ms
I've tried the utf8 option as you listed, to no effect.
|
|
|
11-15-2004, 04:07 AM
|
#4
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
What happens when you try it with sdb4?
Also, just looking at this text, it looks like the filesystem is encrypted; at least .ar? looks like it should be .mp3. This isn't UTF8 or unicode, but it might be some other codepage.
You might have to use one of the crypto loopback device options to make this work; I don't have any details to hand but I'd recommend looking through the kernel documentation for options etc.
|
|
|
11-15-2004, 09:49 AM
|
#5
|
Member
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169
Original Poster
Rep:
|
I'm not at my computer now, so I cannot try /sdb4, but why would the mount point make a difference? I agree that it looks like a conversion problem. I'll look at the kernel documentation when I get home. I'm just surprised I'm having a problem with FAT conversion.
|
|
|
11-16-2004, 02:46 PM
|
#6
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
The mount point won't make any difference, but the device file you use is set by the kernel, and that must be correct. The device file is /dev/sdb2 or /dev/sdb4. The mount point can be almost anything , but usually starts with /mnt/ or /media/
If you get the device file wrong, you'll be trying to mount the wrong device, or the wrong partition/filesystem. I can imagine an mp3 player might use both encrypted and non-encrypted mount-points, for example.
|
|
|
11-16-2004, 05:17 PM
|
#7
|
Member
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169
Original Poster
Rep:
|
Ok, I figured it out. The line in dmesg pertaining to my mp3 player was
Nov 14 20:51:22 sbc kernel: sdb: sdb1 sdb2 sdb4
I was trying to mount /dev/sdb2 in fstab. I needed to mount /dev/sdb
|
|
|
All times are GMT -5. The time now is 12:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|