LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how can i remount root filesystem as read/write after modify readonly-root file (http://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-remount-root-filesystem-as-read-write-after-modify-readonly-root-file-851535/)

jcwkyl 12-21-2010 03:01 AM

how can i remount root filesystem as read/write after modify readonly-root file
 
Hi,

My linux distro is CentOS 5.3. Today I edited /etc/sysconfig/readonly-root and set "READONLY" to yes, now my /etc/sysconfig/readonly-root file is like this:

# Set to 'yes' to mount the system filesystems read-only.
READONLY=yes
# Set to 'yes' to mount various temporary state as either tmpfs
# or on the block device labelled RW_LABEL. Implied by READONLY
TEMPORARY_STATE=no
# Place to put a tmpfs for temporary scratch writable space
RW_MOUNT=/var/lib/stateless/writable
# Label on local filesystem which can be used for temporary scratch space
RW_LABEL=stateless-rw
# Label for partition with persistent data
STATE_LABEL=stateless-state
# Where to mount to the persistent data
STATE_MOUNT=/.snapshot

After system rebooting I find any operation would throw an error saying "Read-only file system", i can not do anything.
Please help me.

stf92 12-21-2010 03:24 AM

Hi:

Boot with a CD-ROM a edit that file. Probably your distribution disk is bootable.

chrism01 12-21-2010 07:48 PM

The Centos DVD media should be be bootable. When it comes up, type

linux rescue

into the prompt

jcwkyl 12-21-2010 10:40 PM

Thanks.

I have found another way of solving my problem. Log in to the system, and run "mount -n -o remount /" as root, this will recover my system to read/write mode.


All times are GMT -5. The time now is 06:55 PM.