Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Knoppix Help Forum > unable to reverse the attributes of a file.

Forgot Password?
 Knoppix Help Forum   For all discussions about Knoppix, the Linux "Live CD" that lets you run Linux without needing to install on your hard drive.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 04-29-2008   #1 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 9
Question unable to reverse the attributes of a file.

Hi all.

i am using knoppix 5.0 live cd. I tried deleting a file in Windows(tm) system 32 (I really have to delete it) using the terminal shell but when i use the command

rm logoff.exe

it prints out "rm: cannot remove 'logoff.exe' : read-only file system".

i have tried to use

attr -r logoff.exe

but it prints out a message implying i obviously don't know how to use "attr". please help me remove the file.

Thanks in advance.
wamuti is offline  


Reply With Quote
Old 04-29-2008   #2 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 2
Read-Only filesystem

Hallo

The message you get says read-only filesystem. In other words the whole windoze file system is mounted as readonly. Therefore you cannot change anything on the filesystem.

This is typical of NTFS filesystems. Linux by default mounts them as readonly since MS will not release all the intricacies of their filesystems inner workings linux cannot guaranty that it can modify it safely.

You could recompile your own linux kernel with read-write NTFS support, but as said, that implicates a risk. Over and above that I assume you might not want to since you are using a live CD.

Knapie
knapie is offline   Reply With Quote
Old 04-29-2008   #3 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 9
Thumbs up thanks alot

Thanks alot. i really needed to delete that file but it's okay, u've taught me things i did not know. Thanks again.
wamuti is offline   Reply With Quote
Old 04-29-2008   #4 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,058
Send a message via Yahoo to devils casper
There is no need to recompile kernel. You can enable NTFS write access through ntfs-3g.
Open Synaptic Package Manager and search for ntfs-3g. Install it and mount NTFS partition again.
You can use PartedMagic LiveCD too. Its a Partition Manger and ntfs-3g package is pre-installed in it.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 04-29-2008   #5 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 9
Thumbs up Thanks you guys...

i have solved the problem using your info and Knapie's info.
As Knapie says that when linux mounts a partition, it is read only, and when you say remount it again, i have realized that if the partition was mounted by a user, say an administrator, then, the file would not be read-only...
so i used:

umount -t ntfs /dev/hda1 /media/hda1

and this unmounted the harddisk

and mounted using

mount -t ntfs /dev/hda1 /media/hda1

and just as expected, all the files were not read-only!!

Thanks so much guys, i could not have done it without you. You have taught me alot!!!! you guys are totally cool like ->
wamuti is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:56 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2