[SOLVED] How to fsck+badblocks with systemd?

Before systemd I could boot into single mode, then "mount / -o remount,ro" and then "fsck.ext4 -c ...". Now I can't since it says / is in use and I can't remount as read-only. What do I do?
Last edited by Butcher (2012-10-22 09:54:22)

Gusar wrote:Two similar targets? Interesting. I just found Fedora's sysvinit to systemd cheat sheet - adding emergency gets you the emergency target. All the others I mentioned get you the rescue target. Now I'll have to go figure out what the difference between those two targets is
[Unit]
Description=Emergency Mode
Documentation=man:systemd.special(7)
Requires=emergency.service
After=emergency.service
AllowIsolate=yes
emergency.target only launches emergency.service, which is a root shell (sulogin) on your primary console. No udev, no journald, no nothing.
[Unit]
Description=Rescue Mode
Documentation=man:systemd.special(7)
Requires=sysinit.target rescue.service
After=sysinit.target rescue.service
AllowIsolate=yes
[Install]
Alias=kbrequest.target
This launches sysinit.target, thus udev and journal are running and file systems are mounted. Then it launches rescue.service, which is almost identical to emergency.service.
Last edited by brain0 (2012-10-19 15:21:47)

Similar Messages

  • How to start dhclient with systemd at startup? [SOLVED]

    I have eth0 connected to DHCP server and want to use dhclient instead of dhcpcd. How can I start dhclient with systemd? Is there something similar to
    systemctl enable dhcpcd@eth0
    Last edited by mpelikan (2012-12-18 13:43:28)

    dhcpcd comes in package with completed systemd unit (/usr/lib/systemd/system/dhcpcd.service and /usr/lib/systemd/system/[email protected]) by package developer, but dhclient doesn't.
    mpelikan, you should write your own systemd unit for dhclient for yourself using
    1) dhcpcd units as example
    2) wiki page https://wiki.archlinux.org/index.php/Sy … vice_files
    3) man page for dhclient to get the right options
    Also I'm sure I saw somewhere an example of dhclient unit but I can't find it now. Anyway, it was not working out-of-box in Arch.
    I've done this previously but then I've realized disadvantages of dhclient (so I've removed it).
    Firstly, I didn't like how it's working in daemon-mode after some testing.
    Secondly, it depends on deprecated net-tools.
    You should try dhcpcd. If it doesn't work, you can make it work by editing configuration files / kernel options (like switching off IPv6 if you think you have an issues with it) or adding some parameters.

  • [SOLVED] Disabling Bluetooth on boot with systemd

    I'm having a nasty-won't-go-away problem with the disabling of the bluetooth module in my Thinkpad X200s.
    Resorting to the old Arch way of disabling bluetooth on boot, I added this to my rc.local:
    /bin/echo 0 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable
    The thing is, this somehow made my boots hit'n'miss: kernel panics every two boots. As soon as I commented that line from my rc.local... no more kernel panics at boot.
    I was still using an rc.conf just with daemons, and in troubleshooting the kernel panics got rid of it and used the systemd way of enabling/disabling services. My problem here is that the bluetooth service seems to be impossible to disable.
    I first tried the good ol'
    systemctl disable bluetooth.service
    Which supposedly disabled bluetooth... but didn't. Even
    systemctl stop bluetooth.service
    Does not work.
    Digging around the interwebs, I found that there are "stronger" ways to disable services with systemd, meaning "masking" services - basically links them to /dev/null
    So, I tried masking the bugger...
    systemctl mask bluetooth.service
    Reboot and... the damn bluetooth is still enabled. Only way that works is to echo 0 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable... but I can't do it at boot with rc.local, otherwise I'll get the kernel panics again.
    Any ideas?
    Last edited by Onyros (2012-08-15 13:10:35)

    Onyros wrote:
    I'm having a nasty-won't-go-away problem with the disabling of the bluetooth module in my Thinkpad X200s.
    Resorting to the old Arch way of disabling bluetooth on boot, I added this to my rc.local:
    /bin/echo 0 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable
    The thing is, this somehow made my boots hit'n'miss: kernel panics every two boots. As soon as I commented that line from my rc.local... no more kernel panics at boot.
    I was still using an rc.conf just with daemons, and in troubleshooting the kernel panics got rid of it and used the systemd way of enabling/disabling services. My problem here is that the bluetooth service seems to be impossible to disable.
    I first tried the good ol'
    systemctl disable bluetooth.service
    Which supposedly disabled bluetooth... but didn't.
    It disables the bluetooth service which is very different from what your write to sysfs accomplishes. Don't you really just want to blacklist the bluetooth module? Your post is a bit hard to follow...

  • [SOLVED] How to start JACK with KDE 4? (and which JACK should I use?)

    Hi again
    I'm using KDE 4, and I've just installed JACK again, and since I can't find any decent documentation on this, I'm having a bit of a problem.
    Currently I have jack from [extra] installed, rather than jack2. When I try starting jack as the ArchWiki suggests, i.e. by typing "jackd -d alsa", I get the following error:
    $ jackd -d alsa
    jackd 0.120.1
    Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
    jackd comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    could not open driver .so '/usr/lib/jack/jack_firewire.so': libffado.so.2: cannot open shared object file: No such file or directory
    JACK compiled with System V SHM support.
    loading driver ..
    creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
    control device hw:0
    the playback device "hw:0" is already in use. Please stop the application using it and run JACK again
    cannot load driver module alsa
    I've also tried jack2 from [community], and after starting it with "jack_control start", I get this...
    $ jack_control start
    --- start
    DBus exception: org.jackaudio.Error.Generic: Failed to start server
    So how do I start it? I'm guessing jack doesn't want to start because some other KDE application grabbed alsa before jackd (but I've been wrong before), and I don't have the slightest idea what jack2 is about with that "generic" error. If anyone would help me shed some light on this, I'd appreciate it a lot.
    Thanks in advance!
    Last edited by Wintershade (2011-03-26 19:22:08)

    @schivmeister thanks that one worked
    Yes, it was knotify4. So now this part works. I've switched to jack2 and it works flawlessly when starting it with jackd
    So this part is solved... now, would you be so kind (if you know) as to point me to some tutorials or howtos (or proper documentation, cos I can't find much of that either) on how to connect various ALSA channels with JACK?
    Basically, I want to route my PCM channel and the Mic channel into Capture 1 (or one to Capture 1 and other to Capture 2), since my Intel HDA audio card doesn't have the "Mix" or "What-U-Hear" or whatever as an available capture source. Any leads on that? (or do I have to open another thread for it?)
    TIA

  • How to fsck /usr with LVM?

    Wasn't sure where to post this:
    I just applied a pile of updates to my Arch+MythTV PVR. Not necessarily related to my problem, but this update included the replacement for mtab. On reboot, I get dumped into single-user because /usr is dirty. Dirty dirty /usr. Of course, I cannot fsck it because I cannot unmount it. I'm using LVM: two 2TB drives mirrored, two VGs defined (rootvg and datavg). /usr is it's own filesystem within rootvg.
    Any suggestions on how to get this fixed? I assume I'll have to boot from a liveCD. Preferably something that will recognize the LVM stuff at boot and take care of all that mess. Recommendations?
    - Mark

    Gusar wrote:Two similar targets? Interesting. I just found Fedora's sysvinit to systemd cheat sheet - adding emergency gets you the emergency target. All the others I mentioned get you the rescue target. Now I'll have to go figure out what the difference between those two targets is
    [Unit]
    Description=Emergency Mode
    Documentation=man:systemd.special(7)
    Requires=emergency.service
    After=emergency.service
    AllowIsolate=yes
    emergency.target only launches emergency.service, which is a root shell (sulogin) on your primary console. No udev, no journald, no nothing.
    [Unit]
    Description=Rescue Mode
    Documentation=man:systemd.special(7)
    Requires=sysinit.target rescue.service
    After=sysinit.target rescue.service
    AllowIsolate=yes
    [Install]
    Alias=kbrequest.target
    This launches sysinit.target, thus udev and journal are running and file systems are mounted. Then it launches rescue.service, which is almost identical to emergency.service.
    Last edited by brain0 (2012-10-19 15:21:47)

  • How to replace Consolekit with systemd-loginctl

    Is systemd's new multiseat ready to replace consolekit?
    And if, how can I achieve that?
    My Background:
    - I use systemd as my init system
    - login into a getty
    - which create a new X session with startx through a login script
    I have had a hard time before I had the right setup to supervise everything with *ck-launch-session* and  *dbus-launch* (order matters).
    And sometimes without a reason, something breaks and I'm not allowed to mount USB drives or shutdown as a user without a reboot.
    Last edited by Mic92 (2012-06-01 13:36:59)

    I do have a session:
    ┌─[jente @ lappy ~] 21:48:14
    └─■ loginctl
    SESSION UID USER SEAT
    1 1000 jente seat0
    1 sessions listed.
    I start Udiskie through .xinitrc, like so:
    if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    eval `dbus-launch --sh-syntax --exit-with-session`
    fi
    exec bash -c "udiskie & $HOME/.bin/dwm_start"
    With .bin/dwm_start:
    #!/bin/bash
    while true; do
    dwm >/dev/null 2>&1
    done
    EDIT: Here's udiskie's output when I plug in my external HD:
    attempting to mount device /org/freedesktop/UDisks/devices/sdb2 (ext4:[])
    failed to mount device /org/freedesktop/UDisks/devices/sdb2: org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized
    attempting to mount device /org/freedesktop/UDisks/devices/sdb1 (ntfs:[])
    failed to mount device /org/freedesktop/UDisks/devices/sdb1: org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized
    EDIT2:
    Changing my .xinitrc to the following didn't help either:
    udiskie &
    exec $HOME/.bin/dwm_start
    Also, I found out I have to enter my root password to shutdown/reboot, whereas I didn't have to before.
    Last edited by Unia (2012-09-05 19:55:23)

  • [SOLVED] Netcfg.service not starting with systemd

    I have net-auto-wireless.service enabled and working, but when I try to start netcfg.service, it gives the error:
    Job for netcfg.service failed. See 'systemctl status netcfg.service' and 'journalctl' for details.
    "systemctl status netcfg.service" gives me:
    netcfg.service - Netcfg multi-profile daemon
    Loaded: loaded (/usr/lib/systemd/system/netcfg.service; enabled)
    Active: failed (Result: exit-code) since Thu, 04 Oct 2012 13:43:05 -0400; 5min ago
    Main PID: 1510 (code=exited, status=1/FAILURE)
    CGroup: name=systemd:/system/netcfg.service
    Oct 04 13:43:05 arch systemd[1]: Starting Netcfg multi-profile daemon...
    Oct 04 13:43:05 arch netcfg-daemon[1510]: No recorded netcfg state to restore
    Oct 04 13:43:05 arch systemd[1]: Failed to start Netcfg multi-profile daemon.
    And the output of "journalctl" is:
    Oct 04 13:43:05 arch netcfg-daemon[1510]: No recorded netcfg state to restore
    Oct 04 13:43:05 arch systemd[1]: netcfg.service: main process exited, code=...=1
    Oct 04 13:43:05 arch systemd[1]: Unit netcfg.service entered failed state.
    Am I missing something in setting it up?  I followed the netcfg wiki as closely as I could.
    Last edited by mellowmaroon (2012-10-04 18:46:16)

    Good call, I changed it from "last", to the profile I use in /etc/network.d that net-auto-wireless autoconnects to.  It failed for a different reason after changing the NETWORKS in /etc/conf.d/netcfg, because net-auto-wireless was still running.
    But it works now, thanks for the help!
    I wanted to use netcfg instead of net-auto-wireless because I was unable to find a suitable way to connect to available networks that is non-graphical, and I felt like giving netcfg a try and seeing if it's any easier than running "systemctl restart net-auto-wireless.service" every time I want to reconnect.
    Although my question for this thread is solved, is there any way to have netcfg autoconnect to profiles once I am within range?

  • [SOLVED]How to install packages with the -U option? PGP error.

    I have to downgrade some packages (linux package due to ath5k problem), but pacman won't allow me because of the signatures.
    I downloaded the packages i need from here http://schlunix.org/archlinux/.
    These packages are safe to install? How can i bypass the signature check, if these packages are safe to install?
    Thanks.
    Last edited by Hyugga (2012-04-19 19:46:23)

    If you have a pgp key, you can sign the packages with your own key. You can do this by editing /etc/makepkg.conf, adding your key to the  GPGKEY="" section and enabling the sign option in the BUILDENV section. When building the package, it'll then be signed with your personal key. Afterwards import your key in pacman (pacman-key -r <yourkey>), assign the proper trust level and you're good to go.
    A workaround is to temporarily set "SigLevel = Never" in your /etc/pacman.conf (and hence disabling keysigning).
    EDIT: I just bothered to actually check your link and you'll be installing prebuilt binaries, so my first explanation doesn't apply there (you won't be building anything). So just setting SigLevel to Optional or Never (temporarily) should do.
    Last edited by Gcool (2012-04-19 19:23:05)

  • [SOLVED]How do I deal with non-unicode filenames inside archives?

    I often get archives from Japanese Windows users with file names encoded in one of the myriad of Japanese character sets. Windows is pretty good about converting the filename to unicode before passing it on to any program or computer that expects it. However, it won't touch the filenames of things inside the archive for obvious reasons. Any way to make, say, unzip or 7z convert the filenames to unicode as they're extracted? At the moment I run Windows in Virtualbox and connect back to a shared folder and let Windows do the unzipping.
    Last edited by DJQuiteFriendly (2011-09-22 22:13:26)

    I don't know if there's any advancement WRT this, but there's a work-around here (under "UnZip Locale Issues" ) using convmv.

  • [Solved] How to save changes with PDF files

    Hello
    I have pdf files which contain forms. The only issue is that I cannot save the changes I do with evince. Anyone has a solution ? Thanks in advance
    Last edited by tamikana (2010-04-23 17:42:52)

    this thread has some tips:
    http://bbs.archlinux.org/viewtopic.php?id=52084
    not sure if they mention it, but xournal may also kind of work (annotates pdfs by turning them into an image, basically)

  • [Solved] How to start wpa_gui with the acpid

    I have written a script, which start my wlan.
    #!/bin/bash
    #/usr/local/bin/wlan
    function wlan_start {
    # a workaround. reload the module
    modprobe -r iwlagn
    modprobe iwlagn
    ifconfig wlan0 up
    dhcpcd -b -q -t 0 wlan0
    wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dwext -B
    wpa_gui &
    function wlan_stop {
    dhcpcd -q -x wlan0
    killall wpa_supplicant
    ifconfig wlan0 down
    case "$1" in
    start) wlan_start ;;
    stop) wlan_stop ;;
    esac
    If I run it from a console (sudo /usr/local/bin/wlan start) the wpa_gui pops up.
    I have installed it into the handler.sh from acpi. The script is correctly executed, if fn+f5 is pressed, but wpa_gui does not pop up.
    What should I change, that it the gui pops up whith fn+f5?
    Edit:
    The problem was, that I forgot the access restriction of X.
    Adding following code helps:
    export DISPLAY=:0.0
    export XAUTHORITY=/root/.Xauthority
    Remark: /root/.Xauthority is a link to the file of the notebook user.
    Last edited by dudell (2010-01-25 10:10:07)

    Mahesh,
    In the post installation document, under Creating User XISUPER,
    I see the following,
    1.You must now log on to the Integration server host with the user XISUPER, to switch the initial password to a valid password.
    2.You must restart the J2EE engine to transfer the user creation to the J2EE immediately.
    I am unable to proceed here.Can you please help me to resume the post installation steps ?
    Thanks,

  • [SOLVED]How to use pulseaudio with in 32 bit chroot on ARch64

    I am trying to running some 32bit software from chroot environment on Arch64.
    I set up pulseaudio on Arch64 property.
    However, within 32 bit chroot, I cannot use pulseaudio.
    For an example,
    arch32 chroot /home/xxxx/Audio > paplay Front_Center.wav
    Connection failure: Connection refused
    How can I fix this?
    Last edited by phabulosa (2008-04-27 19:37:15)

    I made this to work by the following steps:
    1. Install pulseaudio and alsa-plugin stuff in Arch32;
    2. Edit /etc/pulse/default.pa on Arch64 and enable "load-module module-native-protocol-tcp";
    3. Edit /etc/rc.d/pulseaudio and add a line "cp /var/run/pulse/.pulse-cookie /opt/arch32/etc/pulse-cookie" after pulseaudio line in 'start' part;
    4. Add some lines in /etc/hosts.allow on Arch64 (some of them may not be necessary) ;
    pulseaudio-native: 127.0.0.1
    pulseaudio-simple: 127.0.0.1
    pulseaudio-cli: 127.0.0.1
    pulseaudio-http: 127.0.0.1
    esound: 127.0.0.1
    5. Follow the "PulseAudio over Network" in Arch Wiki on Pulse audio http://wiki.archlinux.org/index.php/Pul … er_network and configure my Arch32 as a remote client on the network while setting the server address as 127.0.0.1;
    6. Restart Pulseaudio daemon on Arch64 and Run "paplay" on Arch32 to test.

  • [Solved] How to Install i3 with xorg

    HI guys,
    I am trying to figure out if it is possible to install i3 having only xorg installed.
    I followed the installation guide for arch-linux and I installed X-org
    pacman -S xorg-server xorg-server-utils xorg-xinit
    I have installed and configured i3 as explained here: https://wiki.archlinux.org/index.php/i3
    Despite my efforts I am not able to make it run. Could you please explain me:
    1) what are the minimum requirements to run i3 in terms of desktop environment?
    2) have I missed something in the installation process?
    Thank you for your help!
    Last edited by pappix (2014-03-17 23:12:00)

    Hi Karol,
    thanks for the fast reply! I kept trying and at the end I was able to start i3 by running
    xinit i3
    It turned out that was failing to execute i3 because i set ~/.xinitrc in the following way:
    exec i3 -V >> ~/.i3/i3log 2>&1
    and since i3 was never run before there was no ~/.i3 directory. During the first execution of i3 it asks for the creation of such directory, thus after the 1st execution it is possible to write the full command line in /.xinitrc, but if you do that before, you have to create the directory first.
    BTW now I am running i3 with XORG alone, it' s ugly but I am going to work on it.
    Thanks for the help though, I hope this post will help someone else

  • [Solved] How to install QtSDK with working Symbian s60 5th simulator

    All in file GZ - click on "Pobierz Plik"

    hello
    i need also help to introduce voip calls feature to my new e7.
    what must i do step by step?
    unfortunately there isn't included this feature in the box anymore...
    and also i do not have this view in my phone (attached), i have only
    net settings
    packet data
    presence
    sip settings
    xdm profile
    or am i in wrong place...?
    thanks
    Attachments:
    e7.jpg ‏20 KB

  • How to configure BIND (chroot) with systemd

    Hello,
    I'm following guide https://wiki.archlinux.org/index.php/BIND_(chroot). In the end there is only said how to enable service in sysvinit environment. Could someone please tell me how to do this with systemd?
    Thanks

    @toogy: what do you mean exactly by creating a systemd service?
    EDIT: for example, I've this one (in /etc/systemd/system/mynamed.service)
    [Unit]
    Description=Internet domain name server
    After=network.target
    [Service]
    ExecStart=/usr/bin/named -f -u named -4
    ExecReload=/usr/bin/rndc reload
    ExecStop=/usr/bin/rndc stop
    [Install]
    WantedBy=multi-user.target
    And according to 'man named', you can use the '-t' parameter if you want named to run in a chroot (I've never tried it):
    -t directory: Chroot to directory after processing the command line arguments, but before reading the configuration file.
    Warning: This option should be used in conjunction with the -u option, as chrooting a process running as root doesn't enhance security on most systems; the way chroot(2) is defined allows a process with root privileges to escape a chroot jail.
    Last edited by scar (2014-03-18 16:24:55)

Maybe you are looking for

  • Error while retrieving TASK list through worklist API

    Hi All, I am try'n to retrieve TASK lit for user in BPEL 10.1.3.1 using worklist api , I am stucked with this error while quering the tasks. bpeladmin Aug 25, 2008 11:31:52 AM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER WA

  • Price difference in MAP material

    Hi,    I am taking a material which is managed Batch wise and split valuation is active, while valuation type is moving average price. when doing the goods issue for the material, it is hitting the entry in Price difference account.. But when I am re

  • Import Outlook 2011 for MAC database from a security copy

    After many years using Outlook for Windows, I bought a MAC Book Pro and Outlook 2011 for MAC. I use it for mail, contacts, notes and calendar and yesterday I had a problem. Since then, when I click the Outlook icon what appear is the system completel

  • Iweb 09 multiple sites and domains

    I have had one iWeb site working properly for the last few years with past iweb versions with no problems. I purposely upgraded to 09' so I could publish multiple sites with individual domains. I created a second and third site and they seemed to up

  • Link DIR's in MAC

    Greetings, I'm not a wiz on code, but I try and I need some help please. I'm building a hybrid CD to play on both PC & MAC and some of my links will open a new Director movie located in a subfolder. When I publish for both PC & MAC it works fine on a