Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
31
rated 0 times [  31] [ 0]  / answers: 1 / hits: 48936  / 1 Year ago, wed, may 17, 2023, 4:35:06

As separate /home partition helps in easy reinstallation/upgrade. Does having /boot help while dualbooting with windows? I mean is it useful for normal desktop/notebook users or it is advanced technique that need to be deployed in servers?


More From » boot

 Answers
3

[The information in this answer about GRUB2 and LVM is largely due to Jan's efforts; originally this answer was severely in error, and Jan deserves credit for the improvements I have made. -Eliah]



When not using LVM, a separate /boot partition is primarily useful for ensuring that the files necessary for booting are close enough to the beginning of the drive, when the / partition is itself not at the beginning of the drive. For example, you might want to put your linux-swap partition very near the beginning of the drive, since on some drives data near the beginning of the drive is potentially accessed more quickly. Then you could have a small /boot partition, followed by your linux-swap partition, followed by the / partition (then followed by other separate partitions if you have them, such as /home).



For quite some time, this has been largely unnecessary, because with newer BIOSes, you can usually boot a system whose boot files are in a partition far from the beginning of the disk. Still, there is very little disadvantage to doing so (unless you make /boot so small that it fills up--it should probably be about 250 MiB), so many people who partition manually still do this.



Older boot loaders like LILO themselves had limitations that made separate /boot partitions helpful, as Jan points out.



When using LVM, if your / partition is on the LVM, it used to be necessary to have a separate /boot partition. In such a configuration, the /boot partition is not be a partition of the LVM, but rather a partition on the disk before the LVM starts. This is because boot loaders could not read files from an LVM. So you could never boot into your system on the LVM if it didn't have a separate /boot partition (see this and this for details).



The ability to read files from an LVM was added with GRUB2, which means that all recent versions of Ubuntu (Ubuntu 9.10 Karmic Koala and later) have it. So with proper configuration you can have your entire Ubuntu system in an LVM without a separate /boot partition. See this page for details about how to configure this. (In fact, the only currently supported Ubuntu release that uses the original GRUB instead of GRUB2 is Ubuntu 8.04 LTS Server; every other non-EoL release--10.04 LTS, 10.10, 11.04, and 11.10--uses GRUB2.)



If you're using LVM but not for your Ubuntu system drive, just for a storage drive, or for some part of your system (perhaps for /home) but not /, then a separate /boot partition is not necessary, even if you are using an old (pre-GRUB2) system.



In summary, a separate /boot partition is largely a matter of personal preference for systems that do not use LVM, whereas an older system installed on an LVM might need one.


[#42251] Thursday, May 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
scusaper

Total Points: 335
Total Questions: 111
Total Answers: 119

Location: Belize
Member since Mon, Jun 20, 2022
2 Years ago
scusaper questions
Fri, Apr 15, 22, 15:26, 2 Years ago
Wed, Mar 15, 23, 03:53, 1 Year ago
Sat, Jun 4, 22, 18:03, 2 Years ago
;