Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In a Linux system consisting of a bootloader, the kernel and an initramfs (no block devices, no other root filesystem):

Is it possible to make the initramfs read-only once expanded into memory?

share|improve this question
    
Probably, but why? I suspect the kernel itself doesn't care one way or the other. But you almost certainly need to start some software after loading the kernel, and the software you start may need write access. –  Zoredache Jan 7 '13 at 23:13

1 Answer 1

You could try giving the remount option a whirl.

mount -o remount,ro /

Do pay heed to Zoredache's comment. Just because you can doesn't mean it won't go terribly, horribly wrong.

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.