[SOLVED]removed lots of hooks (base, fsck remain)- boot fail

Also I've reinstalled linux kernel twice. so initrd images of both fallback and current system have lost these important hooks.
Is there any chance I can repair my system to boot now without reinstalling?
I have arch linux and ubuntu CDs (if they can be helpful).
I have this in my kernel line
root=/dev/sda3 rootfstype=ext4
and the error it shows is that it can't find '/dev/sda3'
Last edited by ebshankar (2012-06-24 08:31:34)

Terminator wrote:
Change root wiki
spoiler (to be done after mounting your root on /mnt/arch and before the chroot):
cd /mnt/arch
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
mount -t devpts pts dev/pts/
yeah it works and I successfully repaired initrams

Similar Messages

  • [SOLVED]Removed Syslinux by Accident Cannot Setup Dual Boot Win8/Arch

    by accident I removed initial sector and could not boot neither system. Now I`ve setup a grub where I can at least boot windows. I still have the config files from syslinux in:
    /dev/sdb5
    Grub and Syslinux are there. Before the removal I was using syslinux.
    Syslinux.conf holds the following contents:
    # Config file for Syslinux -
    # /boot/syslinux/syslinux.cfg
    # Comboot modules:
    # * menu.c32 - provides a text menu
    # * vesamenu.c32 - provides a graphical menu
    # * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
    # * hdt.c32 - hardware detection tool
    # * reboot.c32 - reboots the system
    # * poweroff.com - shutdown the system
    # To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
    # If /usr and /boot are on the same file system, symlink the files instead
    # of copying them.
    # If you do not use a menu, a 'boot:' prompt will be shown and the system
    # will boot automatically after 5 seconds.
    # Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
    # The wiki provides further configuration examples
    DEFAULT arch
    PROMPT 0 # Set to 1 if you always want to display the boot: prompt
    TIMEOUT 50
    # You can create syslinux keymaps with the keytab-lilo tool
    #KBDMAP de.ktl
    # Menu Configuration
    # Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux
    UI menu.c32
    #UI vesamenu.c32
    # Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
    MENU TITLE Arch Linux
    #MENU BACKGROUND splash.png
    MENU COLOR border 30;44 #40ffffff #a0000000 std
    MENU COLOR title 1;36;44 #9033ccff #a0000000 std
    MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
    MENU COLOR unsel 37;44 #50ffffff #a0000000 std
    MENU COLOR help 37;40 #c0ffffff #a0000000 std
    MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
    MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
    MENU COLOR msg07 37;40 #90ffffff #a0000000 std
    MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
    # boot sections follow
    # TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
    LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=UUID=8084cf06-452a-4e04-a89a-0f017461b727 ro quiet
    INITRD ../initramfs-linux.img
    LABEL archfallback
    MENU LABEL Arch Linux Fallback
    LINUX ../vmlinuz-linux
    APPEND root=UUID=8084cf06-452a-4e04-a89a-0f017461b727 ro
    INITRD ../initramfs-linux-fallback.img
    LABEL windows
    MENU LABEL Windows
    COM32 chain.c32
    APPEND hd0 1
    LABEL hdt
    MENU LABEL HDT (Hardware Detection Tool)
    COM32 hdt.c32
    LABEL reboot
    MENU LABEL Reboot
    COM32 reboot.c32
    LABEL off
    MENU LABEL Power Off
    COMBOOT poweroff.com
    Arch is located at /dev/sdb3
    I would like to recover it. Is it possible? At the momment. I have grub able to boot windows. Can I make the transition back to my old syslinux? If so how should I proceed?
    I also have grub in /dev/sdb3 where arch is located. How do I set /dev/sdb5 back to the "default" loader?
    UPDATE:
    Fixed with help of people in #arch at freenode.
    All I had to to was to run syslinux-install_update -iam /dev/sdb and it did rewrite my mbr.
    Regards,
    vfbsilva
    Last edited by vfbsilva (2013-08-05 18:58:23)

    Stop.
    Breathe.
    Read up on UEFI, EFI System Partitions, and EFI boot managers.
    avr wrote:
    WorMzy wrote:
    avr wrote:can I remove the 500 MB EFI partition and replace it with a new EFI System Partition?
    Why would you want to do this?
    Save space.
    This makes no sense.
    I heard the order of the partitions for booting on a UEFI system matters.
    It doesn't. Your ESP doesn't even need to be on the same disk as your OS.

  • [SOLVED] GRUB2 does not process hooks: System doesn't boot

    My initial system was an SSD where /dev/sda1 was my boot partition and /dev/sda2 was an (encrypted) LVM containing home, root, var and swap. Since all partitions were ext3, I decided to do a clean format to ext4 and copy my data back on the partitions. First I archived everything but home with the arch live CD onto a server with:
    rsync -a /mnt/* root@server:/path/to/backupdir/
    Everything went fine, but after copying back, the system would not boot (it was GRUB Legacy). Since it was not in the MBR but on sda1, I figured I could upgrade to GRUB2 now. So I followed the described procedure (from a live CD) and installed GRUB2 (this time into the MBR of sda. I then regenerated the image via mkinitcpio -p linux and generated a configuration file.
    When I try to start the system, GRUB2 gets loaded, but after the two messages for loading the ramdisk it remains silent for some time (no output at all) until it finally complains it cannot find my root. But I did not see any output of any hook being processed (including encrypt) so of course it cannot find my root, since it is still encrypted.
    I reformatted my boot partition again and reinstalled and regenerated everything again (I copied the directory contents from my backup but moved the old grub folder). Still the same issue. I know I could probably just reinstall everything and restore the settings, but I'd really prefer to restore my system, since this should be a lot faster.
    Here are the relevant configuration files:
    rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # LANG in /etc/locale.conf takes precedence
    # DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
    # startup and during the boot process. If set to 'no', the C locale is used.
    # HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # Note: Using "localtime" is discouraged, using "" makes hwclock fall back
    # to the value in /var/lib/hwclock/adjfile
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # Note: if unset, the value in /etc/localtime is used unchanged
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.UTF-8"
    DAEMON_LOCALE="no"
    HARDWARECLOCK="UTC"
    TIMEZONE="Europe/Berlin"
    KEYMAP="de-latin1-nodeadkeys"
    #CONSOLEFONT=
    #CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
    # Replace every !module by an entry as on the following line in a file in
    # /etc/modprobe.d:
    # blacklist module
    # See "man modprobe.conf" for details.
    MODULES=(acpi-cpufreq cpufreq_ondemand tun fuse vboxdrv)
    # Udev settle timeout (default to 30)
    UDEV_TIMEOUT=30
    # Scan for FakeRAID (dmraid) Volumes at startup
    USEDMRAID="no"
    # Scan for BTRFS volumes at startup
    USEBTRFS="no"
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="yes"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="archlaptop"
    # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
    # Wired network setup
    # - interface: name of device (required)
    # - address: IP address (leave blank for DHCP)
    # - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
    # - broadcast: broadcast address (ignored for DHCP) (optional)
    # - gateway: default route (ignored for DHCP)
    # Static IP example
    # interface=eth0
    # address=192.168.0.2
    # netmask=255.255.255.0
    # broadcast=192.168.0.255
    # gateway=192.168.0.1
    # DHCP example
    # interface=eth0
    # address=
    # netmask=
    # gateway=
    interface=wlan0
    address=
    netmask=
    broadcast=
    gateway=
    # Setting this to "yes" will skip network shutdown.
    # This is required if your root device is on NFS.
    NETWORK_PERSIST="no"
    # Enable these netcfg profiles at boot-up. These are useful if you happen to
    # need more advanced network features than the simple network service
    # supports, such as multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This requires the netcfg package
    NETWORKS=(FlosAP)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    # If you are sure nothing else touches your hardware clock (such as ntpd or
    # a dual-boot), you might want to enable 'hwclock'. Note that this will only
    # make a difference if the hwclock program has been calibrated correctly.
    # If you use a network filesystem you should enable 'netfs'.
    DAEMONS=(syslog-ng dbus acpid crond alsa networkmanager @bumblebeed laptop-mode !hwclock ntpd psd)
    mkinitcpio.conf
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run first, so it may be used to
    # override the actual binaries used in a given hook.
    # (Existing files are NOT overwritten if already added)
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    # Some users may wish to include modprobe.conf for custom module options
    # like so:
    # FILES="/etc/modprobe.d/modprobe.conf"
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect pata scsi sata filesystems"
    ## This is identical to the above, except the old ide subsystem is
    ## used for IDE devices instead of the new pata subsystem.
    # HOOKS="base udev autodetect ide scsi sata filesystems"
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev pata scsi sata usb filesystems"
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev pata mdadm encrypt filesystems"
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev usb lvm2 filesystems"
    HOOKS="base udev autodetect pata scsi sata keymap encrypt lvm2 resume filesystems usbinput"
    # COMPRESSION
    # Use this to compress the initramfs image. With kernels earlier than
    # 2.6.30, only gzip is supported, which is also the default. Newer kernels
    # support gzip, bzip2 and lzma. Kernels 2.6.38 and later support xz
    # compression.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    grub.cfg
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    set default="0"
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if loadfont unicode ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    set timeout=5
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-194e65d3-b357-430d-b4bb-67a8300d287d' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b69dee88-a8c9-4af7-a938-7ca6c8ff368c
    else
    search --no-floppy --fs-uuid --set=root b69dee88-a8c9-4af7-a938-7ca6c8ff368c
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=/dev/mapper/VolGroup00-root ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-194e65d3-b357-430d-b4bb-67a8300d287d' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 b69dee88-a8c9-4af7-a938-7ca6c8ff368c
    else
    search --no-floppy --fs-uuid --set=root b69dee88-a8c9-4af7-a938-7ca6c8ff368c
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=/dev/mapper/VolGroup00-root ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-fallback.img
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    ### END /etc/grub.d/20_memtest86+ ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    Thank you in advance. If you need any more information, please let me know.
    Regards,
    javex
    Last edited by javex (2012-08-10 18:33:41)

    Thank you for your reply. I looked further into the grub.cfg and removed the quiet part. Apparently the problem is that it runs all hooks but does not prompt me for a passphrase when running the encrypt hook. Why does this occur?
    Edit: I solved this: apparently I forgot to specify a cryptdevice. Since the article about dm-crypt does not talk about GRUB2, I missed that. I will rework that section to specify GRUB2 and GRUB-Legacy
    Last edited by javex (2012-08-10 18:33:22)

  • [SOLVED] Encrypt-Hook with LVM-on-Crypt fails to encrypt root part...

    Hi,
    I think that since the mkinitcpio (0.14.0-1) update (and the regeneration of the initramfs for my kernel) the encrypt hook doesn't work anymore. (At least for me)
    I have my root filesystem in a LVM, which physical volume is encrypted with luks.
    Here are my hooks from /etc/mkinitcpio.conf:
    HOOKS="base udev autodetect modconf block keyboard keymap encrypt lvm2 resume filesystems fsck shutdown"
    Output when I let it generate the initramfs:
    % mkinitcpio -p linux
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.9.7-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [keyboard]
    -> Running build hook: [keymap]
    -> Running build hook: [encrypt]
    -> Running build hook: [lvm2]
    -> Running build hook: [resume]
    -> Running build hook: [filesystems]
    -> Running build hook: [fsck]
    -> Running build hook: [shutdown]
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.9.7-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: bfa
    ==> WARNING: Possibly missing firmware for module: aic94xx
    -> Running build hook: [keyboard]
    -> Running build hook: [keymap]
    -> Running build hook: [encrypt]
    -> Running build hook: [lvm2]
    -> Running build hook: [resume]
    -> Running build hook: [filesystems]
    -> Running build hook: [fsck]
    -> Running build hook: [shutdown]
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    ==> Image generation successful
    But I am able to mount in manually within the emergency shell by executing:
    $ cryptsetup luksOpen /dev/sda3 system
    Enter passphrase for /dev/sda3:
    $ lvm vgscan
    Reading all physical volumes. This may take a while...
    Found volume group "vg_system" using metadata type lvm2
    $ lvm vgchange -ay
    3 logical volume(s) in volume group "vg_system" now active
    $ exit
    Last edited by PyroDevil (2013-06-29 11:14:35)

    Thanks for the link.
    mdias wrote:
    ok, I found a temporary workaround that seems to work for me,
    I edited the file /usr/lib/initcpio/hooks/lvm2 to add this:
    run_hook() {
    lvm pvscan --cache --activate ay
    Now, this will activate all lvm volumes regardless of lvm.conf, but it suits my needs for now.
    This solution didn't work for me.
    On boot time I was not asked to enter a password for the encrypted partition.
    That's the reason I thought it was the encryption hook.

  • [SOLVED] mkinicpio's systemd hook, LUKS, LVM and resume

    I had a working LUKS/LVM/resume using the following HOOKS and kernel parameters:
    # /etc/mkinitcpio.conf
    HOOKS="base udev autodetect modconf block keymap encrypt lvm2 btrfs resume filesystems keyboard"
    # /boot/loader/entries/arch.conf
    options cryptodevice=PARTUUID=28230c39-5262-4778-b12a-b5eda11831d0:lvm resume=/dev/mapper/vol0-lv_swap root=/dev/mapper/vol0-lv_root rw
    Since systemd 217 is supposed to support hiberation, I am trying to setup a pure systemd initrd image. So I changed my mkinitcpio.conf and arch.conf files to the following:
    # /etc/mkinitcpio.conf
    HOOKS="systemd autodetect modconf block keymap sd-encrypt sd-lvm2 btrfs filesystems keyboard"
    # /boot/loader/entries/arch.conf
    options rd.luks.uuid=176a3eb9-90c3-49c7-a0b5-697860d21068 resume=UUID=b89c478e-a1ff-4332-a11b-ceebc3b08de8 root=UUID=e180cd3e-d4c4-4e0a-9426-0f7e460a7303 rw
    The change in boot entry is done as suggested in this topic, since using cryptodevice doesn't seem to work. I only changed the resume/root to UUID since this seems to be the right way to do things (UUID is not supposed to change, while labels may change).
    And the system boots, but resume doesn't work (tried to run "systemctl hibernate" from terminal, the system hibernates but never resumes). I removed the resume hook since it doesn't seem to be necessary with systemd hook. Even if I put it again it doesn't work (it tries to run the resume hook, I can see the logs during the boot, but nothing changes). I think this is a problem in the root entry or resume entry in my boot parameters (maybe both), probably I need to change for some other think but I didn't find anything searching in Google.
    Maybe someone with a Fedora setup may help? The suggestion to use rd.luks.uuid instead of cryptsetup seems to come from there.
    Last edited by m45t3r (2014-11-29 22:30:13)

    I know this may seem like I am reviving an old topic, but recently I bought a SSD and tried to replicate my setup, including supporting for TRIM. While it's easy to do it's not something trivial since it's not really well docummented.
    You will need three things:
    A filesystem that supports discard (I am using XFS).
    In /etc/lvm/lvm.conf, enable issue_discards option.
    Lastly, add rd.luks.options=discard in your kernel boot options
    To test if everything is working as it should, just do:
    # fstrim /
    And if everything is working it should return 0, or a error message in case of error.
    Hope this help someone.

  • [SOLVED] Removing/replacing freetype2-infinitality

    Hello, I am trying to replace freetype2-infinality with freetype2-ubuntu and I am getting the following error:
    [darksector@arch freetype2-ubuntu]$ sudo pacman -U freetype2-ubuntu-2.4.10-1-x86_64.pkg.tar.xz
    loading packages...
    resolving dependencies...
    looking for inter-conflicts...
    :: freetype2-ubuntu and freetype2-infinality are in conflict (freetype2). Remove freetype2-infinality? [y/N] y
    error: failed to prepare transaction (could not satisfy dependencies)
    :: fontconfig-infinality: requires freetype2-infinality
    Can anyone tell me what am I doing wrong or haven't done something important? Appreciate it.
    Last edited by DarkSector (2012-07-27 16:00:14)

    DarkSector wrote:
    karol wrote:Please remember to mark the thread as solved.
    How do I do that? Sorry new to FluxBB and the forum.
    Please read The forum rules :-)

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

  • [SOLVED] LVM physical volume not available during early boot

    Note to self:
    Of course it's not available - it's in an encrypted LVM container!
    Hi,
    I'm trying to get myself a working hibernate but I'm stuck on resume hook not seeing my swap partition.
    The swap partition is on an LVM logical volume (LV) which is on one physical volume PV created on a different harddrive than the root partition is. During the bootup I get something similar to "ERROR: hibernation partition '/dev/mapper/volgrp-swap' not found".
    Further debugging gave out that for some reason the early userspace has no access to LVM physical volume. I managed to run a shell using break=premount boot parameter. From there I found out that "lvm pvscan" shows no physical volumes at all. I suspect that mkinitcpio does not give a damn about non-root harddrive though I was unable to confirm that and neither was I able to find any other reason for this behaviour.
    Relevant lines from mkinitcpio.conf:
    MODULES="dm_mod btrfs"
    HOOKS="base udev block lvm2 autodetect keyboard encrypt resume filesystems fsck"
    Any help would be appreciated, including any tips on where to get more debug data.
    cheers,
    -miky
    Last edited by mr.MikyMaus (2013-09-25 21:32:32)

    Fackamato wrote:
    Do you have the correct "root=" line in your bootloader's kernel line? Is it in fstab?
    Perhaps try with rootdelay=5 as well?
    Yes I have root=/dev/mapper/hdgroup0-volroot, and its in fstab (not that fstab is even being read)
    root delay wouldn't help at all because after it drops me to a busybox shell I can't do a manual mount.

  • White Macbook 2006 random shutdown solved removed cpu heatsink and more

    I picked up a cheap macbook from a secondhand retailer for $300 and it regularly shutdown, froze, restarted as well as the grey kernel panic screen completely random no real pattern. I set about trying to solve the problem swapping ram and hard drive with my identical 2006 macbook (which I had similar problems with last year, fixed that one with a new battery connector cable). The ram and hard drive made no difference so I downloaded istat menus to see if any combination of cpu voltage, current and temperature were causing the random shutdowns. It seemed when the temperature reached certain values the computer would shutdown or freeze(around 30 to 50 degrees). I'd read on other forums about faulty cpu temperature diodes so I reapplied heatsink compound to the cpu heatsink and checked all the wiring for shorts but nothing seemed to solve the problem. I was ready to retire the computer and use it for spares for my other macbook when needed but I pulled the keyboard off one more time and tried something completely radical. This fix requires some forward planning and software installation but it has completely solved my Random shutdowns completely.
    for instructions see my next post *Fix for random shutdowns white macbook*

    Ok this is not for the non technical person but it is quite a simple process with the right instructions.
    This first step is very important install the software coolbook($10) and fan control (Free)( not smc fan control). Set up coolbook to operate the cpu at the lowest speed and voltage for both power adapter and battery(1002MHz and .95Volts). Remove the keyboard to access the computer logic board (instructions can be found at iFixit). Remove the four screws and two connectors holding the heatsink to the logicboard and gently lift the heatsink out (very important that you leave the fan screwed in and connected). Close the computer back up if you wish to test just gently connect the keyboard and loosly sit the keyboard back in. Restart and reset the pram immediately. Let the computer boot up and then open system preferences and configure Fan Control to your liking. So far no random shutdowns for over a week (was getting many a day previously.

  • [SOLVED] Remove / Uninstall 'supersonic' AUR package

    Hi guys, I am setting up a home server which will have OwnCloud and some music streaming with Subsonic.
    I read that Supersonic was a fork of Subsonic and was available on AUR so I installed that - though I cannot seem to get it to work, it starts OK but I cannot browse to MYHOMEURL:4040.
    Anyways, I am now gonna install the actual subsonic from AUR but I cannot seem to uninstall supersonic using pacman.
    Pacman -Rsnc supersonic
    ...returns 'error: target not found: supersonic'
    This is my first time using Arch and of course AUR so I cannot see how to remove this package.
    Last edited by kaipee (2012-07-11 19:32:59)

    kaipee wrote:
    Aah, right thanks Inxsible.
    Turns out it was 'supersonic-git'
    this forum needs a thanks button
    Don't forget to mark thread as [SOLVED]

  • [solved]remove backslashes from file names?

    Hi!
    I have a lot of files that contain backslashes in file name, spread over many many folders.
    How do I remove that character from all file names? The approaches / scripts / programs I usually work with can't handle the invalid file names (e.g. loose the '\' and then 'cant stat()' -.-").
    Thanks!
    edit: Argh... now I've got copies of half of the files without the "\" in the same folders, because copying did work on most but deleting only on some... also multiple \\\ because I messed up one sed line. and "echo" failed to warn me about the result, just dropping a few \ while mv didn't... or something. So confused.
    Last edited by whoops (2011-02-22 00:22:58)

    sisco311 wrote:#!/usr/bin/env bash
    while IFS= read -rd '' file; do
    dirname="${file%/*}"
    basename="${file##*/}"
    mv --backup=numbered -- "${file}" "${dirname}/${basename//\\/_}"
    done < <(find /full/path/to/dir -depth -name '*\\*' -print0)
    Thanks, that did it!
    Don't know what exactly I've been doing wrong, but it seems not to happen any more since I try to do stuff with "while, read, ${}"  instead of "for, $(), echo, sed"
    pulce wrote:Not sure that's the point, but backslash is an escape
    Yes, I know, that was the problem. That's why those stupid things always keep either disappearing or multiplying - I guess I just suck at keeping track of what program handles them which way and depending on what.
    Last edited by whoops (2011-02-22 00:15:30)

  • [SOLVED] Removing systemctl service trouble

    Hello
    During installation I followed the instructions below:
    cd /etc/netctl
    cp examples/wireless-wpa my-network
    to create a config for my wireless network. The problem I have now is that I have since renamed that file to not include the "-" character, but the systemctl unit remains:
    netctl@my\x2dnetwork.service enabled
    I would like to remove it. However, running
    systemctl disable netctl@my\x2dnetwork.service
    Does not work. Its still there, listed as active. Running
    systemctl disable [email protected]
    Does not work either. How can I get rid of it?
    Last edited by khoma (2015-05-17 10:49:37)

    khoma wrote:
    I would like to remove it. However, running
    systemctl disable netctl@my\x2dnetwork.service
    Does not work. Its still there, listed as active.
    "does not work"? What happened, what was the output? systemctl tells you when it removes symlinks, but if the service is not enabled, it will do nothing. And disable does not stop the service, so it should be no surprise that it is still active. What would be interesting is whether is it also still listed as "enabled".
    I think systemctl didn't output anything and the service is indeed still enabled, because when you use a shell to run that command, you need to prevent the shell from treating the backslash as an escape character, otherwise you're disabling the service named "[email protected]" and that one was never enabled in the first place. Escape the backslash using another backslash (my\\x2dnetwork) or put single quotes around in.

  • [solved]Removing applet from kdemod [my bad]

    Well I had a clean install of KDE mod, tried to install xfce, then E, rebooted broke X, tried to troubleshoot, gave up reinstalled, messed that up, next day, reinstalled again.....
    Went back to kde mod for now, but I have a question.
    While trying to add an application to the panel, I accidentally added an applet "System monitor". How in the heck do I remove it, as it isn't nearly as informative as conky, or anything else for that matter...
    Right clicking  and removing isn't there, when I right click on it.
    Thanks in advance, and btw I think I may have learned a thing or two during the last two re-installs, lol.
    Last edited by dunc4n (2008-03-14 07:34:37)

    It would have been nice if you wrote how you solved the problem: this way it will be a reference for future users with the same issue.
    futureguy "Cool, this guy had my same problem, let's see how he solved it!"
    you "Nevermind, I solved it!"
    futureguy "Damn!"
    Even if this was a trivial problem (as you probably forgot to unlock the panel), you can't really say.
    Last edited by carlocci (2008-03-14 16:13:53)

  • [solved] Removing midori and local data

    Hi all,
    I am trying to clear my browsing data from midori, but I cannot seem to get rid of some autosuggestions in the location bar. (I believe the suggestions are all of past bookmarks.)
    So I tried reinstalling midori, but the data remained.
    Is there a way to use pacman to completely remove midori? Alternatively, does someone know where such data is stored locally so I can delete it?
    Cheers
    Last edited by ianhoolihan (2012-02-03 02:34:12)

    bernarcher wrote:There are two places where Midori keeps local information. One is ~/.config/midori and the other ~/.local/share/midori. You can remove them altogether or edit some of the files there.
    Thanks guys. I deleted the information, but accidentally deleted the bookmarks I wished to keep!
    Such is life,
    Ianhoolihan

  • [Solved] Removing multiple entries from grub

    Hi
    There are many entries in my arch's grub boot loader:
    Arch Linux pkg-linux kernel
    *Arch Linux pkg-linux kernel (fallback initramfs)
    Arch Linux
    Advanced options for Arch Linux
    Linux Mint 15
    Advanaced options for Linux Mint 15
    Microsoft Windows 7 Professional
    But I also want to keep following three entries:
    Arch Linux
    Linux Mint 15
    Microsoft Windows 7 Professional
    How can I remove remaining entries from grub menu?
    Regards
    Last edited by zetrotrack000 (2014-03-11 20:01:45)

    Grub2 menu entries are created by a set of scripts in /etc/grub.d
    Your first 2 entries are standard for arch and are generated by the 10_archlinux script. The 10_archlinux script is distributed by arch. It exists because the standard 10_linux script does not always create reliable menu entries for arch.
    Your other linux entries are generated by the 10_linux script which is distributed by grub upstream.
    Your windows entry is generated by the os-prober script. That can just be left alone.
    To sort out the redundant linux entries you could try disabling either of the linux scripts and regenerating the menu.
    Alternatively, you could disable both linux scripts and define your menu entries manually in the 40_custom script. The syntax for custom menu entries is similar to that of grub legacy. See the grub wiki article for info.
    Hope this helps!
    Last edited by Chazza (2014-03-10 22:45:18)

Maybe you are looking for