[SOLVED] is the fsck hook needed if the systemd hook is present?

Hiya. The Wiki isn't really clear about this. There are some instructions about building a systemd based init image here, but nothing about fsck.
On the silent boot page there is a entry about fsck , more specifically letting systemd check the filesystem instead of the fsck hook, which involves copying configuration files.
I understand both entries, but after migrating my init image to systemd, I keep getting systemd-fsck messages on boot, and now I have a couple of questions:
Is my disk being fscked twice?
Is the fsck hook needed anymore? What would happen if I remove it?
If I want to turn off the output, can I follow the instructions on the Wiki?
What is the general recommended approach with systemd and fsck?
I skimmed through this thread, but I must say I didn't become any more educated on this topic.
Thanks.
Last edited by DoctorJellyface (2015-04-16 14:59:29)

I just had a quick look on how these things fit together. Short answer: If you want the root filesystem to be checked in the initrd (and therefore before mount) you do need the fsck hook.
Long answer:
systemd-fsck just uses fsck.* to check the disks (see source code line 288ff.). If it does not exist, systemd-fsck just quits. The reason for this is clear: fsck tools are made by filesystem developers, not by systemd developers.
The fsck hook is the only one that installs these binaries (fsck.*) into the initrd (see grep -r 'fsck\.' /usr/lib/initcpio). That means: No fsck hook --> no filesystem check in the initrd.
Now to your questions:
DoctorJellyface wrote:Is my disk being fscked twice?
No. The root filesystem is checked in the initrd if the appropriate fsck.* tool is available. All other filesystems are checked after leaving the initrd.
DoctorJellyface wrote:Is the fsck hook needed anymore? What would happen if I remove it?
It is needed if you want the root filesystem to be checked in the initrd and therefore before being mounted. If you remove it it might be checked after leaving the initrd while being mounted read-only. But I did not test that and don't know if Arch actually does it this way. You may quickly test this yourself.
DoctorJellyface wrote:If I want to turn off the output, can I follow the instructions on the Wiki?
If you use systemd in the initrd you would probably have to edit the files directly in /usr/lib/systemd/system, because mkinitcpio copies the files from there. They will be overwritten on every systemd update so that is not a very nice approach. For all output after leaving the initrd you should be able to follow the steps in the wiki (copy to /etc...)
DoctorJellyface wrote:What is the general recommended approach with systemd and fsck?
My recommendation would be: Keep the fsck hook, because it is the only way to check the filesystem before actually mounting it. It works nicely with the systemd hook.

Similar Messages

  • 10.5.1 solved all the problems

    I had several problems reported:
    -no sleep
    -Radeon X1900 zapped by Mathematica software and crashing the computer
    which have been all solved by the OS 10.5.1 update.
    I can now really start to work with, rather than experiment with, OS 10.5 - which is now in better overall shape for me than the 10.4 (I still keep a disk with that one on it - one never knows...)

    And no-ones mentioned the best outcome of 10.5.3...
    ...a radical decrease in the number of whiny Logic complainers posts about how much Logic ***** and how much DAW XX is so much better and...
    Thank goodness for that!
    Of course, this is the place to post issues, but whines and moans when not constructed properly just drag the place down and make it not a particularly fun place to hang out, especially for the people that come here more to help out than to post their own questions. Personally, I was just about reaching the end of my patience limit (if I saw another "Logic rant" post I was gonna rip out my internet connection
    So three cheers for Apple, eh?
    And nice to see some positive words from Rob - glad it's working out for you. We just need to convert Steve back from Mother Alsihad now...

  • [SOLVED]fsck hook with new mkinitcpio.conf

    Last night when I upgraded mkinitcpio it provided a new mkinitcpio.conf file as a pacnew. When comparing this new file to my previous config file the only difference I found was that the new one included the fsck hook. From what I've read it says that this hook is strongly recommended but only gives a reason for it if you have a separate /usr partition, which I do not. I have separate /boot, /swap, /, and /home partitions. Should I include this hook? Does it hurt? Doesn't matter?
    Last edited by Lexworth (2012-03-15 14:52:47)

    karol wrote:
    You should have checked the wiki https://wiki.archlinux.org/index.php/Mkinitcpio#HOOKS too:
    Adds the fsck binary and filesystem specific helpers. If added after the autodetect hook, only the helper specific to your root filesystem will be added. Usage of this hook is strongly recommended, and it is required with a separate /usr partition.
    I did check the wiki. I mentioned what I had gathered from my reading in my original post, perhaps you should have read it. I then went on to explain that this didn't give much indication for including the fsck hook without a separate /usr partition. So I came here (Newbie Corner) to ask if someone could help me with my understanding, which Gcool was so kind enough to do.

  • Just bought Photoshop Elements 13...I'm trying to make a slideshow but can't figure out how to alter duration time that the slide is on the screen.  They presently move from one to another way too quickly...also need a different pan and zoom option.  Wher

    Just bought Photoshop Elements 13...I'm trying to make a slideshow but can't figure out how to alter duration time that the slide is on the screen.  They presently move from one to another way too quickly...also need a different pan and zoom option.  Where are all the options I had in PS10?  Also...Can I burn this to a DVD?

    The changes have brought improvements but also drawbacks compared with the old slideshow editor.
    The templates are now fairly fixed but I find the “Classic Dark” gives reasonable results with some panning and you can click the audio button and browse you PC for any track. Unfortunately there are only three speed choices linked to the music track. The improvement for most people is that you can now export to your hard drive at 720p or 1080p and upload to sites like YouTube and Vimeo.

  • Is the Hitachi AXM209UKR Slim Micro System with docking for iPod compatible with the iPhone 4 (Xmas present bought for me)? Need to know before I open box ����. Thanks all Merry Christmas!

    Is the Hitachi AXM209UKR Slim Micro System with docking for iPod compatible with the iPhone 4 (Xmas present bought for me)? Need to know before I open box   . Thanks all Merry Christmas!

    Not to worry took back to store and got one that works with ipad2 as well  

  • HT5312 I have tired of these problem I want to solve in the quickest possible time and my English is weak and I more than a week of forgotten secret email based communication alternative answers please solved my problem.

    I have tired of these problem I want to solve in the quickest possible time and my English is weak and I more than a week of forgotten secret email based communication alternative answers please solved my problem.

    Apple ID security issues -
    Call Apple Care and ask for the Account Security Team. They can assist you with your issue.

  • I bought a new iphone 4s and I have a problem with the service. How can it be solved? the SIM card is new and was working perfect withe iPhone 4G

    I bought a new iphone 4s and I have a problem with the service. How can it be solved? the SIM card is new and was working perfect withe iPhone 4G

    Under the answer you want to mark as correct you should see a box that says Correct with a green symbol to the left and a box with Helpful with an orange star to the left. Click on the one you want.
    And thanks for thinking about that, it is appreciated.

  • Was the general problem with the bluetooth headset solved in the new ios 5 or in the new iphone 4s

    was the general problem with the bluetooth headset solved in the new ios 5 or in the new iphone 4s ?
    thank you greatly
    also i would like to know what are the diffrences with the bluetooth 4.0 vs 2.1
    ( the bluetooth headset i was thinking of is jawbone icon series thinker black )

    Hi,
    I had HUGE issues with a BlueAnt Q2 on the 4, and after five exchanges, I had to get rid of the phone becuase the Apple store admited that they had "some bluetooth issues."
    I still have the Q2, and I was wondering the same thing becuase I realy want an iphone.

  • "Please connect to the internet-"problem solved by the latest Muse-update

    Hi staff,
    I'm happy to tell you that the former problem with the error message "Please connect to the internet…" when trying to start Muse is solved now by the latest update. At that time I talked to James Boag, he assumed Muse might not recognize my USB-modem (and I should try a different access point, which I didn't) but this is not an issue any more. When I launched Muse recently, it updated automatically and then started with no problems.
    Thanks for the great work you've done in that matter.
    Regards
    Norbert

    Hi arrakis13,
    I’m afraid I cannot really help you.
    I did not make any changes on my running system except that I’m on 10.8 Mountain Lion (upgraded from 10.6.8., no Lion in between), but this did not change the behavior of Muse at first. Only the update, which started automatically when I launched the app on August, 21, (still the trial version) caused the difference.
    My firewall is on and in the firewall-options Muse has allowance for incoming connections, see the attached screenshot (sorry, in german, but you will understand the meaning). Airport is not active and I did not change my way to connect to the internet (as James Boag from Adobe suggested earlier, see also attached mailing). It just worked.
    Meanwhile I upgraded to the official version (2.0.945) and still it works.
    Hope you find a solution.
    Regards
    Norbert
    Am 03.09.2012 um 04:18 schrieb arrakis13 <[email protected]>:
    Re: "Please connect to the internet…"problem solved by the latest Muse-update
    created by arrakis13 in Adobe Muse Bugs - View the full discussion
    This is still happening for me.  I downloaded the beta yesterday and am on 10.7.  I run software update but Muse is not showing up as having an update.  My firewall is not running.  Any suggestions on how I can get this running would be much appreciated.
    Please let me know.
    Thanks!!
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4668480#4668480
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4668480#4668480. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Muse Bugs by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Who can tell how to solve about the apple ID, because my apple ID was been disabled since two last week. And, i tried change my password through iForgot. Anyone? Thanks.

    Anyone? Thanks ;) tell me
    How to solve about the "apple ID has been disabled"?

    I am having the same issue. I just got my Iphone4 on Friday and no matter what I do to confirm my AppleID, it says its been disabled. Anyone have any ideas?

  • CMTRACE The subsystem needed to support the image is not present.

    the subsystem needed to support the image is not present.
    I have a x64 bit winpe. I am trying to add a cmtrace to a winpe. Getting an error "the subsystem needed to support the image is not present",
    i though it was related to a wrong architecture. So i added both. Still getting the same error.<o:p></o:p>
    How can i make sure one of added exe's is a true x64. And can this error be related to something esle?<o:p></o:p>
    Thank you.<o:p></o:p>

    Run cmtrace.exe on a x64 machine and leave it running...
    Launch Task Manager and find the application with the description: CMTrace_amd64.exe. IT will have a random name like TRA401A.tmp.
    Go to the %temp% folder and grab that TRA401A.tmp file, copy it to wherever and give it a unique name like CMTrace64.exe.
    Now you have the x64 version of CMTrace.exe
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • Tip regarding the "systemd[1]: Failed to start Journal Service" error

    Just a tip regarding the well-known
    systemd[1]: Failed to start Journal Service
    error (which I ran into last weekend) to maybe save one or two among you a couple of hours of your time:
    The error is described here https://bbs.archlinux.org/viewtopic.php?id=151012 as well as in several other threads in other language boards / in other forums etc. It is usually (as in the linked thread) 'solved' by reinstalling the system - good old Windows magic, also useful when dealing with systemd.
    The Problem with this error is that you do not get into your system. Instead, systemd will print you the mentioned "Failed to start Journal Service" error message a couple of million times. There are also no logs that you could retrieve (when booting from a livesystem) and that would give you any helpful hints, since journal is systemd's logging service, old-style system logs are not kept, and the dmesg log doesn't survive the reboot with default settings.
    As pointed out in the above mentioned thread, you will see a few more instructive error messages when adding 'emergency' to the kernel line in the bootloader config.
    Now there may be plenty of reasons why the systemd journal service might not work. The most common and most annoying, however, appears to be this one:
    In this case you will see that the problem actually lies in
    systemd[1]: Cannot open /etc/machine-id: No such file or directory
    Now, 'man machine-id' reveals that "the /etc/machine-id file contains the unique machine id of the local system that is set during installation. (...) The machine ID is usually generated from a random source (...)". It is obviously perfectly justified to refuse to boot the system because an absolutely insignificant random number is missing. As far as systemd is concerned anyway.
    Usually, it seems, the /etc/machine-id is set by /usr/bin/systemd-machine-id-setup during installation or system upgrade. It is not documented anywhere that this is a rather important step and that you should better check if this was or was not actually done before rebooting. Obviously (but for no apparent reasons) systemd fails to run this (or to run this successfully) sometimes.
    Also to be recommended: Always retain (back up) your old kernel and initramfs and edit your bootloader config appropriately to be able to boot with your old kernel again ... just to have one or two options left to get back into the system in case of running into an unpleasant surprise from the side of systemd or other packages.
    The solution is, obviously, to create this file /etc/machine-id ... You probably want to do that from a livesystem (if you want to try it from the emergency shell, you would need to remount / (i.e. root) as rw and hope that systemd will not punish you for that) by just running the program that was designed for creating this file manually:  /usr/bin/systemd-machine-id-setup
    http://permalink.gmane.org/gmane.comp.s … devel/7528 states that it might also work with merely creating the file 'touch /etc/machine-id'. Though I didn't try that since I had enough fun with systemd for one week and didn't want to break my system again just to see if that works.

    Jristz wrote:
    ackalker wrote:Sorry for necrobumping this.
    Generating the machine-id in a consistent way is very important when working with KVM and containers, where the machine-id can be set for the VM or container. See `man systemd-machine-id-setup`.
    Again, _don't_ just put some random UUID in there, especially not in the systemd package install script, this makes provisioning Arch Linux containers a PITA.
    If you thing that the way that arch is handlynbg the machine-id is wrong or can be improved, then file a bug.
    He already did.
    Jristz wrote:Anyway, I thing if reinstalling systemd package or if systemd have a command to reinitialize the machine-id file.
    Like so many of your posts, I had to read this a half dozen times before it made any sense. I think you're hinting at the utility that ackalker already pointed out in the post you're replying to. And, if you read the install scriptlet, you wouldn't need to think about whether or not reinstalling would be an option. You would know that it isn't.

  • Help urgently needed, I have installed Logic Pro 9, since then my Final Cut Pro X keep freezing. Anyone what is wrong and how to solve it? I desperately need help on this. Thanks

    Help urgently needed, I have installed Logic Pro 9, since then my Final Cut Pro X keep freezing. Anyone what is wrong and how to solve it? I desperately need help on this. Apple support says I have to pay £85 for to help me. Thanks

    Just a word of advice. Never ever use the word "urgent" on this forum

  • Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?

    Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?
    I've installed three times with no luck. I downloaded the Creative Cloud Packager off the licensing site: https://licensing.adobe.com. I unpacked and choose my applications. The install seemed to be successful, but I don't so any of the applications anywhere.

    Hi,
    Creating package doesn't mean it will install the product,
    You will need to install the package now. Please follow the instructions mentioned in the below articles
    Creative Cloud Help | Creating or editing packages
    Creative Cloud Help | Deploying packages
    Please let me know if it doesn't help.
    Regards,
    Devendra

  • Which WSDL file to get the list of Groups present in OAM.

    Hi All,
    Can any one tell me which WSDL file is to be used to get the list of groups present in OAM from an IDXML call.
    Please provide sample IDXML call if possible.
    Thanks in advance.
    Thanks & Regards,
    Siva Pokuri.

    guys, 80% of my problem got solved.
    here is the solution list as u all have suggested and that i have checked it also.
    RSDCUBEIOBJ     - infocube list for any nav-attr 
    RSDODSOATRNAV  - DSO list for any nav-attr
    ODSOIOBJ. - DSO list for any infoobj
    but in these tables, one thing i observe is that each infocube/DSO name is repeated multiple times. why is that? from where it populate?

Maybe you are looking for

  • Multiple Click boxes in Captivate 5

    Hi I'm a new user of Captivate (using 5) and trying to figure out capabilities and suitability to my needs.  I've also searched through the forum and can't find similar so I apologise in advance if this has been answered. Ideally I would like to prod

  • Print a tiled PDF

    How do I take a tiled 3.125 x 5.125 PDF and print (text is 6 pt.) in a readable format??

  • My apple tv keeps flashing between apple logo and start menu?

    I had to reset my Apple tv due to it was frozen, so I with reset it to original facorty setting. After this was done I followed all on screen instructions, finally I was done, I reset my wi fi setting and went to start menu, it would hold on the star

  • Adobe Reader app on my ipad air problem with combo boxes filling in

    I am using Adobe Reader app on my ipad air and when filling out forms, and making a selection from a combo box, my selection dissappears.  Not visible, not printable, not savable, just blank.  It works well on my Reader on my Windows desktop.  Any id

  • Switch to debugging mode

    I need to debug my application, I've already set the debug mode ON as well as the restricted load balancing, but when I try to debug the application, it says that the j2ee engine server node should be in "Debugging", how can I change that??