Linux - Newbie This 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! |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-21-2004, 11:02 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2004
Distribution: fedora core 5
Posts: 10
Rep:
|
remove write-protected file
hi,
how do u remove the write-protected file(s)?
|
|
|
|
04-21-2004, 11:47 PM
|
#2
|
|
Member
Registered: Jan 2004
Location: The land of the free and the home of the brave
Distribution: Slack 10
Posts: 239
Rep:
|
Which write protected files do you want to remove? Be careful, and be sure they're not subdirectories of /
If you are certain you want to delete this file, just type "su" and enter the password and do the same thing as a super user.
If that still doesn't work, type (as root) "chmod +w filename"
|
|
|
|
04-22-2004, 12:38 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2004
Distribution: fedora core 5
Posts: 10
Original Poster
Rep:
|
I wanted to rm the mp3 files from my usb drive.
[root@192 thumb]# rm *.mp3
rm: remove write-protected regular file `Creed - Higher.mp3'? y
rm: cannot remove `Creed - Higher.mp3': Read-only file system
rm: remove write-protected regular file `Creed - One Lasy Breath.mp3'? y
rm: cannot remove `Creed - One Lasy Breath.mp3': Read-only file system
as you can see this files couldn't be deleted.
|
|
|
|
04-22-2004, 01:08 AM
|
#4
|
|
Member
Registered: Jan 2004
Location: Behind You!
Distribution: Slackware 10 | SmoothWall 2.0 | FreeBSD 4.8
Posts: 56
Rep:
|
By any chance would the USB drive have a small switch on it that enables/disables write-protection?
Otherwise it looks like you may have mounted it read-only and will need to mount it read-write.
|
|
|
|
04-22-2004, 02:55 AM
|
#5
|
|
LQ Veteran
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642
Rep:
|
Alternatively, as long as nothing else on the USB drive needed to be saved, you could just reformat it. -- J.W.
|
|
|
|
04-22-2004, 03:06 AM
|
#6
|
|
LQ Newbie
Registered: Apr 2004
Distribution: fedora core 5
Posts: 10
Original Poster
Rep:
|
thanx 4 all the reply. I managed to remove all the mp3 files. it seems that when I plug in the usb drive while running redhat, all the files in it becomes read-only. after reboot (usb drive still attached to the pc), all the mp3 files can be deleted.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:46 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|