Disable write Access to /boot

From wiki.linuxonlinehelp.de
Jump to: navigation, search

Editing Disable write Access to /boot

Problem:

If you setup a multiuser Linux a unwanted or broken update or a unwanted power loss
can destroy your boot image named "initrd.img"

Solution:

edit as root /etc/fstab and mount /boot readonly !:

#sudo nano /etc/fstab

change line with /boot add "ro":

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
...
...
UUID=XXX...XXX       /boot           ext3    defaults,ro        0       2

<pre>
this will protect your boot partition, after power failure, the PC boots normal up, if Boot on Power is set on at the PC Bios!