Boot partition
Kevin Fries
kevin at fries-biro.com
Wed Sep 3 18:49:33 MST 2014
James description is actually very good, and I will take it a step
further. The secondary boot loader will load your kernel into ram, and
attach a working file system to it. As part of its bootstrap, it will load
the root file system given on the kernel configuration line and mount it as
a subdirectory of the working file system. It will at this time also
create your /sys and /proc, etc. Once it is ready, it will do a pivotroot
command that will swap the temp root and the mounted root and call init.
So, boot does not even need to be on a mountable file system, and in many
non-intel bases systems it's not... it's in NOR memory, not the hard
drive. Most modern systems have you mount boot, and you know why... only
one reason... so you can apt-get or yum kernel upgrades. Otherwise, boot
does NOT need to be mounted, because it is not used after the pivotroot.
Kevin
On Sep 3, 2014 4:34 PM, "James Mcphee" <jmcphe at gmail.com> wrote:
> BIOS points to first block of the disk. First block of the disk (MBR)
> points at secondary boot loader (grub or LILO or syslinux... whatever).
> That will point at the device that you mount as boot as its initial root.
> What you see as root in your running system is loaded after that and you
> then mount in /boot what was initially the root during the bootstrap
> process.
>
> Oh, your numbers on the end. Use 1 2 for boot. The fs passno (the last
> number) for root should be 1, and for normal filesystems should be 2. 0
> (or blank) means don't check as part of the fstab stuffs.
>
> sorry for the ramblingness
>
>
> On Tue, Sep 2, 2014 at 8:05 PM, Michael Havens <bmike1 at gmail.com> wrote:
>
>> I am assuming that everything is cool with LFS up to this point and am
>> thinking that I am going to create a boot partition. I do have 1 or 2
>> questions about this though before we proceed. First:
>>
>> does every Linux distro search for the boot partition first?
>>
>> then
>>
>> when modifying fstab what do I put into it for the options? Here is the
>> current lfs fstab
>>
>> /dev/sda6 / ext4 defaults 1 1
>> /dev/sda7 swap swap pri=1 0 0
>> proc /proc proc nosuid,noexec,nodev 0 0
>> sysfs /sys sysfs nosuid,noexec,nodev 0 0
>> devpts /dev/pts devpts gid=5,mode=620 0 0
>> tmpfs /run tmpfs defaults 0 0
>> devtmpfs /dev devtmpfs mode=0755,nosuid 0 0
>>
>> my only guess would be:
>>
>> <boot partition> /boot ext4 defaults 1 1
>>
>> :-)~MIKE~(-:
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
>
>
>
> --
> James McPhee
> jmcphe at gmail.com
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20140903/ae165bb6/attachment.html>
More information about the PLUG-discuss
mailing list