Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
It looks like the filesystem may be corrupt. You could try either using a graphical file manager, or using tab completion in the terminal. It you use a terminal that supports copy and paste, sometimes copying the filename from the listing, and pasting the name in the terminal after the rm command will delete the file.
What do the permissions on the mount point look like? E.G.: "ls -ld /media/card". If there are filesystem errors, it may have been mounted read-only.
Another method you could use is to list the files, including the inodes. Then use find to locate the file with a strange name and delete it.
Unless you have a really large card or unless you have been using Linux since Tuesday May the 23rd 1911 I agree this looks like filesystem corruption. What is the file system type? (Depending on the file system type 'fsck' with "-v -n" may return clues or not.) In which OS was it last mounted OK? What was its locale set to? (See 'man locale'.) Was it umounted properly? If you mount it back does it read it OK? And what kind of data was loaded? (What does 'file /mountpointofcard/*' return?)
Last edited by unSpawn; 12-17-2011 at 10:12 AM.
Reason: //More -=is=- more
Its a read only filesystem....filesystem type is msdos
Actually i got these files from my friend's mobile via bluetooth. Some of these files are installation packages of mobile games....i've tried rm command but since its a read-only filesystem, it doesnt work.When i use LC_CTYPE for one such file it showed that LC cannot change the file . When i used file/mountpointofcard/* i got INPUT/OUTPUT err...i dont wish to format the card as it contains a lot of useful data......
thnx everyone 4 response.
First make a backup. Find out the exact mount point of the card ('mount'). Find out which mounted partition has enough free space to hold a copy of the cards contents ('df -mh'). Umount the card then run 'dd if=/dev/card of=/mnt/backup.dd'. Substitute "/dev/card" for the device name the card is located at (find it by running 'fdisk -l' or look in /dev/disk/by-*/ directories or check /var/log/messages) and "/mnt/" for the mounted partition with enough free space. An example (so check you are using the right device and mount point names) may then look like 'dd if=/dev/sdk1 of=/opt/backup.dd'. Once 'dd' finished you can "dry run" fsck on the file system, for example (so check you use the right device name) 'fsck.vfat -lvn /dev/sdk1', to see what it tells us.
this is the output of dd dd if=/dev/sdb1 of=/"Movie"/backup.dd
dd: opening `/dev/sdb1': Permission denied
and this is of fsck.vfat fsck.vfat -lvn /dev/sdb1
dosfsck 3.0.9 (31 Jan 2010)
dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
open: Permission denied
sry.......this time i used those commands againg along with sudo
here is wat i got for fsck.vfat for these files /Untitled Folder/j:�}�f�$.C�\227
Directory has non-zero size. Fixing it.
Start cluster beyond limit (526224332 > 120753). Truncating file.
Start cluster beyond limit (3849617590 > 120753). Truncating file.
File size is 3839794457 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
these are just a few of those
i copied the whole content memory card to my system. those unkonwn files couldnt be copied....then i formated the card and copied back the files to it.....so those files are no more...........