Re: /boot partition changes when it should not



On Tue, 9 Mar 2010 18:50:59 -0500 (EST), Clive McBarton wrote:
Stephen Powell wrote:
But the
boot loader doesn't know that Linux is going to mount the filesystem
read-only.

That's a highly interesting point. It doesn't? I thought everything in
the boot process mounts everything it finds read-only until when the
kernel is running. Even the kernel at some point during boot says it now
remounts the / filesystem read-write, hence even that must have been
read-only until then.

What I meant by that is that the boot loader does not examine the
/etc/fstab file. In your case, that file is not even in the same
partition as /boot. I don't know if the boot loader alters any fields
in the /boot partition or not. I'm only saying that it might. /boot
is not normally mounted read-only. If it were, one could not apply
security updates to the kernel, for example. The boot loader would not
therefore necessarily assume that it couldn't update the mount count
field, for example. Again, I'm not saying that it does. I only
suggested it as a possibility. And if it does, I don't know if it's
a bug or a feature.

If there's an option in grub, as thib seems to think, that will cause
grub to use the list-of-sectors method rather than actually reading
the filesystem, that would be good to try first. Then if that doesn't
work, you might try lilo. Converting the partition to ext2 to get
rid of the journal or using the noload option are some other things
you can try.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/532047657.17976971268180969023.JavaMail.root@xxxxxxxxxxxxxxxxxxxx



Relevant Pages

  • Re: grub and /boot partition
    ... Why is it said that if you are using grub as the boot loader, ... That's not related to grub, it's because the boot partition is rarely written to, thus does not require a journalled filesystem. ...
    (comp.os.linux.setup)
  • Re: boot loader that can read from partition?
    ... loader storing anything it needs in any filesystem. ... to zero-out and reformat every filesystem and still have the boot loader ... But you obviously can't zero-out and reformat every partition. ... configuration file, and kernel images. ...
    (comp.os.linux.development.system)
  • Re: /boot partition changes when it should not
    ... 'mount' options you're using would have any effect. ... BIOS, grub/lilo/other boot loader, kernel ... RAM disk image via the filesystem. ...
    (Debian-User)
  • Re: boot loader that can read from partition?
    ... |>>Is there a boot loader than can read a kernel in from a raw partition? ... |> Under Grub, you can specify a block list instead of a filename, e.g. ... I don't like the idea of having to put filesystem knowledge in a bootloader. ... instance could be made with knowledge of other partition types like BSD. ...
    (comp.os.linux.development.system)
  • Re: Kernel update broke my system.
    ... While 10 people patiently waited on the phone I had to boot the installer and go through the "change boot loader" part of an os upgrade. ... I suspect that all my raving about the stability of linux over windows is now the source of some humor in my company and the 3 other companies represented on the call.... ... I suspect the problem here is that when you last updated the OS grub wasn't updated properly, meaning that the boot sector part of grub was looking for the stage2 file at one location of the disk but this was now blank space from the filesystem point of view. ...
    (Fedora)