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
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 ramblingnessOn Tue, Sep 2, 2014 at 8:05 PM, Michael Havens <bmike1@gmail.com> wrote:
<boot partition> /boot ext4 defaults 1 1my only guess would be:when modifying fstab what do I put into it for the options? Here is the current lfs fstabthenI 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?
/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
:-)~MIKE~(-:
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss--
James McPhee
jmcphe@gmail.com
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss