6 posts in this topic

Posted (edited)

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:

[code]
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>

[/code]

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


[b]EDIT[/b]
The error given during the chrooted pacman -Syu is as follows:
[code]
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
[/code] Edited by sean.ferguson

Share this post


Link to post
Share on other sites

Posted

Have you tried to append "single" to the end of the Syslinux or GRUB boot file? Should let you log right in to root.

Share this post


Link to post
Share on other sites

Posted

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*

Share this post


Link to post
Share on other sites

Posted

[quote name='sean.ferguson' timestamp='1370723590' post='595745286']
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*
[/quote]
Get used to it, you'll have that happen a few times a year with arch.

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

[quote name='sean.ferguson' timestamp='1370723590' post='595745286']
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*
[/quote]

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 [i]should be[/i] 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...

[quote name='sean.ferguson' timestamp='1370629933' post='595743526']
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.
[/quote]

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

[quote name='sean.ferguson' timestamp='1370629933' post='595743526']
[code]
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>

[/code]

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

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

[code]
pacman -Syu --ignore filesystem,bash
pacman -S bash
pacman -Su
[/code]

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.

[quote name='sean.ferguson' timestamp='1370629933' post='595743526']
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


[b]EDIT[/b]
The error given during the chrooted pacman -Syu is as follows:
[code]
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
[/code]
[/quote]

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

[code]
# 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
[/code]

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

Hope this helps :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.