You are not logged in.

#1 2012-05-05 19:55:29

boast
Member
Registered: 2010-09-28
Posts: 219

[SOLVED] Need help fixing my broken system

errors following wiki 'change root'. I followed everything step by step until i reach

chroot . /bin/bash

in which I get

chroot: failed to run command '/bin/bash' : No such file or directory

Last edited by boast (2012-05-06 16:12:40)


Asus M4A785TD-V ;; Phenom II X4 @ 3.9GHz ;; Ripjaws 12GB DDR3-1600 ;; 128GB Samsung 830 ;; MSI GTX460 v2 w/ blob ;; Arch Linux + KDE 4.x

Offline

#2 2012-05-05 20:35:47

prasinoulhs
Member
From: Greece
Registered: 2011-10-30
Posts: 53

Re: [SOLVED] Need help fixing my broken system

Are you in the the right directory (i.e the directory where is the system you want to chroot in)? What's the output of pwd and ls. Did try to do this

chroot .

what is the result?

Offline

#3 2012-05-05 20:47:25

boast
Member
Registered: 2010-09-28
Posts: 219

Re: [SOLVED] Need help fixing my broken system

prasinoulhs wrote:

Are you in the the right directory (i.e the directory where is the system you want to chroot in)? What's the output of pwd and ls. Did try to do this

chroot .

what is the result?

 pwd: /mnt/arch
ls: dev home lib64 mnt opt run srv tmp var boot etc media mtab proc sbin sys usr

also tried

chroot .

with the same result

Last edited by boast (2012-05-05 20:56:41)


Asus M4A785TD-V ;; Phenom II X4 @ 3.9GHz ;; Ripjaws 12GB DDR3-1600 ;; 128GB Samsung 830 ;; MSI GTX460 v2 w/ blob ;; Arch Linux + KDE 4.x

Offline

#4 2012-05-05 22:01:03

guelfi
Member
From: /home/guelfi
Registered: 2011-07-01
Posts: 111

Re: [SOLVED] Need help fixing my broken system

Apparently, the directory you're trying to chroot in doesn't have a /bin folder, so executing /bin/bash obviously fails.

Offline

#5 2012-05-05 22:04:45

boast
Member
Registered: 2010-09-28
Posts: 219

Re: [SOLVED] Need help fixing my broken system

guelfi wrote:

Apparently, the directory you're trying to chroot in doesn't have a /bin folder, so executing /bin/bash obviously fails.

but its my standard arch install partition. I'm trying to fix it after a system upgrade issue.


Asus M4A785TD-V ;; Phenom II X4 @ 3.9GHz ;; Ripjaws 12GB DDR3-1600 ;; 128GB Samsung 830 ;; MSI GTX460 v2 w/ blob ;; Arch Linux + KDE 4.x

Offline

#6 2012-05-05 22:22:39

guelfi
Member
From: /home/guelfi
Registered: 2011-07-01
Posts: 111

Re: [SOLVED] Need help fixing my broken system

Well, seems like your issue is a missing /bin folder. I'd suggest that you reinstall all packages that put something into /bin (most notably, bash and coreutils) from some live medium using pacman's --root and --cachedir switches.

Offline

#7 2012-05-06 00:35:57

boast
Member
Registered: 2010-09-28
Posts: 219

Re: [SOLVED] Need help fixing my broken system

So i deleted the libs and bin folder, and then copied it from the livecd. Then I used pacman to reinstall the all the packages I had installed.

But I have issues with booting with an error stating that "blkid_2.20" and "glibc_2.15" is not found. But in chroot I can use commands like 'mount' fine.

edit; ok fixed that by remaking the image. but now I get

fsck.ext4: symbol lookup error: fsck.ext4: undefined symbol: set_com_err_gettext

Last edited by boast (2012-05-06 01:30:12)


Asus M4A785TD-V ;; Phenom II X4 @ 3.9GHz ;; Ripjaws 12GB DDR3-1600 ;; 128GB Samsung 830 ;; MSI GTX460 v2 w/ blob ;; Arch Linux + KDE 4.x

Offline

#8 2012-05-06 09:41:42

guelfi
Member
From: /home/guelfi
Registered: 2011-07-01
Posts: 111

Re: [SOLVED] Need help fixing my broken system

Why did you copy them from the live CD when you just could have installed them with pacman? Now it seems that you managed to screwup the versions of the libraries. Try to update your system in the chroot.

Also, why did you delete your /bin and /lib folders?

Last edited by guelfi (2012-05-06 09:42:23)

Offline

#9 2012-05-06 13:11:16

boast
Member
Registered: 2010-09-28
Posts: 219

Re: [SOLVED] Need help fixing my broken system

guelfi wrote:

Try to update your system in the chroot.

Pacman says everything is up to date. I've reinstalled all packages like 3 times.

Also, why did you delete your /bin and /lib folders?

I don't know why, but my /bin never existed. And I accidentally removed the lib. But by replacing both with the one from the live cd I finally got chroot to work.


edit: fixed it by deleting fsck.ext4 which existed in /sbin/ and reinstalling util-linux and now it boots. But how can i figure out what other things I have to delete

edit2: used the pacman wiki for "Identify files not owned by any package"

Last edited by boast (2012-05-06 16:13:24)


Asus M4A785TD-V ;; Phenom II X4 @ 3.9GHz ;; Ripjaws 12GB DDR3-1600 ;; 128GB Samsung 830 ;; MSI GTX460 v2 w/ blob ;; Arch Linux + KDE 4.x

Offline

#10 2012-05-06 15:23:57

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] Need help fixing my broken system

why do you have to keep deleting stuff? what did you do to your system to have so much breakage?

Instead of copying stuff from the live cd you can use  `pacman -r` from the live environment.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB