LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-01-2007, 09:31 AM   #1
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Rep: Reputation: 15
Need help killing a file..


Ok here is the problem this file will not [del] i've logged in as root tried with konsole rm'ed the file when i do that it tells me this:

"rm: cannot remove `FILE': Read-only file system

I think this is a trojan or something of that nature but i run linux so it don't matter to me..Also this is on a external hdrive...
 
Old 05-01-2007, 09:34 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Seems like the external HDD is mounted as a read-only filesystem. Type in "mount" at the prompt, and you should see the drive permissions in () at the end of each line. If it's (rw), it's read-write. (r) would indicate read-only.

You can try unmounting and remounting the file system as read-write.
 
Old 05-01-2007, 09:36 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The errors tells you what the problem is: Your filesystem is mounted read-only.

Mount it read-write (if possible) and your problem is solved.

You don't tell us what kind of FS is on the external hd, so I cannot give you any other advice.

Hope this helps.
 
Old 05-01-2007, 09:38 AM   #4
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Original Poster
Rep: Reputation: 15
ok this is what mount says /dev/sdf1 on /media/Backup type ntfs (rw,nosuid,nodev,sync,uid=1000)
 
Old 05-01-2007, 09:52 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi again,

The line does state that it (the ntfs fs) should be mounted read-write (the rw option). But......

There's also a kernel option for ntfs filesystems to allow writing on ntfs. This is probably not activated. It's (still??) dangerous to write on a ntfs partition, that's why it's off by default on most ditro's.

There's also a ntfs tool that i heard of (never used it myself): ntfs-3g. Don't know if this tool needs the ntfs write kernel option to be activated in order to do its work.

Hope this helps.
 
Old 05-01-2007, 10:04 AM   #6
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna
Hi again,


There's also a kernel option for ntfs filesystems to allow writing on ntfs. This is probably not activated. It's (still??) dangerous to write on a ntfs partition, that's why it's off by default on most ditro's.


Why is this dangerous? all i want to do is copy my mp3 to this drive...

I have a network sould i send them to my win-hows rig then just copy them off of that?
 
Old 05-01-2007, 10:22 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I never had the need (home and work) to write to a ntfs partition/disk, so my knowledge is only hear-say.

These are the 3 things I 'know':
1) Current NTFS kernel driver (kernel 2.6+ only?). Read is fully supported for 3-4 years, write is reliable but not everything is implemented.
2) Older NTFS kernel driver. It's used up to kernel 2.4. Read is ok, write was disabled (implemented only for NT4).
3) Driver (old and new?) is referred as "dangerous" by a few (knowledgeable?) people.

The 2 questions (1 and 3) are mine, not enough detail.

If 2 and/or 3 are true: You can/will corrupt your ntfs partition/disk.

The safest way would be to copy to your windows box and from there to your external disk.
 
Old 05-01-2007, 01:44 PM   #8
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Original Poster
Rep: Reputation: 15
I would say 1 is true for me as far as kernel i have 2.6.18.8-0.1-default "lol got to love that"...

Just going to copy to the drone rig and do it that way...
 
Old 05-01-2007, 02:51 PM   #9
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Original Poster
Rep: Reputation: 15
Can i reformat the drive with a FS that windows and linux can read write to..LoL fatchance right...
 
Old 05-01-2007, 03:00 PM   #10
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Yes use normal FAT32 and you can read+write.

But you will need to change the entry in /etc/fstab to something like:

/dev/sdf1 /Media/backup vfat rw 0 0

You might also need to add uid=<user> after rw,

Last edited by dive; 05-01-2007 at 03:04 PM.
 
Old 05-01-2007, 03:24 PM   #11
tkienzle
Member
 
Registered: Feb 2005
Location: Kansas City MO
Distribution: openSUSE 11.4
Posts: 90

Original Poster
Rep: Reputation: 15
sweet...I'm going to have to do that hmm now where was that command...
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Killing Modified File Auto Backups ("~") - Mandriva 2006 dalter Mandriva 2 06-29-2006 02:04 PM
This is killing me UncleEricB Linux - Networking 2 02-01-2005 09:41 PM
killing X jabberwock486 Linux - Newbie 7 09-10-2003 11:59 AM
killing artsd JunLitsu Linux - Software 2 05-02-2003 12:57 AM
Killing X ? sp0t Linux - Newbie 7 08-17-2002 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:46 AM.

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