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.
# Set to 'yes' to mount various temporary state as either tmpfs
# or on the block device labelled RW_LABEL. Implied by READONLY
# Place to put a tmpfs for temporary scratch writable space
# Label on local filesystem which can be used for temporary scratch space
# Options to use for temporary mount
# Label for partition with persistent data
# Where to mount to the persistent data
# Options to use for peristent mount

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

2 Answers 2

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

On the system serving out / over nfs:

yum --installroot=<shared nfs root directory> update||install||erase <package>
share|improve this answer
Hi and welcome to the site! We expect answers to be more detailed here. Could you please edit and explain what the suggested solution does, how it works and how the OP is supposed to use it? –  terdon Jan 8 at 17:10

Your Answer


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.