Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've a netboot Linux server where the the /root is mounted as readonly.

# 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=yes
# 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
# Options to use for temporary mount
RW_OPTIONS=
# Label for partition with persistent data
STATE_LABEL=stateless-state
# Where to mount to the persistent data
STATE_MOUNT=/var/lib/stateless/state
# Options to use for peristent mount
STATE_OPTIONS=
CLIENTSTATE=

I can see the files/directories on /etc/rwtab mounted in the temporary read-write filesystem. Now I would like to add files/directories to this list /etc/rwtab and unable to do so as itself readonly.

Now, I need to install software and update some configurations. Do I have to remount the root partition.

# mount -o remount,rw /

This is a Production server.

share|improve this question
    
OP is apparently using a RHEL/CentOS feature called "Stateless Linux". –  Martin von Wittich Sep 23 '13 at 16:53
    
Why would you use this on a production server? It sounds like it's designed for live images (ie. Linux running from a CD), not for a system installed on a harddisk that you want to update. –  Martin von Wittich Sep 23 '13 at 16:54

1 Answer 1

Since this is a stateless Linux, the actual /root is mounted through NFS from a separate machine where files are obviously mounted as rw. Thanks to @Martin von Wittich

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.