LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   a fat filename problem (https://www.linuxquestions.org/questions/linux-general-1/a-fat-filename-problem-319423/)

mehlkelm 05-02-2005 02:13 PM

a fat filename problem
 
I created a folder in nautilus called "R.E.M." on a fat partition. This folder bhaves really strange:
Code:

zozi@eris:/mnt/media/psycho neu$ ls
R.E.M.
zozi@eris:/mnt/media/psycho neu$ ls -l
ls: R.E.M.: No such file or directory
total 0
zozi@eris:/mnt/media/psycho neu$ cd "R.E.M."
bash: cd: R.E.M.: No such file or directory
zozi@eris:/mnt/media/psycho neu$ mv R.E.M. REM
mv: cannot stat `R.E.M.': No such file or directory

How can I access / rename / delete this funny directory?

stefan

Tinkster 05-02-2005 03:00 PM

What filesystem is it using according to
mount
?


Make sure you mount it as vfat, not FAT16


Cheers,
Tink

mehlkelm 05-02-2005 03:33 PM

Looks OK to me:

/dev/sda2 on /mnt/media type vfat (rw,noexec,nosuid,nodev,utf8,umask=0000,user=zozi)

SciYro 05-02-2005 04:01 PM

what does
Code:

ls -l
say?

mehlkelm 05-02-2005 04:13 PM

Re: a fat filename problem
 
Quote:

Originally posted by mehlkelm

Code:

zozi@eris:/mnt/media/psycho neu$ ls
R.E.M.
zozi@eris:/mnt/media/psycho neu$ ls -l
ls: R.E.M.: No such file or directory
total 0


..the error looks as if I would have asked explicitly for "R.E.M."
It finds the file and then cannot display information about it under the given name.

SciYro 05-02-2005 04:49 PM

thats a big problem, see if you can delete the file?

hmm, try mounting the device with default options, sometimes some of those options can produce errors like this.

mehlkelm 05-02-2005 05:00 PM

Mounted with defaults:
Code:

/dev/sda2 on /mnt/tmp type vfat (rw)
Trying to delete the strange folders whole parent directory:
Code:

eris:/mnt/tmp# rm -r /mnt/tmp/psycho\ neu/
rm: cannot lstat `/mnt/tmp/psycho neu//R.E.M.': No such file or directory

Crazy...:scratch:

SciYro 05-03-2005 02:25 AM

what about:

Code:

rm -fr /mnt/tmp/psycho\ neu/\/R.E.M
.... it is strange .. if nothing works, copy the file you want off it, then reformat ...

mehlkelm 05-03-2005 11:44 AM

of course the rm -rf didn't work either.
I even plugged the disk (its an external harddrive) into windows, but it cant handle its own filesystem when it is needed..


All times are GMT -5. The time now is 05:00 AM.