Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #231381
| Path | csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
| Newsgroups | linux.debian.user |
| Subject | Re: "Run fsck manually"..? |
| Date | Wed, 03 Feb 2021 22:00:02 +0100 |
| Message-ID | <BExpM-59a-7@gated-at.bofh.it> (permalink) |
| References | <BEe3M-1Zq-7@gated-at.bofh.it> <BEfsR-2Ix-7@gated-at.bofh.it> <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> |
| X-Original-To | <debian-user@lists.debian.org> |
| X-Mailbox-Line | From debian-user-request@lists.debian.org Wed Feb 3 20:57:22 2021 |
| Old-Return-Path | <wooledg@eeg.ccf.org> |
| X-Amavis-Spam-Status | No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -5.5 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccf.org; s=mimecast; t=1612385822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xYMO1Ak1SJSDegWJpykKphGM5npADRg0mU07EzA8m2o=; b=c5aiQXxOiAnioWTtU+7RJCvSaUjlYnlCw5YFhYwHObhUx7mVNyVScfnHl4eGn9ukJUj3Jj 3i7Y2WrQqxGdOy6t7br1zganXjgGqAsoXIDWve2ha0GPf9gFdaes7aCAzqvfPvSUXe5r0y rpdanhnYDKK6Os8hBQFgUdQOi0WiGRU= |
| X-Mc-Unique | eWryzP0vOe-zBOtzze7LUw-2 |
| Mail-Followup-To | debian-user@lists.debian.org |
| MIME-Version | 1.0 |
| User-Agent | Mutt/1.10.1 (2018-07-13) |
| X-Cfilter-Loop | Reflected |
| Authentication-Results | relay.mimecast.com; auth=pass smtp.auth=CUSA51A83 smtp.mailfrom=wooledg@eeg.ccf.org |
| X-Mimecast-Originator | eeg.ccf.org |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | quoted-printable |
| X-Mailing-List | <debian-user@lists.debian.org> archive/latest/771849 |
| List-ID | <debian-user.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-user/> |
| List-Archive | https://lists.debian.org/msgid-search/20210203205658.GU10572@eeg.ccf.org |
| Approved | robomod@news.nic.it |
| Lines | 55 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Wed, 3 Feb 2021 15:56:58 -0500 |
| X-Original-Message-ID | <20210203205658.GU10572@eeg.ccf.org> |
| X-Original-References | <08ad8f59b0e76afafb91fe6ad7e51373.squirrel@dragon.rumormillnews.com> <20210203014154.GE3712@bitfolk.com> <20210203040130.GA28595@axis.corp> <20210203123225.GR10572@eeg.ccf.org> <20210203160242.GA5608@axis.corp> <20210203162438.GT10572@eeg.ccf.org> <20210203200604.GB5608@axis.corp> |
| Xref | csiph.com linux.debian.user:231381 |
Show key headers only | 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
"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