LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-26-2008, 12:20 AM   #1
hoshangi
Member
 
Registered: Nov 2007
Posts: 88

Rep: Reputation: 15
changing file system


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
 
Old 07-26-2008, 12:30 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
What is the output of the command line command?:

mount

You need to (re-)mount the file system read/write. From the command line, either of:

sudo mount -oremount,rw MOUNTPOINT
sudo mount -oremount,rw DEVICE

Change MOUNTPOINT or DEVICE to the file system mount point or device that shows up in the output of your mount command.
 
Old 07-26-2008, 07:42 AM   #3
hoshangi
Member
 
Registered: Nov 2007
Posts: 88

Original Poster
Rep: Reputation: 15
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
 
Old 07-26-2008, 07:58 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What is the filesystem type?

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.

Last edited by jschiwal; 07-26-2008 at 04:37 PM.
 
Old 07-26-2008, 11:46 AM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
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.
 
Old 07-27-2008, 10:56 PM   #6
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Not much to do with programming, moving to Linux - General.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing my file system Four Linux - General 3 02-25-2008 10:13 PM
changing file system to ext3 mohtasham1983 Linux - Newbie 8 06-28-2005 03:39 PM
Changing file system from NTFS to Linux Ext2 Oesie Linux - Newbie 3 01-16-2005 06:47 PM
changing file system mmm Linux - General 3 07-18-2003 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration