Difference between revisions of "Disable write Access to /boot"

From wiki.linuxonlinehelp.eu
Jump to navigation Jump to search
 
(No difference)

Latest revision as of 18:32, 4 June 2012

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!