Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #231381

Re: "Run fsck manually"..?

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: "Run fsck manually"..?
Date 2021-02-03 22:00 +0100
Message-ID <BExpM-59a-7@gated-at.bofh.it> (permalink)
References (2 earlier) <BEhEm-4ho-1@gated-at.bofh.it> <BEpBU-w8-17@gated-at.bofh.it> <BEsT7-2Aw-3@gated-at.bofh.it> <BEtcu-2GJ-17@gated-at.bofh.it> <BEwDn-4Sd-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Feb 03, 2021 at 02:06:04PM -0600, David Wright wrote:
> >From foo/main/init where foo is
> $ unmkinitramfs /boot/initrd.img foo/

Interesting....  I used locate --regex to find where this is coming
from, and it seems there's a copy in /usr/share/initramfs-tools/init
which I'm guessing is what gets installed as init inside the initrd.

/usr/share/initramfs-tools/init is from the initramfs-tools-core
package which appears to come from Debian itself (according to
the copyright file), having been forked from Ubuntu's version.

A google search for "linux fsck.mode=force" led me indirectly to the
systemd-fsck man page.  This one tells me that fsck.mode= is an option
supported by systemd-fsck with the values auto, force or skip.  Debian's
/usr/share/initramfs-tools/init script appears to be using a superset
of these values, including your forcefsck alias.

Putting these clues all together is tricky for me because nothing is
really spelled out clearly.  Near as I can manage to guess, Debian's
initrd init script parses the kernel command line and looks for these
fsck-ish options, applies them during the initrd stage, and then...
then, I don't know what happens.

There is still no clear end-user-comprehensible documentation that says
how to make fsck happen on the next boot.

> > What is the "normal mechanism"?  Where is it documented?
> 
> https://www.gnu.org/software/grub/manual/grub/grub.html

(I told you guys how my email is being mangled....)

> I'm guessing the comment is a signature. §15.2 outlines the grubenv
> method. As Stefan mentioned, grubenv is designed to remain static,
> and grub-editenv carefully alters its contents. Configuring Grub
> uses /etc/grub.d/00_header and the variables in /etc/default/grub to
> write the code at the top of /boot/grub/grub.cfg for juggling the
> boot selection.
> 
> You start all this off by editing /etc/default/grub: GRUB_DEFAULT=0 →
> GRUB_DEFAULT=saved    and running   grub-set-default 0. Then:
> 
> $ head -c 72 /boot/grub/grubenv ; echo
> # GRUB Environment Block
> saved_entry=0
> #################################
> $ 
> 
> # grub-reboot 'fsck>fsck'

At this point I give up.  I don't know where this "fsck>fsck" argument
comes from or how you use it.  It's definitely not in the grub-reboot
man page.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

"Run fsck manually"..? "hobie of RMN" <hobie@rumormillnews.com> - 2021-02-03 01:20 +0100
  Re: "Run fsck manually"..? Jessica Litwin <jessica@litw.in> - 2021-02-03 01:20 +0100
    Re: "Run fsck manually"..? Stefan Monnier <monnier@iro.umontreal.ca> - 2021-02-03 01:30 +0100
      Re: "Run fsck manually"..? Jeremy Andrews <thejeremy.net@gmail.com> - 2021-02-03 02:20 +0100
        Re: "Run fsck manually"..? "hobie of RMN" <hobie@rumormillnews.com> - 2021-02-03 02:50 +0100
  Re: "Run fsck manually"..? Andy Smith <andy@strugglers.net> - 2021-02-03 02:50 +0100
    Re: "Run fsck manually"..? Andy Smith <andy@strugglers.net> - 2021-02-03 03:40 +0100
      [SOLVED} Re: "Run fsck manually"..? "hobie of RMN" <hobie@rumormillnews.com> - 2021-02-03 05:50 +0100
    Re: "Run fsck manually"..? David Wright <deblis@lionunicorn.co.uk> - 2021-02-03 05:10 +0100
      Re: "Run fsck manually"..? Darac Marjal <mailinglist@darac.org.uk> - 2021-02-03 09:40 +0100
      Re: "Run fsck manually"..? Greg Wooledge <wooledg@eeg.ccf.org> - 2021-02-03 13:40 +0100
        Re: "Run fsck manually"..? David Wright <deblis@lionunicorn.co.uk> - 2021-02-03 17:10 +0100
          Re: "Run fsck manually"..? Greg Wooledge <wooledg@eeg.ccf.org> - 2021-02-03 17:30 +0100
            Re: "Run fsck manually"..? Stefan Monnier <monnier@iro.umontreal.ca> - 2021-02-03 17:40 +0100
            Re: "Run fsck manually"..? David Wright <deblis@lionunicorn.co.uk> - 2021-02-03 21:10 +0100
              Re: "Run fsck manually"..? Greg Wooledge <wooledg@eeg.ccf.org> - 2021-02-03 22:00 +0100
                Re: "Run fsck manually"..? David Wright <deblis@lionunicorn.co.uk> - 2021-02-04 02:10 +0100

csiph-web