LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 07-17-2011, 11:53 AM   #1
AngryBeast
Member
 
Registered: Jul 2011
Posts: 57

Rep: Reputation: Disabled
rm: cannot remove Read-only file system


rm: cannot remove `dny': Read-only file system


i am administrator :
[root@pty12237b ~]# id
uid=0(root) gid=0(root) groups=0(root)

and i cannot delete ! why!
 
Old 07-17-2011, 11:54 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,417
Blog Entries: 1

Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
Where is the file you're trying to remove (eg. usb drive)? What file system is it?
 
Old 07-17-2011, 11:55 AM   #3
AngryBeast
Member
 
Registered: Jul 2011
Posts: 57

Original Poster
Rep: Reputation: Disabled
[root@pty12237b dny]# pwd
/root/dny
[root@pty12237b dny]#

in my hard!!!
 
Old 07-17-2011, 12:03 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,417
Blog Entries: 1

Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
Can you post the output of ls -l from that directory (and which file are you trying to remove)?
 
Old 07-17-2011, 12:04 PM   #5
AngryBeast
Member
 
Registered: Jul 2011
Posts: 57

Original Poster
Rep: Reputation: Disabled
[root@pty12237b dny]# ls -l
total 2424
-rwxr-xr-x 1 504 504 4834 Aug 10 2008 Changelog
-rwxr-xr-x 1 504 504 12175 Aug 10 2008 fphelper.py
-rw-r--r-- 1 root root 12439 Jul 13 21:44 fphelper.pyc
-rwxr-xr-x 1 504 504 12288 Aug 20 2008 groupdb
-rwxr-xr-x 1 504 504 35886 Aug 10 2008 helper.py
-rw-rw-r-- 1 504 504 35303 Feb 20 2010 helper.pyc
-rw-r--r-- 1 504 504 2 Aug 20 2008 log
-rw-r--r-- 1 root root 819486 Mar 3 17:37 parole.txt
-rwxr-xr-x 1 504 504 4298 Aug 10 2008 pptable.py
-rw-r--r-- 1 root root 4947 Jul 14 10:53 pptable.pyc
-rwxr-xr-x 1 504 504 1361 Aug 10 2008 README
-rwxr-xr-x 1 504 504 4229 Aug 10 2008 regen.py
-rw-r--r-- 1 root root 4055 Jul 13 21:44 regen.pyc
-rw-r--r-- 1 root root 1730 Jul 16 09:16 sipuli.txt
-rwxr-xr-x 1 504 504 110592 Jul 16 09:21 staticfull
-rwxr-xr-x 1 504 504 282624 Jul 16 09:20 staticheaders
-rw-r--r-- 1 504 504 21737 Aug 19 2008 svcrack.py
-rwxr-xr-x 1 504 504 9159 Aug 10 2008 svlearnfp.py
-rwxr-xr-x 1 504 504 22045 Aug 20 2008 svmap.py
-rwxr-xr-x 1 504 504 8285 Aug 10 2008 svreport.py
-rw-r--r-- 1 504 504 24458 Aug 19 2008 svwar.py
-rwxr-xr-x 1 504 504 749 Aug 10 2008 sv.xsl
-rwxr-xr-x 1 504 504 308 Aug 10 2008 THANKS
-rwxr-xr-x 1 504 504 80 Aug 10 2008 TODO
-rwxr-xr-x 1 504 504 45056 Aug 20 2008 totag
-rw-r--r-- 1 root root 819486 Mar 3 17:37 users.txt
[root@pty12237b dny]#



I WANNA DELETE ALL THIS DIR!
 
Old 07-17-2011, 12:06 PM   #6
AngryBeast
Member
 
Registered: Jul 2011
Posts: 57

Original Poster
Rep: Reputation: Disabled
and btw i cannot attach any file

[root@pty12237b ~]# touch a
touch: cannot touch `a': Read-only file system
[root@pty12237b ~]#


WHY?
 
Old 07-17-2011, 12:10 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,888
Blog Entries: 2

Rep: Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808
Please post the output of
Code:
mount
 
Old 07-17-2011, 12:11 PM   #8
AngryBeast
Member
 
Registered: Jul 2011
Posts: 57

Original Poster
Rep: Reputation: Disabled
[root@pty12237b ~]# mount
/dev/sda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

mount: warning: /etc/mtab is not writable (e.g. read-only filesystem).
It's possible that information reported by mount(8) is not
up to date. For actual information about system mount points
check the /proc/mounts file.

[root@pty12237b ~]#
 
Old 07-17-2011, 12:18 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,888
Blog Entries: 2

Rep: Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808Reputation: 3808
OK, as it said, the content of /etc/mtab may be not accurate because it can't be written to that file. So it seems to me that your entire /-partition is mounted read-only. This normally only happens when the system recognizes errors on that partition and re-mounts the partition read-only to prevent further damage. The output of
Code:
cat /proc/mounts
should show that the filesystem is read-only. I would recommend to run fsck on that partition to fix any errors and then reboot the machine.
 
Old 07-17-2011, 12:19 PM   #10
AngryBeast
Member
 
Registered: Jul 2011
Posts: 57

Original Poster
Rep: Reputation: Disabled
[root@pty12237b ~]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 ro,data=ordered 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /selinux selinuxfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda1 /boot ext3 rw,data=ordered 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
/etc/auto.misc /misc autofs rw,fd=7,pgrp=4229,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,fd=13,pgrp=4229,timeout=300,minproto=5,maxproto=5,indirect 0 0
[root@pty12237b ~]#
 
Old 07-17-2011, 12:20 PM   #11
AngryBeast
Member
 
Registered: Jul 2011
Posts: 57

Original Poster
Rep: Reputation: Disabled
pls explain to me for console only because this server is buy from serverpronto.com !!! and i have only accesst so console!!
 
Old 07-17-2011, 12:22 PM   #12
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,417
Blog Entries: 1

Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
Quote:
Originally Posted by AngryBeast View Post
[root@pty12237b ~]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 ro,data=ordered 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /selinux selinuxfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda1 /boot ext3 rw,data=ordered 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
/etc/auto.misc /misc autofs rw,fd=7,pgrp=4229,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,fd=13,pgrp=4229,timeout=300,minproto=5,maxproto=5,indirect 0 0
[root@pty12237b ~]#
Did you edit /etc/fstab? What does it say?
 
Old 07-17-2011, 12:34 PM   #13
AngryBeast
Member
 
Registered: Jul 2011
Posts: 57

Original Poster
Rep: Reputation: Disabled
how i edit that ? by console?
 
Old 07-17-2011, 12:43 PM   #14
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,539
Blog Entries: 51

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
// Before we continue with our regular broadcast I'd like to point out that if you didn't put SIPVicious there (as that's what this "svcrack.py" is from) then you've got a major problem as it's used for auditing cracking SIP based VoIP systems and deleting the files isn't the end of it.
 
Old 07-17-2011, 12:45 PM   #15
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,539
Blog Entries: 51

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
You could try running 'mount / -o remount,rw' but usually a file system goes read-only ('man tune2fs': "-e read-only") due to file system level problems which you need to fsck before doing anything else.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
help rm: cannot remove : Read-only file system ufmale Linux - Newbie 2 08-21-2009 06:19 PM
Read Only File System? Can't read superblock! haughjd Linux - Software 4 01-15-2008 08:27 AM
web server (fedora core 5) became read-only file system after i upload a file nggs8411 Linux - Server 1 03-26-2007 09:23 AM
How to read .chm file in fedora, can't mount ntfs file system ishti_du Linux - Newbie 12 03-06-2007 03:27 AM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM


All times are GMT -5. The time now is 07:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration