Re: Deletion of files from usb-key
>
> Post the actual output of 'ls -la'. Also the output of 'df
> /media/usb-key' with the device mounted would help
>
$ ls -la /media/usb-key
drwxr-xr-x 2 brownh brownh 20480 Dec 31 1969 .
drwxr-xr-x 8 root root 4096 Jul 17 15:16 ..
-rwxr-xr-x 1 brownh brownh 1071529 Aug 14 14:35 Brooks_Angelo_Maya-1.png
-rwxr-xr-x 1 brownh brownh 384142 Aug 15 16:11 Brooks_Asjah-1.JPG
-rwxr-xr-x 1 brownh brownh 498168 Aug 10 21:42 Brooks_Chanel.png
-rwxr-xr-x 1 brownh brownh 491997 Aug 10 22:27 Brooks_Curtis_Sandra.png
...
$ df /media/usb-key
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdd1 499440 303916 195524 61% /media/usb-key
> Hmmm... appears to be some hardware error or a case of filesystem
> corruption. Did you try dosfsck on the drive?
I agree that it seems to be file system corruption, but dosfsck didn't
help. On unmounted device:
# dosfsck /dev/sdd
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Logical sector size is zero.
> Use mkdosfs. Unless you assigned a drive letter to your flash drive,
> mformat is unlikely to work.
I tried mkdosfs on an unmounted device:
# mkdosfs -I /dev/sdd
mkdosfs 2.11 (12 Mar 2005):
when I mounted it, the files remain. Hoever, for some reason my xterm
displays them in green, while files are normally displayed in
black. I can add and then delete a test file on the device, which also
shows up green.
--
Haines Brown, KB1GRM
Reply to: