Linux - GeneralThis 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.
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.
hi
i have an file with read only file system an i want to delete it
but when i remove it the "Readonly file system" Error appear how can chang the file system of file
i have a flash memory(cooldisk) in this flash is a virus and everything i copy in it then i cant remove it.
when i want to remove with rm command this Error appear
rm:cannot remove "lyu.exe" is Read-Only File System
please tell me how can change my cooldisk filesystem
Use the file command to find out. For example, if the partition is /dev/sde1, then enter "sudo file -s /dev/sde1".
Also, do as suggested and post the output of the "mount" command with no arguments.
If this is one of those active usb devices that has a cdrom emulated section, then you may need to resort to google to find the answer. The iso9660 filesystem is read only. You may need to copy the image to a directory, and create a new iso image without the virus and reflash the drive. I have no idea how you would do the latter part. You may need to call the manufacturer in that case if using google doesn't provide an answer.
( If an iso9660 filesystem is on a partition of a parent device, e.g. /dev/sde containing /dev/sde1, and the parent is writable, then you may be able to replace the image on /dev/sde1 even if the raw /dev/sde1 device isn't writable. You could do this using losetup to setup a loop device on /dev/sde with an offset where /dev/sde1 starts and then writing to this loop device using dd to copy a modified iso image. The new image will need to be the same size or smaller to keep from overwriting the start of /dev/sde2. )
See the man pages for mount, file, losetup & dd.
And provide more information on this device, how the partitions are mounted, etc.
hoshangi, it is difficult to help people when insufficient information is presented. If you want help, please provide as much information relevant to the problem as you are able.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.