You are not logged in.
Pages: 1
errors following wiki 'change root'. I followed everything step by step until i reach
chroot . /bin/bashin which I get
chroot: failed to run command '/bin/bash' : No such file or directoryLast 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
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
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/archls: dev home lib64 mnt opt run srv tmp var boot etc media mtab proc sbin sys usralso 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
Apparently, the directory you're trying to chroot in doesn't have a /bin folder, so executing /bin/bash obviously fails.
Offline
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
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
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_gettextLast 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
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
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
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
Pages: 1