[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.

Similar Messages

  • I have a DVD project that takes about 14 hours to generate. Is there any way to periodically save it during encoding so power failures or other problems do not require a complete restart?

    I have a DVD project that takes about 14 hours to generate. Is there any way to periodically save it during encoding so power failures or other problems do not require a complete restart?

    No.  Are you saving the project as a disk image rather than burning directly to disk from iDVD?  If not then that's what I suggest you do.  That will separate the encoding process from the burn process to save time and disks if the encoding is bad.  It also lets you burn a second or third disk without having to encode again.
    OT

  • How to configure V240 auto-boot after power failure?

    Hi!
    How to configure automatic boot of V240 machine after power failure? After power gets resored, V240 remains in standby mode and one has to press button on front to power it up. It is not convinient because power failure can occur, for example, at night and the machine is not booted until the first user awakens :)

    Uhh... I've found publicly accessible document http://docs.sun.com/source/817-5481-11/variables.html :
    Looks like this variable controls auto-power-up behaviour:
    sc_powerstatememory
    The sc_powerstatememory variable enables you to specify the state of the host server as false (keep the host server off) or true (return the server to the state it was in when the power was removed). This is useful in the event of a power failure, or if you physically move the server to a different location.
    For example, if the host server is running when power is lost and the sc_powerstatememory variable is set to false, the host server remains off when power is restored. If the sc_powerstatememory variable is set to true, the host server restarts when the power is restored.
    The values for this variable are as follows.
    true - "Remembers" the state of the host server when power was removed and returns the server to that state when power is reapplied.
    false - Keeps the server off when power is applied.

  • [SOLVED] Run script on systemd shutdown and reboot

    Hello!
    I am trying to log uptime on shutdown and reboot with no success.
    I create the file /usr/lib/systemd/system/uptime.service:
    [Unit]
    Description=/etc/rc.local.shutdown Compatibility
    ConditionFileIsExecutable=/etc/rc.local.shutdown
    DefaultDependencies=no
    After=rc-local.service basic.target
    Before=shutdown.target
    [Service]
    Type=oneshot
    ExecStart=/etc/rc.local.shutdown
    StandardInput=tty
    RemainAfterExit=yes
    [Install]
    WantedBy=shutdown.target
    /etc/rc.local.shutdown:
    [jribeiro@arkosta ~]$ ls -l /etc/rc.local.shutdown
    -rwxr-xr-x 1 root root 107 Out 24 12:42 /etc/rc.local.shutdown
    [jribeiro@arkosta ~]$ cat /etc/rc.local.shutdown
    echo "$(date) - $(/usr/bin/uptime | sed 's/.*up \([^,]*\), .*/\1/')" >> /home/jribeiro/registo_de_uptime
    Any ideas?
    Last edited by joseribeiro (2014-10-25 19:57:59)

    I altered the uptime unit file:
    [jribeiro@arkosta ~]$ cat /usr/lib/systemd/system/uptime.service
    [Unit]
    Description=/etc/rc.local.shutdown Compatibility
    Before=shutdown.target
    [Service]
    ExecStart=/bin/true
    ExecStop=/etc/rc.local.shutdown
    RemainAfterExit=yes
    [Install]
    WantedBy=shutdown.target
    Then I started the uptime service manually:
    [jribeiro@arkosta ~]$ sudo systemctl start uptime
    I checked the 'registo_de_uptime' file:
    [jribeiro@arkosta ~]$ cat /home/jribeiro/registo_de_uptime
    Sáb Out 25 19:43:31 WEST 2014 - 2 min
    After that I rebooted my system.
    I checked the 'registo_de_uptime' file, again:
    [jribeiro@arkosta ~]$ cat /home/jribeiro/registo_de_uptime
    Sáb Out 25 19:43:31 WEST 2014 - 2 min
    Sáb Out 25 19:44:27 WEST 2014 - 3 min
    Everything seems to be alright. I wanted to make the ultimate test.
    With that in mind I rebooted the system.
    I checked the 'registo_de_uptime' file, once more:
    [jribeiro@arkosta ~]$ cat /home/jribeiro/registo_de_uptime
    Sáb Out 25 19:43:31 WEST 2014 - 2 min
    Sáb Out 25 19:44:27 WEST 2014 - 3 min
    No success...
    It works when I start the service manually and in the right next reboot, after that it won't work.
    Here is the journal's ouput:
    [jribeiro@arkosta ~]$ sudo journalctl -b -0 -u uptime
    -- Logs begin at Sex 2014-10-24 22:02:03 WEST, end at Sáb 2014-10-25 20:05:29 WEST. --
    By the way:
    [jribeiro@arkosta ~]$ sudo systemctl status uptime
    ● uptime.service - /etc/rc.local.shutdown Compatibility
    Loaded: loaded (/usr/lib/systemd/system/uptime.service; enabled)
    Active: inactive (dead)
    Last edited by joseribeiro (2014-10-25 19:07:32)

  • [Solved] KDM will not open after power failure

    Had a power failure and upon reboot, I get the following error:
    cannot open theme file
    /usr/share/apps/kdm/themes/archlinux-simplyblack
    I cd'd to the above path but only 'circles' and 'oxygen' are in the themes folder.
    I even ran pacman -S kde to reinstall all the kde packages, but no luck.
    Any ideas on a fix?
    Thanks!
    Last edited by SkinnyJ (2009-05-05 02:15:53)

    glad it works now, if you're using ext4 i hear power failures can corrupt some files; otherwise, i dunno.
    anyway, please mark as [solved].  and thanks for the bit about my enemies .

  • HT3176 How do I restart a movie interrupted by power failure?

    How do I restart a movie stopped by a power failure?

    Never mind, I found my own answer.

  • How bad would it hurt my iMac after power went off while using?

    I was using my iMac and then the house power went off. I still be able to turn it back on after the power came back. But I dont know how bad did it hurt my iMac after that? Anything to worry about?

    You should check the file you were working on when the power went out. For example, if you were surfing the web, there is nothing to worry about. If you were creating a text document, odds are that it is fine, but it may have lost what you were typing in the moment. If you were in the middle of a time machine backup, then the backup may be corrupted, but Time Machine should be able to right itself - but it may take a long time to reindex.
    If a large surge of current went through, you would likely notice severe symptoms, like the display going black or the iMac failing to boot up.
    I used to use surge protectors, but now I use a backup power supply (which includes a surge protector). That way, if power goes out, I can continue working for 5 to 15 minutes, and the computer will do a normal shutdown if the power outage is longer.
    I use the APC Backup UPS with 1300 xs1300va.

  • E1000 won't reboot after power off

    I have an E1000 installed. When I'm away for a while, I turn the power off to my modem and router to reduce electicity use. When I turn the power back on after returning, the E1000 will not reboot automatically. It will only reboot after I physically remove the power adapter cord from the E1000 body and reinsert it. Why doesn't it reboot automatically?

    While turning on the devices, turn on the modem first. Wait for 1 minute and then turn on the router.
    The router should reboot automatically when you turn it ON. However your router is not doing it automatically.

  • Xserve - Auto Reboot after power loss

    I have an Xserve (All updated) in a server farm. Recently the farm lost power, someone screwed something up. The net result was the server lost power. When the power was restored shortly thereafter the Xserve DID NOT reboot automatically, as I expected it would. Once the power button was pressed, everything booted fine.
    SYSTEM PREFERENCES/ ENERGY SAVER/ are set to RESTART AUTOMATICALLY AFTER A POWER FAILURE.
    Why did this not reboot when the power was restored?
    Is there another, more reliable way to ensure this works properly, Firmware Settings?
    TIA

    I am thinking maybe the power was still off when the Xserve wanted to restart?

  • [SOLVED] "ip: command not found" after power failure

    Hello,
    After a power failure my Arch box has no network connection available. An 'ip addr' command showed me the outrageous error message :
    bash: ip: command not found
    How could this ever happen ? How do I recover from such an error ?
    Last edited by singleton (2014-12-19 17:34:58)

    I wasn't doing any system maintenance when the power failed, just some regular browsing.
    Here's the output of each command :
    pacman -Qk
    https://bpaste.net/show/e06fb962c42c
    echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    ls -l /usr/bin/ip
    ls: cannot access /usr/bin/ip: No such file or directory
    pacman -Qi iproute2
    error: package 'iproute2' was not found
    I 'm suspecting I will need to use a fresh installation CD to get over this. Any guidance will be greatly appreciated though!

  • PowerMac won't boot after power failure during install

    Hi, sorry if this has been asked. I searched, but I'm not quite sure how to phrase it.
    I bought a used PowerMac from craigslist and went to install a newer version of OSX. I had a power failure in the middle of the install and now the computer won't boot up. How do I go back to a fresh re-install and get the computer to boot up?
    Much appreciated!

    Did you use a retail install DVD? If you used a gray disc from another model Mac, that could be a  problem.
    Because of the power failure, suggest you reset the PMU. How long was the power Off? You may need to replace the PRAM battery.
    Resetting Cuda/PMU on Power Mac G5, Power Mac G4, Power Macintosh G3
    http://docs.info.apple.com/article.html?artnum=86760
     Cheers, Tom

  • [SOLVED] How to tell systemd to start decrypting as early as possible?

    Hello there,
    now that gnome got updated to 3.6 I had to finally convert to systemd. My system is encrypted and some of the data (for example my music collection) is on another hard disk which is also encrypted, although it cat be opened with a key file that is located in my root filesystem (so I only have to type in the keyphrase for my root at boot).
    When I tried to use systemd a few weeks ago, this was a problem. According to the wiki-article, I had two possibilities:
    1) simply have the appropriate entries in /etc/crypttab and /etc/fstab. This is problematic since then it has to be completely mounted for fs-local.service (or something like that) to be available, so for example gdm gets started rather late.
    2) add x-systemd-automount to the mount options. Gdm is then started earlier, but my music program (listen) takes a long time to start, since the unlock and mount only gets started as soon as it is accessed. Also, gdm seems to take a long time to start, so I suspect that it is also trying to access something and gets blocked.
    In general, I like the idea that any access to the file system is blocked until it is ready - this prevents listen from going through my playlist thinking that everything is deleted. But I'd like to tell systemd to start the unlocking as soon as it is started - maybe even before the root filesystem is remounted, since this only needs read access to /. At the moment I have a script in /etc/rc.d that does the unlocking, checking, and unlocking. This is usually finished before listen starts, but if the partition needs checking this will not be the case. Has anyone understood systemd good enough to have a suggestion?
    Last edited by viktordick (2014-11-06 12:46:27)

    I do something similar with my /home partition:
    LABEL=HOME              /home           ext4    x-systemd-automount               0       2
    Notice that I do not use the "noauto" option. This means that systemd will mount the partition as early as possible, but it will not wait for it to finish mounting (merely buffer any accesses using automount).

  • Solaris 10 panics during reboot after successful installation

    hello,
    this is the 2nd time i'm trying to make solaris 10 x86 (latest dvd version) to
    run on my asus w1n laptop. /first i tried cd version in last december./
    and again i'm not being successful. what happens is this:
    after (i guess successful) installation the system reboots and it panics
    during the boot process. where and why exactly i don't know -- it just prints
    the kernel banner and i noticed a change of screen font. and when it panics i
    have no time to write down or even read the message as it reboots in a second.
    does anyone have an idea of what might be going on or how to overcome this
    issue pls ???
    /i want to give the system a try but so far i've got no chance./
    many thanks,
    martin
    ps: pls cc me as i'm not on the list. cheers.

    Martin,
    as a first step, try booting with -v. This will give you more insight on just where your system panics. Obviously, your system at least gets across the point where the video driver is loaded - that's where the screen font changes.
    Since you seem to be able to boot from a CD/DVD Media, you may also try to boot to single user mode from there.
    Don't get confused by the absence of the usual device configuration assistant / 2nd level boot dialog screens when booting from an install media - at the point where you are prompted for an installation type you can also enter, e.g., "b -s" (without the "", of course) for a single user boot.
    You may then try to look into /var/adm/messages on your hard disk installation. USUALLY, you'll find some hints towards the problem source there.
    HIH, kind regards,
    Me

  • Stuck on white screen during reboot after installing Snow Leopard

    I had no problem with installation, but am stuck on the white screen during automatic reboot. I manually ejected the disc hoping that would help. I am not sure how to get past this white screen of death. I tried to reset the PRAM but nothing I do will get me past the white screen.

    I am having this problem right now. It just goes to white screen during the installation right after rebooting. Just before rebooting it tells me to be 'ready' with the second disc, but then reboots and goes to white screen with apple logo and spinning gears....am I supposed to be putting the second disc in at this stage? Shouldn't it be prompting me to do something? Did either of you figure a way around this? Any help much appreciated.

  • Macbook pro shuts down during reboot after flat battery

    Hi, I have a macbook pro (early 2011) And it went flat two nights ago whilst watching a movie. It was plugged in but I've been having charger issues. Anyway, now that it's fully charged, whenever i turn it on it gets to the apple logo with a progress bar (restoring the previous session maybe?), but then shuts down. I've tried a few times and its the same everytime.I suspect that it's trying to restore the last session (the progress bar - I cant recall whether that happens normally) and running into problems because of the flat battery episode. Can a session restore be cancelled?
    I can still boot up the windows partition by pressing the option button during start up, its just the mac partition that wont boot. Also, I am still running Snow Leopard (what it came with, though with all updates).any help would be greatly appreciated.

    Anyone?

Maybe you are looking for