I have Centos VM on VMware Workstation. I commented the /boot entry in the /etc/fstab for testing purposes. But I found that the system gets boot UP with unmounted /boot file system. How the system get the boot partition info in booting process, if it was not there? Why does not it take to emergency mode?
1 Answer
The /boot
partition, while not strictly need for system startup, is an important one and should be mounted. Let me do two simple examples of when it is needed:
Kernel recompile: you will find that your boot partition hosts some files called
config-*
. These files describe the kernel configuration, and are re-read when issuingmake menuconfig
(and similar) when recompiling your kernel. While it is true that this is not the only method to store kernel configuration, it surely is one of the most used/common.Upgrades: when you upgrade your distro, the packet manager will eventually download a new kernel and install it under
/boot
. If/boot
is not mounted, these boot files will be placed in the wrong filesystem and Grub will not recognize them.
In the end, while you surely can have a running system without /boot
, this is not a good idea. At least, you should always mount it when needed - if you know that.
/boot
entry in/etc/fstab
is only there so the booted system can put files in there to update the OS. The bootloader itself doesn't need this entry, at all.