[Arch] Wont boot / Stuck in loop cant login


Recommended Posts

Hi guys,

Ive been using arch for approx 6 months as a primary system (total linux experience starts from the early mandrake and slackware days), i love everything about it: the rolling release and bleeding edge software and i cant forget the package management! However it seems like i have perhaps broke something.

I run arch on both my desktop and eeePC 701 (which im writing on just now), my desktop runs xfce4.10 with SLiM login. I use dwm on my eeepc (repo version not abs).

I decided to run DWM on my desktop because quite frankly i think it is a great window manager. I followed the wiki to install via abs and then recompiled after i changed the "tabs" names to 'www' 'mail' 'term' and 'misc' - I recompiled using the instructions on the wiki, killed dmw and restarted to confirm changes and all was well.

This is where the newbish ways started and this is where i think i have killed my system. As root i issued 'reboot' and it sat for approx 10 mins at which point i think it must of hung up. I ctrl+C and it cancelled the command fine, tried issuing 'reboot' again and same thing happened, hung up. With a lack of patience i have hit the hardware reset button on my tower and upon forced reboot I am met with this:

Failed to mount debug file system
Failed to mount POSIX message queue file system
Failed to mount huge pages file system
Failed to mount configuration file system
Failed to mount temporary directory

<loop>
Welcome to emergancy mode! after logging in , type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode"

systemd-remount-fs[310]: failed to execute /bin/mount: no such file or direcotry.
systemd-remount-fs[301]: /bin/mount for / exited with exit status 1.

Welcome to emergancy mode! after logging in , type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode"

systemd-fsck[343]: fsck failed with error code 8
systemd-remount-fs[...]: /bin/mount for / exited with exit status 1.
systemd-random-seed[...]: Failed to write new random seed file: Bad file descriptor
</loop>

It loops like this continually, i don't actually get to the login prompt. I have tried booting from a bootable arch usb drive, i can mount my / , /home points fine and my data is there. I have tried chrooting (mounting / to /mnt/arch and running pacman -Syy && pacman -Syu which gives an error and does not install the upgrade. I have tried pacman -S udev / linux and also tried the mkinitcpio -p linux command.

I don't want to loose my data, and would prefer to avoid reinstalling arch. Can anyone add a little insight into this problem as what i find via archlinux wiki and google doesnt seem to be helping or resolving the issue at least - perhaps im not looking at in the right area ofcourse.

Thanks in advance,

-Sean

EDIT

The error given during the chrooted pacman -Syu is as follows:

error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occured, no packages were upgraded

Edited by sean.ferguson

this is all related to the archlinux change in filesystem. I have followed the instruction on arch page, but still doesnt get anywhere. Ended up booting from install media, chrooting and fixing the install that way via pacman.

Something does seem a miss with this change however, something to look out for if you havent upgraded with pacman Syu recently. *facepalm*

this is all related to the archlinux change in filesystem. I have followed the instruction on arch page, but still doesnt get anywhere. Ended up booting from install media, chrooting and fixing the install that way via pacman.

Something does seem a miss with this change however, something to look out for if you havent upgraded with pacman Syu recently. *facepalm*

Get used to it, you'll have that happen a few times a year with arch.

n_K - the problem is more than likely human error on my part. Doing the upgrade on my eeePC701 running arch was a breeze after ensuring I was aware of all the changes. The total time fixing things from the arch-chroot environment was no longer than 20 mins, not all that bad really.

this is all related to the archlinux change in filesystem. I have followed the instruction on arch page, but still doesnt get anywhere. Ended up booting from install media, chrooting and fixing the install that way via pacman.

Something does seem a miss with this change however, something to look out for if you havent upgraded with pacman Syu recently. *facepalm*

Yeah I've suffered with this update on both my laptop and my desktop (the systemd change only bit me in the arse on my desktop). Arch core upgrades are a bit of a pain in the arse when they happen. Since they're a "rolling release" distro, the idea should be that regular "pacman -Syu" runs should just work, but alas, this is rarely the case. This is less prominent on other distros because the core upgrades usually come in one single giant upgrade, whereas this isn't the case for Arch.

Anyway, I can't say I've encountered your problem, but I'll help where I can...

Hi guys,

Ive been using arch for approx 6 months as a primary system (total linux experience starts from the early mandrake and slackware days), i love everything about it: the rolling release and bleeding edge software and i cant forget the package management! However it seems like i have perhaps broke something.

As you said, this is the filesystem upgrade. They've merged all of /bin, /sbin and /usr/sbin into the /usr/bin directory, and it looks like something went awry for you. (In my case, I had to upgrade my bootloader, which was about as much fun as it sounds).

Failed to mount debug file system
Failed to mount POSIX message queue file system
Failed to mount huge pages file system
Failed to mount configuration file system
Failed to mount temporary directory

<loop>
Welcome to emergancy mode! after logging in , type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode"

systemd-remount-fs[310]: failed to execute /bin/mount: no such file or direcotry.
systemd-remount-fs[301]: /bin/mount for / exited with exit status 1.

Welcome to emergancy mode! after logging in , type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode"

systemd-fsck[343]: fsck failed with error code 8
systemd-remount-fs[...]: /bin/mount for / exited with exit status 1.
systemd-random-seed[...]: Failed to write new random seed file: Bad file descriptor
</loop>

It loops like this continually, i don't actually get to the login prompt.

Did you --force the upgrade, or ignore dependency checks? Sounds like the filesystem upgrade may been forced through without doing everything else first, although I think pacman still wouldn't allow it in this case, even if forced.

The upgrade should have been run as...

pacman -Syu --ignore filesystem,bash
pacman -S bash
pacman -Su

Now this command trio is somewhat risky IMO, as failure at any step could be catastrophic, but that's what I ran, and this is how I did it for my laptop, and it broke with an unrelated error :p. If you forced the filesystem change, you might have a problem and you'll probably need to reinstall the core utilities (this sounds likely anyway if mount couldn't be found). You might get lucky if you just do pacman -Su from the install media.

I have tried booting from a bootable arch usb drive, i can mount my / , /home points fine and my data is there. I have tried chrooting (mounting / to /mnt/arch and running pacman -Syy && pacman -Syu which gives an error and does not install the upgrade. I have tried pacman -S udev / linux and also tried the mkinitcpio -p linux command.

I don't want to loose my data, and would prefer to avoid reinstalling arch. Can anyone add a little insight into this problem as what i find via archlinux wiki and google doesnt seem to be helping or resolving the issue at least - perhaps im not looking at in the right area ofcourse.

Thanks in advance,

-Sean

EDIT

The error given during the chrooted pacman -Syu is as follows:

error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occured, no packages were upgraded

The errors your seeing is because you haven't quite mounted everything, although they don't mention this on the Arch site as far as I could see. When mounting your file systems, you need to do a couple of extra mounts...

# Mount the filesystems as you have been doing into /mnt/arch...
# ... then...
mount --bind /dev /mnt/arch/dev
mount --bind /proc /mnt/arch/proc
mount --bind /run /mnt/arch/run
mount --bind /sys /mnt/arch/sys

Then, assuming your networking is up and running, you can chmod and pacman should work fine.

Hope this helps :)

This topic is now closed to further replies.
  • Posts

    • Astra 0.6.1 Beta by Razvan Serea Astra is an audiophile music player designed for local music libraries, supporting MP3, FLAC, WAV, AAC, OGG, M4A, OPUS, WMA, AIFF, and more via FFmpeg. It offers gapless playback with pre-buffering, multichannel audio remapping, and Dolby Atmos decoding, ensuring albums play seamlessly while maintaining high-fidelity sound. Astra features real-time DSP visualizers powered by a native C++ engine, including an oscilloscope, spectrum analyzer, and vectorscope. A fully parametric 10-band EQ with live frequency response, built-in presets, and AutoEQ headphone calibration import lets you precisely shape your sound. Playback controls include shuffle, repeat, and drag-and-drop queue management, while the library automatically extracts metadata, album artwork, and supports global search, favorites, and recently played tracking. Additional features include output device selection, delay calibration, customizable themes, fullscreen and mini-player modes, Discord Rich Presence, optional Last.fm scrobbling, and an opt-in local API for integrations. Astra delivers a complete, high-quality desktop audio experience with no telemetry, accounts, or streaming. Astra 0.6.1 Beta changelog: Lyrics Initial XLRC support via @boof2015/xlrc 0.2.0 (#131) XLRC sidecar scanning, manual import, and renderer support Word timing, furigana, translations, voice labels, and translation-priority controls for XLRC Fullscreen lyrics overhaul with additional layout polish Manual lyrics editor with LRC, XLRC, and plain-text modes Drag-and-drop lyrics import plus sync offset controls Clickable synced lyrics for seeking, with popout and transport lyrics updates (#138) Fixed lyrics info sidebar scrolling (#138) Added a workaround for LRCLIB instability Metadata & Library Metadata editor rebuilt as a side panel Virtual DB metadata overrides and optional direct file tag writing Bulk metadata editing for title, artist, album, album artist, genre, year, track/disc numbers, and artwork Undo/redo support for virtual metadata edits Clear overrides action and default save-mode preference Artist page grid view added, with later design and sizing refinements Improved Jump to Playing with smart source, queue, album, artist, and library track targets Fixed smart source jump behavior Playlists Fixed VLC-style M3U import failures (#127) Added playlist export to M3U/M3U8 (#118) Improved imported playlist path resolution and missing-entry preservation Shuffle added to playlist pages (#121) Remove tracks directly from playlist views (#128) Fixed create-playlist-from-track modal closing when clicking inside it (#137) Multi-select quality-of-life fixes Right-click context menus no longer clear multiselections UI & Navigation Fixed UI scaling regressions in sidebar and home surfaces (#122, #123) Fixed transport bar regression (#126) Fixed horizontal scrolling on Home and Library rails Fixed artist grid sizing while searching Updated playlist action buttons and related layout polish Additional fullscreen lyrics visual adjustments Visualization Scopes and visualizers now respect UI scaling settings (#155) Added shared canvas sizing logic for correct DPR/backing-store behavior Canvas sizing tests added for visualizer scaling regressions Discord RPC Discord Rich Presence activity structure refactored Compact status can prioritize title or artist Profile info line can show file info or album Title and artist links can target YouTube Music, Last.fm, or be disabled Optional small Astra badge for cover-art presence Configurable “clear when paused” timing Added Discord activity tests Scrobbling Fixed custom Last.fm2 API profiles being accidentally blocked Expanded scrobbler profile protocol handling coverage Stability & Tests Added/expanded tests for XLRC parsing, lyrics presentation, metadata editor state, playlist import/export path handling, artist grid layout, horizontal scrolling, canvas sizing, and Discord RPC activity building Download: Astra 0.6.1 Beta | 138.0 MB (Open Source) View: Astra Home Page | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • How does it compare to the "SeeStar S30 Pro" and the "Vespera PRO 2"?
    • Indeed. And note that those units are MUCH cheaper than this new Steam Machine...ahem.
    • Microsoft have found a way to convert RAM and SSDs into water.
  • Recent Achievements

    • Week One Done
      Almohandis earned a badge
      Week One Done
    • Rookie
      dorf went up a rank
      Rookie
    • First Post
      mike_rumble earned a badge
      First Post
    • Dedicated
      tuben earned a badge
      Dedicated
    • Week One Done
      mnsgroup earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      501
    2. 2
      +Edouard
      209
    3. 3
      PsYcHoKiLLa
      100
    4. 4
      Michael Scrip
      84
    5. 5
      neufuse
      69
  • Tell a friend

    Love Neowin? Tell a friend!