Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems reading from 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
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Thu May 13, 2004 6:49 pm    Post subject: problems reading from vfat [SOLVED] Reply with quote

Hello, I have got Gentoo and Windows installed on my computer. Being in Gentoo I sometimes copy files to a FAT32 partition, so I can access these files when I switch to Windows too. But when I boot into Windows I cannot read the files. The files are listed, but when I try to open a file I get some error message, that it cannot be read or something like that. I have the same problem with my usb stick (Muvo TX). I can write data to the stick, but the stick doesn't seem to recognize the files (mp3s) and I cannot play them. But in both cases I can access and read files when I work in Gentoo.

kernel: 2.4.25-gentoo and vfat is compiled into the kernel
fstab:
/dev/hda5 /mnt/hda5 vfat noauto,rw,users,iocharset=iso8859-1 0 0
/dev/sda1 /mnt/muvo vfat noauto,users,rw,sync 0 0

There are no error messages at all when I copy the files in Gentoo.
_________________
Hello 911? How are you?


Last edited by massimo on Fri Aug 13, 2004 11:09 am; edited 1 time in total
Back to top
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Thu May 13, 2004 11:53 pm    Post subject: Reply with quote

add umask=000 to the "options" section of that fstab and try again
_________________
If you can't dazzle them with brilliance, baffle them with bullshit.
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Fri May 14, 2004 5:41 am    Post subject: Reply with quote

I tried it but with the same result as before. The other thing is, that it works sometimes, but I guess in one in 50 tries.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Fri Aug 13, 2004 9:14 am    Post subject: Reply with quote

I've switched to kernel 2.6(.7) and I've got the same problem as before, at least the one with the usb stick (MP3 Player Muvo TX 256). I can access the stick and I can write to the stick and read the written data, but the stick cannot read (doesn't see?) the data (play the mp3s). I have an usb 2.0 extension pci card plugged in which I use for accessing the usb stick, digicam, printer etc...
The corresponding line in the fstab file hasen't changed since the first post here. Anyone any idea? I hate to copy the mp3s to the windows partition, boot into windows and copy the music there on the player :?
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
LittleVampy
n00b
n00b


Joined: 12 Aug 2004
Posts: 20

PostPosted: Fri Aug 13, 2004 9:26 am    Post subject: Reply with quote

Do the files have a .mp3 extension in the filename?
My gentoo doesn't seem to add that, it can just recognize the file as a mp3, your software might be configured to look for a .mp3 extension.
Otherwise, no clue.
_________________
[img:1dc3775533]http://influx.bluelaguna.net/vince.jpg[/img:1dc3775533]
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Fri Aug 13, 2004 9:32 am    Post subject: Reply with quote

@ massimo
try this:
vfat defaults,umask=000
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Fri Aug 13, 2004 10:01 am    Post subject: Reply with quote

Thanks for your help, I finally found the problem. I actually never cared about the log message which showed up after I had mounted the stick:
Code:

[kernel] Unable to load NLS charset cp437

Few minutes ago I did care checked the mount man page which says
Code:

codepage=value
              Sets the codepage for converting to shortname characters on  FAT
              and VFAT filesystems. By default, codepage 437 is used.

I compiled the codepage into the kernel and now it's working :)
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Fri Aug 13, 2004 10:04 am    Post subject: Reply with quote

i'm happy you solved...
anyway pls put [SOLVED]...
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