GNU bug report logs -
#22588
root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
Previous Next
Reported by: Mark H Weaver <mhw <at> netris.org>
Date: Sun, 7 Feb 2016 21:22:02 UTC
Severity: normal
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 08 Feb 2016 23:49:06 +0100
with message-id <87mvrau8bh.fsf <at> gnu.org>
and subject line Re: bug#22588: root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
has caused the debbugs.gnu.org bug report #22588,
regarding root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
22588: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22588
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
I've been bitten by this once before, and a user on #guix did as well.
When there are problems in the root filesystem that fsck doesn't want to
fix automatically, the user is dumped into a guile prompt where PATH is
not set, and it's very inconvenient to run fsck manually.
This is what I just suggested that the user type, with apologies:
(use-modules (ice-9 ftw) (srfi srfi-26))
(define dirs (scandir "/gnu/store" (cut string-suffix? "e2fsprogs-1.42.13" <>)))
(define e2fsck (string-append "/gnu/store/" (car dirs) "/sbin/e2fsck"))
(system* e2fsck "/dev/XXX")
Is there a better way?
Speaking from personal experience, it's very painful to do anything
non-trivial in that REPL. Even just adding readline would help a lot.
Maybe we should at least set PATH to include the available /bin and
/sbin directories before entering the REPL.
We should probably also handle errors from fsck specially.
Thoughts?
Mark
[Message part 3 (message/rfc822, inline)]
Mark H Weaver <mhw <at> netris.org> skribis:
> Okay, I must admit that's a pretty great little hack, and a nice demo of
> how easy it is to hack something together like this in Guile.
It’s fun to think we have a compiler from a subset of Bourne shell to
the Guile VM. :-)
> Let's do it :)
Done in 6eb4390!
Thanks,
Ludo’.
This bug report was last modified 129 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.