Skip to content

29 comments

When my HDD was shot and the computer wouldn't boot properly, the shell told me "We're bailing out. You're on your own."

EDIT: I just looked up exactly what it said (I took a picture), the real quote was: "Bailing out, you are on your own. Good luck."

The good luck was a nice touch at least.

37 points

they sure know how to cheer people up! :D

7 points
unknown author1 hidden

Honestly as a new linux user, that would be a pretty good motivator for me to try and fix instead of just reformatting.

6 points

Haha, well in my case, the problem was that my hard drive was broken and needed to be replaced, so there wasn't much I could have done to fix it :)

2 points

Did you follow the instructions on Arch Linux News about upgrading filesystem?

35 points

Is there a way to have a local copy of it on your file system that you can manually update or something? Like /usr/ports/UPDATING on FreeBSD?

3 points

Oh shit. I manually deleted those files and it replaced them just fine. Think I broke anything? lol

2 points

Are you sure yuo chroot into your arch install correctly? Consult https://wiki.archlinux.org/index.php/Change_Root it's best resource you can get for archlinux.

Proper way to chroot:

The device or partition with the Linux system on it will need to be mounted. To discover the kernel name of the storage device name, type:

fdisk -l

Create a directory where you would like to mount the device or partition, then mount it:

mkdir /mnt/arch

mount /dev/<device-or-partition-name> /mnt/arch

Mount the temporary filesystems:

cd /mnt/arch

mount -t proc proc proc/

mount -t sysfs sys sys/

mount -o bind /dev dev/

Mount other parts of your filesystem (e.g. /boot, /var, /usr...) that reside on separate partitions but which you need access to. For example:

mount /dev/<device-or-partition-name> boot/

It's possible to mount filesystems after you've chrooted, but it's more convenient to do so beforehand. The reasoning for this is you'll have to unmount the temporary filesystems after you exit a chroot so this lets you umount all the filesystems in a single command. This also allows a safer shutdown. Because the external Linux environment knows all mounted partitions it can safely unmount them during shutdown.

If you've setup your network and want to use it in the chroot environment, copy over your DNS servers so that you will be connected to the network:

cp -L /etc/resolv.conf etc/resolv.conf

Now chroot to your installed device or partition and define your shell:

chroot . /bin/bash

If you see the error, "chroot: cannot run command '/bin/bash': Exec format error" it is likely the two architectures do not match.

If you'll be doing anything with GRUB inside the chroot environment, you'll need to be sure your /etc/mtab is up-to-date:

grep -v rootfs /proc/mounts > /etc/mtab

If you use bash, your root $HOME/.bashrc will be sourced on login provided your ~/.bash_profile specifies it (source ~/.bashrc). To source your chrooted, global bash configuration do:

source /etc/profile

If your bash configuration doesn't use a unique prompt, consider creating one to be able to differentiate your chroot environment:

export PS1="(chroot) $PS1"

22 points

Something went wrong when upgrading the linux package and after rebooting the machine I got in the recovery console. So I decided to reinstall the package via pacman LiveCD and I got this.

Any ideas how to install it properly?

UPDATE: after chrooting the proper way, the install went fine! Thanks for your help anyway guys :)

15 points

Did you try and upgrade the packages linux and filesystem at the same time?

What happens if you type "mount /boot". Do you know what block device name your boot drive is usually on?

Can you cat /etc/fstab?

Are you on the #archlinux on freenode?

7 points

the heart-warming message problem was fixed by reading the wiki & chrooting the proper way.

But reinstalling linux (and filesystem) didn't solve my problems. When booting from hard disk, arch couldn't find /lib/modules/3.1.6-1-ARCH/modules.dep (it is present when checking from liveCD) and root partition (also present when checking from liveCD).

5 points
unknown author

Deleted before we saved it.

1 points
 ______________________________________
/ You probably just broke your system. \
\ Congratulations.                     /
 --------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Credit: cowsay

14 points

< I'm your system. This is you. Thanks. >

    \                _
     \              (_)
      \   ^__^       / \
       \  (oo)\_____/_\ \
          (__)\       ) /
              ||----w ((
              ||     ||>> 
8 points
unknown author

Deleted before we saved it.

1 points

This is why you always look at the recent news on the Arch Linux website before performing a system update. The recent upgrade to filesystem breaks mtab.

6 points
unknown author

RSS to that bitch.

3 points

They've added a warning for this? I changed my /boot to not be auto-mounted and had a whole bunch of errors because pacman didn't realise this and so just installed things into the boot folder on my root partition.

5 points

pacman sounds pretty smart.

Yeah, ask me if I really want to install some packages I clearly just fucking asked for, but pretend you can't read an fstab and make sure /boot is mounted when it comes time to upgrade da kernel.

2 points
unknown author

Don't worry, 'pacman -U /var/cache/pacman/pkg/linux-3.1.5-1-x86_64.pkg.tar.xz' fixes this if your system doesn't start up.

2 points

Don't feel bad. I got that message (reasonably so) because my /boot partition got corrupt!

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.