Systemd-fsck output

Hallo,
i have some questions about systemd-fsck output shown in the console during the system boot. it looks like this:
/dev/mapper/vg-root: clean, 82501/1310720 files, 647916/5242880 blocks
systemd-fsck[234]: /dev/sda2: clean, 337/64000 files, 88881/256000 blocks
systemd-fsck[233]: /dev/mapper/vg-home: clean, 30217/5283840 files, 961660/21116928 blocks
systemd-fsck[232]: /dev/mapper/vg-var: clean, 19485/851968 files, 846527/3407872 blocks
systemd-fsck[238]: fsck.fat 3.0.20 (12 Jun 2013)
systemd-fsck[238]: /dev/sda1: 251 files, 3820/403266 clusters
is it actually running any test?
assuming the above shown output means something like "ok" or "there is no problem", i then want to hide it, so i created a file /etc/systemd/system/[email protected]/custom.conf with the content:
# dont show systemd-fsck results in the console, if everything is ok
[Service]
StandardOutput=journal
StandardError=journal+console
this seems to work pretty nice, but there is one line remaining in the console, the very first one about the root partition. it seems somewhat different to the other lines, in that it misses the prefix systemd-fsck and it can't be found by journalctl
how could i hide this first line?
Is it right, that in case systemd-fsck detects any file system error it still would output these on the console because of the setting StandardError=journal+console?

When you remove the fsck hook from the initramfs, you aren't hiding the output. Rather the test is not being run. Personally, I think that not running an important check on the integrity of your file systems simply to hide a few lines of output on the console reflects rather weird priorities but obviously that's up to you.
For whatever it is worth, I have had cases in which stuff has gone wrong and fsck has identified the need to look at the file system journal. In every single case, the automated routine has examined, repaired and mounted the file system correctly. It has never prevented booting and I have seen almost no file system corruption with the exception of something on a fat 32 system which is obviously not journalled. Given that my system was for a while routinely shutting off in the dirtiest way possible, I think this reflects the robustness of both the file system and the associated maintenance tools like fsck and I would put up with a great deal more than a few lines of text on the console in exchange for this sort of security. My data is the most important thing on the computer and I will use whatever means are reasonably available to me to protect it.
Of course, if nothing like this has (yet) happened to you, you may not (yet) appreciate the system's robustness. But sooner or later, you almost certainly will. (Unless your data is unimportant to you, of course. That would be different.)

Similar Messages

  • Systemd-fsck complains that my hardware raid is in use and fail init

    Hi all,
    I have a hardware raid of two sdd drives. It seems to be properly recongnized everywhere and I can mount it manually and use it without any problem. The issue is that when I add it to the /etc/fstab My system do not start anymore cleanly.
    I get the following error( part of the journalctl messages) :
    Jan 12 17:16:21 biophys02.phys.tut.fi systemd[1]: Found device /dev/md126p1.
    Jan 12 17:16:21 biophys02.phys.tut.fi systemd[1]: Starting File System Check on /dev/md126p1...
    Jan 12 17:16:21 biophys02.phys.tut.fi systemd-fsck[523]: /dev/md126p1 is in use. <--------------------- THIS ERROR
    Jan 12 17:16:21 biophys02.phys.tut.fi systemd-fsck[523]: e2fsck: Cannot continue, aborting.<----------- THIS ERROR
    Jan 12 17:16:21 biophys02.phys.tut.fi systemd-fsck[523]: fsck failed with error code 8.
    Jan 12 17:16:21 biophys02.phys.tut.fi systemd-fsck[523]: Ignoring error.
    Jan 12 17:16:22 biophys02.phys.tut.fi systemd[1]: Started File System Check on /dev/md126p1.
    Jan 12 17:16:22 biophys02.phys.tut.fi systemd[1]: Mounting /home1...
    Jan 12 17:16:22 biophys02.phys.tut.fi mount[530]: mount: /dev/md126p1 is already mounted or /home1 busy
    Jan 12 17:16:22 biophys02.phys.tut.fi systemd[1]: home1.mount mount process exited, code=exited status=32
    Jan 12 17:16:22 biophys02.phys.tut.fi systemd[1]: Failed to mount /home1.
    Jan 12 17:16:22 biophys02.phys.tut.fi systemd[1]: Dependency failed for Local File Systems.
    Does anybody undersand what is going on. Who is mounting the  /dev/md126p1 previous the systemd-fsck. This is my /etc/fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sda1
    UUID=4d9f4374-fe4e-4606-8ee9-53bc410b74b9 / ext4 rw,relatime,data=ordered 0 1
    #home raid 0
    /dev/md126p1 /home1 ext4 rw,relatime,data=ordered 0 1
    The issue is that after the error I'm droped to the emergency mode console and just pressing cantrol+D to continues boots the system and the mount point seems okay. This is the output of 'system show home1.mount':
    Id=home1.mount
    Names=home1.mount
    Requires=systemd-journald.socket [email protected] -.mount
    Wants=local-fs-pre.target
    BindsTo=dev-md126p1.device
    RequiredBy=local-fs.target
    WantedBy=dev-md126p1.device
    Conflicts=umount.target
    Before=umount.target local-fs.target
    After=local-fs-pre.target systemd-journald.socket dev-md126p1.device [email protected] -.mount
    Description=/home1
    LoadState=loaded
    ActiveState=active
    SubState=mounted
    FragmentPath=/run/systemd/generator/home1.mount
    SourcePath=/etc/fstab
    InactiveExitTimestamp=Sat, 2013-01-12 17:18:27 EET
    InactiveExitTimestampMonotonic=130570087
    ActiveEnterTimestamp=Sat, 2013-01-12 17:18:27 EET
    ActiveEnterTimestampMonotonic=130631572
    ActiveExitTimestampMonotonic=0
    InactiveEnterTimestamp=Sat, 2013-01-12 17:16:22 EET
    InactiveEnterTimestampMonotonic=4976341
    CanStart=yes
    CanStop=yes
    CanReload=yes
    CanIsolate=no
    StopWhenUnneeded=no
    RefuseManualStart=no
    RefuseManualStop=no
    AllowIsolate=no
    DefaultDependencies=no
    OnFailureIsolate=no
    IgnoreOnIsolate=yes
    IgnoreOnSnapshot=no
    DefaultControlGroup=name=systemd:/system/home1.mount
    ControlGroup=cpu:/system/home1.mount name=systemd:/system/home1.mount
    NeedDaemonReload=no
    JobTimeoutUSec=0
    ConditionTimestamp=Sat, 2013-01-12 17:18:27 EET
    ConditionTimestampMonotonic=130543582
    ConditionResult=yes
    Where=/home1
    What=/dev/md126p1
    Options=rw,relatime,rw,stripe=64,data=ordered
    Type=ext4
    TimeoutUSec=1min 30s
    ExecMount={ path=/bin/mount ; argv[]=/bin/mount /dev/md126p1 /home1 -t ext4 -o rw,relatime,data=ordered ; ignore_errors=no ; start_time=[Sat, 2013-01-12 17:18:27 EET] ; stop_time=[Sat, 2013-
    ControlPID=0
    DirectoryMode=0755
    Result=success
    UMask=0022
    LimitCPU=18446744073709551615
    LimitFSIZE=18446744073709551615
    LimitDATA=18446744073709551615
    LimitSTACK=18446744073709551615
    LimitCORE=18446744073709551615
    LimitRSS=18446744073709551615
    LimitNOFILE=4096
    LimitAS=18446744073709551615
    LimitNPROC=1031306
    LimitMEMLOCK=65536
    LimitLOCKS=18446744073709551615
    LimitSIGPENDING=1031306
    LimitMSGQUEUE=819200
    LimitNICE=0
    LimitRTPRIO=0
    LimitRTTIME=18446744073709551615
    OOMScoreAdjust=0
    Nice=0
    IOScheduling=0
    CPUSchedulingPolicy=0
    CPUSchedulingPriority=0
    TimerSlackNSec=50000
    CPUSchedulingResetOnFork=no
    NonBlocking=no
    StandardInput=null
    StandardOutput=journal
    StandardError=inherit
    TTYReset=no
    TTYVHangup=no
    TTYVTDisallocate=no
    SyslogPriority=30
    SyslogLevelPrefix=yes
    SecureBits=0
    CapabilityBoundingSet=18446744073709551615
    MountFlags=0
    PrivateTmp=no
    PrivateNetwork=no
    SameProcessGroup=yes
    ControlGroupModify=no
    ControlGroupPersistent=no
    IgnoreSIGPIPE=yes
    NoNewPrivileges=no
    KillMode=control-group
    KillSignal=15
    SendSIGKILL=yes
    Last edited by hseara (2013-01-13 19:31:00)

    Hi Hatter, I'm a little confused about your statement not to use raid right now. I'm new to the Mac, awaiting the imminent delivery of my first Mac Pro Quad core with 1tb RAID10 setup. As far as I know, it's software raid, not the raid card (pricey!). My past understanding about raid10 on any system is that it offers you the best combination for speed and safety (backups) since the drives are a striped and mirrored, one drive dies, quick replacement and you're up and running a ton quicker than if you had gone RAID5 (20 mins writes per 5G data?)Or were you suggesting not to do raid with the raid card..?
    I do plan to use an external drive for archival backups of settings, setups etc, because as we all know, if the best fool proof plans can be kicked in the knees by Murhpy.
    My rig is destined to be my video editing machine so the combo of Quad core, 4G+ memory and Raid10 should make this quite the machine.. but I'm curious why you wouldn't suggest raid..
    And if you could explain this one: I see in the forums a lot of people are running Bootcamp Parralels(sp) which I assume is what you use to run mulitple OS on your Mac systems so that you can run MacOS and Windblows on the same machine.. but why is everyone leaning towards Vista when thems of us on Windblows are trying to avoid it like the plague? I've already dumped Vista from two PCs and installed XP for a quicker less bloated PC. Is vista the only MSOS that will co-exist with Mac systems? Just curious..
    Thanks in advance.. Good Holidays

  • [Solved -sorta] systemd-fsck []: fsck: /sbin/fsck.ext4: execute failed

    Greetings.
    I am getting the following on boot:
    Starting Version 218
    A password is required to access the MyStorage volume:
    Enter passphrase for /dev/sda3
    /dev/mapper/MyStorage-rootvol: clean, 210151/983040 files, 2284613/3932160 block
    [ 78.084720] systemd-fsck [280]: fsck: /sbin/fsck.ext4: execute failed: Exec format error
    [ 78.085215] systemd-fsck [287]: fsck: /sbin/fsck.ext2: execute failed: Exec format error
    I then end up at a login prompt but if I try to login, I get “Login incorrect”. Sometimes Getty will stop and restart on tty1. Then I get returned to the login prompt.
    This came about after upgrading with Pacman (which included “upgraded e2fsprogs (1.42.12-1 -> 1.42.12-2)”) a few days ago. Pacman completed successfully but on reboot the system froze forcing a hard reset.
    I've booted to a USB and run fsck on the boot partition (the only ext2 partition). Ditto on the root and home volumes. All fine. I've also mounted all three and can access the data.
    I would have thought it was something to do with the e2fs upgrade but it obviously scanned the root volume fine and I haven't been able to find any similar reports online.
    I've searched online for ideas and I've also searched for logs which might give me some indication of what the cause is but at this point, I've reached my limits.
    I'd just nuke the data and start again but I really want to understand what happened here.
    Any thoughts on what caused this or suggestions on how to proceed?
    Thank you.
    Stephen
    Last edited by FixedWing (2015-03-16 01:40:20)

    Head_on_a_Stick wrote:
    https://wiki.archlinux.org/index.php/Pa … ond_repair
    However, it may be simplest to just re-install in your case -- it depends whether you want to use the troubleshooting & repairing as a learning process or if you just want your system up & running again ASAP...
    All fixed and working just like nothing happened.
    I did use the advice at the referred link plus a few others on archlinux.org and elsewhere. Yes, an absolutely wonderful learning experience!
    I manually reinstalled e2fsprogs. That got Pacman working again and I was able to boot into the system. Then I used Pacman to reinstall e2fsprogs properly plus the other seven packages which were also installed during the same Pacman session despite their being corrupted.
    What I really don't get is how Pacman could accept a package with 0 bytes and install it? How could such a package possible pass the security check? When I reinstalled the packages, Pacman of course refused to install the corrupt packages in the cache and deleted them. So why didn't that happen initially? I can only think that a corrupt file in that process terminated prematurely and that Pacman wasn't robust enough to detect this so simply continued on, now skipping the scans and installing the corrupt packages. So just to be sure it wasn't a corrupt file in Pacman itself, I also forced a reinstall of that package as well. I've upgraded packages since without issue so I have to assume that whatever the issue was is now gone.
    Anyway, thanx for the help!
    Stephen

  • Directing fsck output to syslog and screen in real-time

    Hello,
    I have the following under Debian 6. The procedure should check and automatically repair the file system and write the result to the user's screen and also to syslog.
    #!/bin/bash
    output=`fsck -y /dev/disk/by-label/oracle-xe; retval=$?`
    logger -is "$output"The procedure seems to work, but I don't see the output until the fsck command has completed. Is there a possibility to write the output to syslog while presenting the fsck output in real-time?
    Kind regards.
    Edited by: Dude on Jan 30, 2012 6:44 PM

    I make some progress:
    outfile=/tmp/`date +%N`
    retfile=/tmp/`date +%N`
    (fsck -y /dev/disk/by-label/oracle-xee; echo $? > $retfile) | tee $outfile
    logger -i < $outfile
    retval=`cat $retfile`
    rm $outfile
    rm $retfileThe above gives me the results I was looking for
    I also tried
    logger -is "`fsck -y /dev/disk/by-label/oracle-xee`"But it the syslog output in this case is just one long line of text without any newlines
    If there is a better way, please let me know.
    Edited by: Dude on Jan 30, 2012 6:57 PM

  • Arch boot stops on systemd-fsck

    Today I upgraded my packages then I replaced catalyst package with catalyst-total after reboot the booting process stops on this line
    Systemd-fsck[362]: /dev/sda5: clean etc
    The sda5 is my home drive the boot stops after this line
    I pressed alt+f2 to switch in CLI mode then I removed catalyst-total and installed catalyst but the booting process still stops Even when I run startx in CLI mode it gives
    Unable to connect x server
    The xorg log file error is
    DRM report mode setting isn't supported
    Unload module radeon
    Devices detected but none match those in config file

    Not using catalyst myself, so I'm not sure about this. But to me it looks like a conflict w/ either the radeon module or KMS. The wiki has information about this: https://wiki.archlinux.org/index.php/AM … le_at_boot
    See "disable KMS" and "blacklist radeon", have you done these? Edit: Maybe recheck...
    Regards
    Edit2: Also maybe check whether something else is failing, either remove "quiet" from kernel parameters or check via systemctl (see systemd wiki for more information).
    Last edited by rebootl (2014-05-19 22:41:15)

  • Boot is taking forever (systemd-fsck?)

    Im sorry for the bad topic.
    When I boot Arch it stops and shows me this message for about 5 minutes or so (It feels like forever):
    /dev/sda1: clean, 113567/640848 files, 662474/2561272 blocks
    [ 1.582745] kvm: disabled by bios
    systemd-fsck[242]: /dev/sda2: clean, 90976/640848 files, 505908/2558464 blocks
    I dual boot with Windows and I reboot my computer on a daily basis (Im a gamer) so its driving me crazy.
    I have googled it and read a bunch of topics for the past three days now.. Whats wrong?

    Hund wrote:
    Bah.. Whats up with the systemd thingy anyway? Whats the benefits with it? So far Ive just seen a bunch of bugs. Arch used to work flawless for me, but ever since the switch to systemd it all went south. Boot hangs, shutdown hangs, no network at boot and autmounting my Samba share doesnt work.. Yay!
    Edit: Atleast I solved the network at boot a few days ago. But I have no idea how I did it tbh.. Arch used to be so simple! But now with this systemd piece of shit? Its a mess.
    The experience of most people is that sysytemd has introduced benefits; most of the issues that you are describing are probably fixable by some simple configuration changes.
    In any event, we have grown rather tired of the petulant "systemd is a piece of shit"-type rants that a minority feel compelled to vent; please don't bother. If you don't like it, install something else.
    FWIW: anyone who starts a sentence about a rolling release with a fond nostalgia for the past is clearly deluding themselves; change is at the core of Arch, deal with it.

  • Systemd-fsck Message, but alt-ctrl F2 login works

    When I start archlnux I receive the message
    systemd-fsck fsck.btrfs not found
    error 2 while executing fsck.btrfs for /dev/sda7
    The screen remains at this message
    However using alt-ctrl F2 I can login without any problems.

    Ah, so you use btrfs as file system for /dev/sda7 ? Well I never tried that before, seems to be rather new. Did you read the Btrfs page in the ArchWiki? My guess would be,that the fsck tool for this file system is containend in btrfs-progs .

  • [SOLVED] systemd-fsck does checks on every boot

    How do I say it to check only after crashes (bad unmounts and so on..) and just mount without checks otherwise?
    I use the classic /etc/fstab layout:
    /dev/drive/root / ext4 rw,relatime 0 1
    /dev/drive/boot /boot ext4 rw,relatime,noexec 0 2
    /dev/drive/swap none swap defaults 0 0
    /dev/drive/var /var ext4 rw,relatime,nodev,noexec,nosuid 0 2
    /dev/drive/home /home ext4 rw,relatime 0 2
    Here is some info from systemd's journal:
    дек. 08 22:43:20 localhost systemd[1]: Found device /dev/drive/var.
    дек. 08 22:43:21 localhost systemd-fsck[124]: /dev/mapper/drive-root: clean, 56204/2621440 files, 523339/10485760 blocks
    дек. 08 22:43:21 localhost systemd[1]: Started File System Check on Root Device.
    дек. 08 22:43:21 localhost systemd[1]: Starting File System Check on /dev/drive/var...
    дек. 08 22:43:21 localhost systemd[1]: Starting Remount Root and Kernel File Systems...
    дек. 08 22:43:21 localhost systemd[1]: Found device /dev/drive/swap.
    дек. 08 22:43:21 localhost systemd[1]: Activating swap /dev/drive/swap...
    дек. 08 22:43:21 localhost systemd[1]: Found device /dev/drive/boot.
    дек. 08 22:43:21 localhost systemd[1]: Starting File System Check on /dev/drive/boot...
    дек. 08 22:43:21 localhost systemd[1]: Found device /dev/drive/home.
    дек. 08 22:43:21 localhost systemd[1]: Starting File System Check on /dev/drive/home...
    дек. 08 22:43:21 localhost systemd-fsck[252]: /dev/mapper/drive-var: clean, 2007/262144 files, 463082/1048576 blocks
    дек. 08 22:43:22 localhost systemd[1]: Started Remount Root and Kernel File Systems.
    дек. 08 22:43:22 localhost systemd[1]: Starting Local File Systems (Pre).
    дек. 08 22:43:22 localhost systemd[1]: Reached target Local File Systems (Pre).
    дек. 08 22:43:22 localhost systemd[1]: Mounting /var...
    дек. 08 22:43:22 localhost systemd-fsck[257]: /dev/mapper/drive-boot: clean, 313/65536 files, 33914/262144 blocks
    дек. 08 22:43:22 localhost systemd[1]: Mounted /var.
    дек. 08 22:43:22 localhost systemd-fsck[262]: /dev/mapper/drive-home: clean, 5080/16375808 files, 2332630/65492992 blocks
    дек. 08 22:43:22 localhost systemd[1]: Started File System Check on /dev/drive/boot.
    дек. 08 22:43:22 localhost systemd[1]: Mounting /boot...
    дек. 08 22:43:22 localhost systemd[1]: Started File System Check on /dev/drive/home.
    дек. 08 22:43:22 localhost systemd[1]: Mounting /home...
    дек. 08 22:43:22 localhost systemd[1]: Mounted /boot.
    дек. 08 22:43:23 localhost systemd[1]: Mounted /home.
    дек. 08 22:43:23 localhost systemd[1]: Starting Local File Systems.
    дек. 08 22:43:23 localhost systemd[1]: Reached target Local File Systems.
    These filesystem checks seem to add huge delay to boot time. But I don't want this delay!
    Last edited by eruditorum (2012-12-10 19:26:54)

    falconindy wrote:These are the same checks that have always occurred.
    But I want to remove them!
    falconindy wrote:Notice that /home is mounted within the same second timestamp that it's fsck'd. Same goes for /boot, and /var is probably under a second as well. If you're seeing delays, go look elsewhere.
    I think filesystem checks add delays (about one second for each logical volume or so), also as you know systemd is doing everything in parallel it can at the given moment of time, for example I can say you that water has already boiled, while it is still going to boil but you don't know it:
    дек. 08 22:43:19 localhost systemd[1]: Starting File System Check on Root Device...
    дек. 08 22:43:21 localhost systemd-fsck[124]: /dev/mapper/drive-root: clean, 56204/2621440 files, 523339/10485760 blocks
    дек. 08 22:43:21 localhost systemd[1]: Started File System Check on Root Device.
    дек. 08 22:43:21 localhost systemd[1]: Starting Remount Root and Kernel File Systems...
    /var:
    дек. 08 22:43:20 localhost systemd[1]: Found device /dev/drive/var.
    дек. 08 22:43:21 localhost systemd[1]: Starting File System Check on /dev/drive/var...
    дек. 08 22:43:21 localhost systemd-fsck[252]: /dev/mapper/drive-var: clean, 2007/262144 files, 463082/1048576 blocks
    дек. 08 22:43:21 localhost systemd[1]: Started File System Check on /dev/drive/var.
    дек. 08 22:43:22 localhost systemd[1]: Mounting /var...
    дек. 08 22:43:22 localhost systemd[1]: Mounted /var.
    /boot:
    дек. 08 22:43:21 localhost systemd[1]: Found device /dev/drive/boot.
    дек. 08 22:43:21 localhost systemd[1]: Starting File System Check on /dev/drive/boot...
    дек. 08 22:43:22 localhost systemd-fsck[257]: /dev/mapper/drive-boot: clean, 313/65536 files, 33914/262144 blocks
    дек. 08 22:43:22 localhost systemd[1]: Started File System Check on /dev/drive/boot.
    дек. 08 22:43:22 localhost systemd[1]: Mounting /boot...
    дек. 08 22:43:22 localhost systemd[1]: Mounted /boot.
    /home:
    дек. 08 22:43:21 localhost systemd[1]: Found device /dev/drive/home.
    дек. 08 22:43:21 localhost systemd[1]: Starting File System Check on /dev/drive/home...
    дек. 08 22:43:22 localhost systemd-fsck[262]: /dev/mapper/drive-home: clean, 5080/16375808 files, 2332630/65492992 blocks
    дек. 08 22:43:22 localhost systemd[1]: Started File System Check on /dev/drive/home.
    дек. 08 22:43:22 localhost systemd[1]: Mounting /home...
    дек. 08 22:43:23 localhost systemd[1]: Mounted /home.
    Last edited by eruditorum (2012-12-09 13:20:15)

  • Systemd-fsck boot message

    systemd-fsck show message when boot evertime. What does meaning? And how to hidding them.
    systemd-fsck[145]: /dev/sda4: clean, 112977/9296096 files, 185427/21217024 blocks
    systemd-fsck[151]: /dev/sda1: clean, 345/26104 files, 34083/104388 blocks (check after next mount)
    edit:
    Sorry, I loss something. Full message is:
    /dev/sda3: clean, 131838/991232 files, 1193255/3933482 blocks
    systemd-fsck[145]: /dev/sda4: clean, 2977/296096 files, 85427/1217024 blocks
    systemd-fsck[151]: /dev/sda1: clean, 345/26104 files, 34083/104388 blocks (check after next mount)
    my lsblk:
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 20G 0 disk
    ├─sda1 8:1 0 102M 0 part /boot
    ├─sda2 8:2 0 258.9M 0 part [SWAP]
    ├─sda3 8:3 0 15G 0 part /
    └─sda4 8:4 0 4.7G 0 part /home
    Last edited by eshizhan (2012-10-22 04:52:13)

    fsck stands for "file system check" [1].  systemd will check all of your filesystems every time you boot [2]. 
    systemd-fsck[145]: /dev/sda4: clean, 2977/296096 files, 85427/1217024 blocks
    systemd-fsck[151]: /dev/sda1: clean, 345/26104 files, 34083/104388 blocks (check after next mount)
    These messages mean that there are no problems with your filesystems and they are "clean".  If there ever was a problem with any of your filesystems, these messages are how fsck will let you know so I don't think you want to hide them.
    [1] https://wiki.archlinux.org/index.php/Fsck
    [2] https://wiki.archlinux.org/index.php/Systemd#Automount

  • Systemd + fsck -- default timeout is not enough

    systemd-fsck tries for check my ~ 1 TB ext3 partition, but it fails: machine gets turned off because the check seems to reach some systemd timeouts (despite 15 minutes seems reasonable long for it at first):
    -- Reboot --
    Dec 09 19:08:52 hostname systemd-journal[169]: Journal stopped
    Dec 09 19:08:52 hostname systemd[1]: Shutting down.
    Dec 09 19:08:52 hostname systemd[1]: Forcibly powering off as result of failure.
    Dec 09 19:08:52 hostname systemd[1]: Dependency failed for Network Manager.
    Dec 09 19:08:52 hostname systemd[1]: Dependency failed for A lightweight DHCP and caching DNS server.
    Dec 09 19:08:52 hostname systemd[1]: Dependency failed for Login Service.
    Dec 09 19:08:52 hostname systemd[1]: Dependency failed for Graphical Interface.
    Dec 09 19:08:52 hostname systemd[1]: Dependency failed for Multi-User System.
    Dec 09 19:08:52 hostname systemd[1]: Dependency failed for GNOME Display Manager.
    Dec 09 19:08:52 hostname systemd[1]: Dependency failed for D-Bus System Message Bus.
    Dec 09 19:08:52 hostname systemd[1]: Dependency failed for Permit User Sessions.
    Dec 09 19:08:52 hostname systemd[1]: Timed out starting Basic System.
    Dec 09 19:08:52 hostname systemd[1]: Job basic.target/start timed out.
    Dec 09 18:53:53 hostname systemd-fsck[300]: /dev/sdb5 has been mounted 24 times without being checked, check forced.
    I failed to google it or find in man pages how to change timeout for basic.target/start -- increasing it looks valid in this particular case. Does anyone know how to do that or has another idea how to get fs checked on boot?

    being hit by the same issue, does this help?
    [root@olivia ~]# systemctl show basic.target | grep Path
    FragmentPath=/usr/lib/systemd/system/basic.target
    [root@olivia ~]# vi /usr/lib/systemd/system/basic.target
    # change 15min to 35min, save and exit
    [root@olivia ~]# systemctl daemon-reload

  • [SOLVED] How to cancel systemd-fsck during reboot after power failure.

    Hello
    If power fails (or if I, for any reason, force a physical shutdown ) on my computer, it will display during boot :
    systemd-fsck[171] : arch_data was not cleanly unmounted, check forced
    And then hangs for a long time (10 minutes ) while checking arch_home partition, wich is a 1T ext4 partition.
    then finish the boot.
    Sometimes i want this behavior, but i may need to have my computer up and running as fast as possible, and i don't seem to be able to cancel this fsck.
    Ctrl+C, or escape have no effect.
    How to allow cancelation of system-fsck for this boot, postponing it for the next boot ?
    my fstab :
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # UUID=cfdf8739-d512-4d99-9893-437a6a3c9bf4 LABEL=Arch root
    /dev/sda12 / ext4 rw,relatime,data=ordered 0 2
    # UUID=98b01aa3-0f7f-4777-a941-8e676a68adce LABEL=Arch boot
    /dev/sda11 /boot ext2 rw,relatime 0 2
    # UUID=8909c168-5f1e-4ae7-974c-3c681237af7a LABEL=Arch var
    /dev/sda13 /var ext4 rw,relatime,data=ordered 0 2
    # UUID=a13efc24-cf66-44d0-b26c-5bb5260627a0 LABEL=Arch tmp
    /dev/sda14 /tmp ext4 rw,relatime,data=ordered 0 2
    # UUID=779aeb69-9360-4df0-af84-da385b7117d1 LABEL=Arch home
    /dev/sdb4 /home ext4 rw,relatime,data=ordered 0 2
    /dev/sdb5 /home/glow/data ext4 rw,relatime,data=ordered 0 2
    Last edited by GloW_on_dub (2013-12-07 16:00:06)

    Maybe you can add a menu item to the grub boot menu so you can pick it from the menu instead of editing the grub line by hand?
    I'm using syslinux, but I can have menu items that only differ in e.g. 'quiet' parameter:
    APPEND root=/dev/sda3 rw init=/usr/lib/systemd/systemd quiet
    APPEND root=/dev/sda3 rw init=/usr/lib/systemd/systemd
    Everything else is the same.

  • Systemd-fsck taking forever. (SOLVED)

    Hello,
    Ive been an arch user for a couple of years now, no clue as to why I only registered on the board now
    On an old machine ive setup an arch installation with 3 disks.
    One of them is used for / and the /home
    At the fsck part of the boot it waits for a long time.
    Im not being picky here, its really long , sometimes more than 5-10 minutes.
    The weird part is that it did exactly the same with another installation.
    Can anyone shed some light on the case?
    Is my hardware (read HDD) dead?
    *edit*
    I should probably mention that it actually gets past .. eventually.
    Last edited by proxx (2013-05-05 16:20:01)

    are you sure that it is actually fsck taking so long and not something else in the background?
    post your fstab and the following:
    systemd-analyze blame

  • [SOLVED] systemd-fsck prolongs boot time considerably

    Hi folks, I've searched but come up blank on this one...
    I've just migrated fully to systemd and all's working well apart from my boot hanging for around 16 seconds on fsck. Disabling the checks via the final column of fstab reduces my boot to under 9 seconds, which is roughly what it was with initscripts. Boot drive's an SSD, all other partitions on 2 SATA HDDs.
    Here are the relevant parts of fstab
    # /dev/sda3 - Backup
    # ========= ------
    UUID=7e23c7f4-acf6-477c-9705-15ae8870181e /media/Backup ext4 defaults 0 2
    # /dev/sdb2 - ROOT (+/home)
    # ========= ------------
    UUID=ee99e089-a642-41c8-b1f4-5dc80307d438 / ext4 defaults,noatime,discard 0 1
    # /dev/sdc1 - Data
    # ========= ----
    UUID=66c7a8dd-8d92-4353-a4eb-1da425449322 /media/Data ext4 defaults 0 2
    # /dev/sdc2 - Scratch
    # ========= -------
    UUID=a8ca4753-ccca-4360-b702-8c12004bf8f8 /media/Scratch ext4 defaults,noatime 0 2
    # /dev/sdc4 - bootISOs
    # ========= --------
    UUID=eea21a23-b3fa-479d-8a62-2502f4f9edfc /media/bootISOs ext4 defaults,noatime 0 2
    I do have /var on the "Data" partition and a few other relocations...
    /media/Data/var /var none bind 0 0
    /media/Data/logs /home/paul/.logs none bind 0 0
    tmpfs /home/paul/.thumbnails tmpfs nodev,nosuid,noatime 0 0
    tmpfs /home/paul/.Skype/Logs tmpfs nodev,nosuid,noatime 0 0
    tmpfs /media/Data/wine/drive_c/windows/temp tmpfs nodev,nosuid,noatime 0 0
    Without fsck
    $ systemd-analyze
    Startup finished in 1280ms (kernel) + 2220ms (initramfs) + 5112ms (userspace) = 8614ms
    With fsck (typical)
    $ systemd-analyze
    Startup finished in 1276ms (kernel) + 3224ms (initramfs) + 20327ms (userspace) = 24829ms
    Any ideas as to the slowdown or is this to be expected with this many partitions?
    Thanks.
    Last edited by fabertawe (2012-09-06 17:48:57)

    WorMzy wrote:You can add "noauto,x-systemd.automount" to the options of non-essential partitions. That may speed up your boot time.
    Sorry, I should have mentioned I already tried this with the "Data" partition and just got a permanent hang in the boot sequence.
    Edit: I've had 2 boots where it's not had the delay but I've no idea why, nothing was changed.
    Edit2: Seems I was too quick to dismiss "noauto,x-systemd.automount"... I've applied it to all partitions except "Data" (and root, obviously) and now I'm consistently getting boot times under 9 seconds. Marking this thread as solved. Thanks to all who contributed
    Last edited by fabertawe (2012-09-06 17:45:48)

  • Simple question about systemd console output - can i get a timestamp?

    hello. with the old syslog program, sending the log to a console used to yield essentially the same output as /var/log/everything.log, critically including timestamps before each entry. Now with systemd, enabling console output just gives each entry by itself, so you can't tell if you're looking at 5 seconds worth of activity or 5 days. any way a timestamp can be added here? i'd find that useful on my servers, as I have a screen connected to them but no keyboard.
    thanks

    Console output of what? Please post the exact command you're using and the output.
    # journalctl -b
    -- Logs begin at Sun 2013-08-11 17:23:43 CEST, end at Wed 2013-09-11 05:36:39 CEST. --
    Sep 10 19:11:44 localhost systemd-journal[36]: Runtime journal is using 184.0K (max 49.8M, leaving 74.8M of free 498.4M, current limit 49.8M).
    Sep 10 19:11:44 localhost systemd-journal[36]: Runtime journal is using 188.0K (max 49.8M, leaving 74.8M of free 498.4M, current limit 49.8M).
    Sep 10 19:11:44 localhost kernel: Initializing cgroup subsys cpuset
    Sep 10 19:11:44 localhost kernel: Initializing cgroup subsys cpu
    Sep 10 19:11:44 localhost kernel: Initializing cgroup subsys cpuacct
    Sep 10 19:11:44 localhost kernel: Linux version 3.11.0-1-ARCH (tobias@testing-i686) (gcc version 4.8.1 20130725 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Sep 3 0
    Sep 10 19:11:44 localhost kernel: e820: BIOS-provided physical RAM map:
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x0000000000100000-0x000000003f6effff] usable
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x000000003f6f0000-0x000000003f6fafff] ACPI data
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x000000003f6fb000-0x000000003f6fffff] ACPI NVS
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x000000003f700000-0x000000003f77ffff] usable
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x000000003f780000-0x000000003fffffff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec0ffff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x00000000ff800000-0x00000000ffbfffff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x00000000fffffc00-0x00000000ffffffff] reserved
    <cut>
    Sep 10 19:11:56 black kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Sep 10 19:11:56 black systemd-logind[164]: Watching system buttons on /dev/input/event2 (Power Button)
    Sep 10 19:11:56 black systemd-logind[164]: Watching system buttons on /dev/input/event1 (Power Button)
    Sep 10 19:12:00 black login[167]: pam_unix(login:session): session opened for user karol by LOGIN(uid=0)
    Sep 10 19:12:00 black systemd[1]: Starting user-1000.slice.
    Sep 10 19:12:00 black systemd[1]: Created slice user-1000.slice.
    Sep 10 19:12:00 black systemd[1]: Starting User Manager for 1000...
    Sep 10 19:12:00 black systemd-logind[164]: New session 1 of user karol.
    Sep 10 19:12:00 black systemd[1]: Starting Session 1 of user karol.
    Sep 10 19:12:00 black systemd[191]: pam_unix(systemd-shared:session): session opened for user karol by (uid=0)
    Sep 10 19:12:00 black systemd[1]: Started Session 1 of user karol.
    Sep 10 19:12:00 black login[167]: LOGIN ON tty1 BY karol
    Sep 10 19:12:00 black systemd[191]: Failed to open private bus connection: Failed to connect to socket /run/user/1000/dbus/user_bus_socket: No such file or dir
    Sep 10 19:12:00 black systemd[191]: Mounted /sys/kernel/config.
    Sep 10 19:12:01 black systemd[191]: Stopped target Sound Card.
    Sep 10 19:12:01 black systemd[191]: Starting Default.
    Sep 10 19:12:01 black systemd[191]: Reached target Default.
    Sep 10 19:12:01 black systemd[191]: Startup finished in 619ms.
    Sep 10 19:12:01 black systemd[1]: Started User Manager for 1000.
    Sep 10 19:12:00 black dhcpcd[168]: eth0: leased 192.168.1.4 for 259200 seconds
    Sep 10 19:12:00 black dhcpcd[168]: eth0: adding host route to 192.168.1.4 via 127.0.0.1
    Sep 10 19:12:00 black dhcpcd[168]: eth0: adding route to 192.168.1.0/24
    Sep 10 19:12:00 black dhcpcd[168]: eth0: adding default route via 192.168.1.1
    <cut>
    (No idea why there's 'Sep 10 19:12:01' followed by 'Sep 10 19:12:00')

  • Fsck output - is this fixable

    So, my wife's iMac G3 is having issues, and I have not found a way to fix it. fsck is producing the following:
    Invalid extent entry
    (4, 2965)
    Incorrect size for file InfoPlist.strings
    (It should be 4096 instead of 4294967760)
    Invalid node structure
    (4, 10019)
    Thanks for the help,
    Eitan

    Hi Eitan,
    Not certain about that nessage, but if the HDD is really messed up that way, , your best bet is DiskWarrior, you need the CD though.
    http://www.alsoft.com/DiskWarrior/

Maybe you are looking for

  • Problems with itunes 10.5

    a few weeks back i plugged my ipod touch 4th gen into my laptop and this came up: Problem signature: Problem Event Name: APPCRASH Application Name: AppleMobileDeviceService.exe Application Version: 17.88.0.7 Application Timestamp: 4e66ceff Fault Modu

  • Abap 703 trial - can't configure web dynpro to work - reverting back to 702

    Hi there whatever I do I can't get Web dynpro to work in ABAP 703 trial -- WDY compiles etc - but always get IE explorer cannot find page when I try and run the WDY, -- I've activated all the SICF services and done the profile changes (RZ10) but stil

  • Handling idoc acknowledgements inside BPM

    Hi,   I have a scenario like this File - >XI BPM -> SAP (idoc) after posting idoc into sap ALEAUD idoc will be triggered for sending acknowledgements back to XI ALEAUD SAP->XI BPM -> email              I have activated application acknowledgement in

  • Deleting music from my phone that is not in iTunes library

    How do I delete songs off of my iPhone that is not in my iTunes library/ICloud and all that mumbo jumbo? This is infuriating! I deselected anything that has to do with music in my iTunes while my phone is connected to just simply wipe out all my musi

  • Getting error message when using 'wlappc' task

    When using the 'wlappc' custom ANT task I am getting following error message D:\Working\Build\LocalBuild.xml:122: java.util.MissingResourceException: Can't f ind bundle for base name weblogic.i18n.J2EELogLocalizer, locale en_US Any help what I need t