Disable write Access to /boot

From wiki.linuxonlinehelp.eu
Revision as of 18:32, 4 June 2012 by Author (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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

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!