You are not logged in.

#1 2010-02-13 02:21:54

donpicoro
Member
Registered: 2009-04-10
Posts: 42

slackware chroot[Solved]

I have an Arch x86_64 installation in my laptop. For some reasons I need to have an old slackware (x86) installation around. In my laptop I manage to chroot to that slackware installation without a hassle.

This week a brand new, shinny, allmighty server arrived here and I installed Arch x86_64 in it as well.
I still need to run that stupid slackware chroot thingy and I'd love to do it in the new server. The thing is that It's not working.

I have the following setup:
The rc.local file is supposed to mount properly the filesystems:

# Slackware IA32 Emulation
/bin/mount -t proc none /home/chroot/slack32/proc
/bin/mount -t sysfs none /home/chroot/slack32/sys
/bin/mount -o bind /dev /home/chroot/slack32/dev
/bin/mount /home /home/chroot/slack32/home
/bin/mount /tmp /home/chroot/slack32/tmp

and I copied the files:

/etc/{hosts,fstab,group,passwd,shadow,resolv.conf}

from the host to the chroot environment.

I do not know why or how this work in my laptop and not in the new server. I keep getting the following error:

chroot: failed to run command `/bin/bash': Input/output error

and it's the same error with every command I place there.

My only guess it's that it isn't working because the new arch box lacks of any lib32-* library.
My first guess it that I need at least lib32-readline. But I do not want to guess.

Any thoughts? Is there any way I can find out which libraries are needed to perform this task?
Thanks in advance. I really would like to take this baby for a spin!!!

Last edited by donpicoro (2010-02-15 12:21:40)

Offline

#2 2010-02-13 15:59:01

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: slackware chroot[Solved]

Shouldn't it be mount --bind on {dev,proc,sys,tmp} ?

At least I use --bind to mount those on my centos chroot here and so far it works perfectly, something like this:

mount --bind /proc /extra/centos/proc
mount --bind /proc/bus/usb /extra/centos/proc/bus/usb
mount --bind /dev /extra/centos/dev
mount --bind /dev/pts /extra/centos/dev/pts
mount --bind /dev/shm /extra/centos/dev/shm
mount --bind /sys /extra/centos/sys
mount --bind /tmp /extra/centos/tmp
mount --bind /extra/soft /extra/centos/soft
mount --bind /home/centos_chroot /extra/centos/home

R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2010-02-13 16:56:49

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: slackware chroot[Solved]

I think sysfs should be

mount -t sysfs sys /mountpoint/sys

?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2010-02-13 17:59:41

donpicoro
Member
Registered: 2009-04-10
Posts: 42

Re: slackware chroot[Solved]

None of your options gave me different results.
The thing is that It works like a charm in my laptop sad
and that it's why this is so annoying.
That is why my first guess is the lack of lib32-* packages

@R00KIE
Do you have any lib32-* packages installed? I have a bunch of them in my laptop and I really do not want to install them all in the server just to do the try

Offline

#5 2010-02-14 15:52:33

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: slackware chroot[Solved]

donpicoro wrote:

@R00KIE
Do you have any lib32-* packages installed? I have a bunch of them in my laptop and I really do not want to install them all in the server just to do the try

Yes I have some lib32-* stuff installed but that shouldn't matter I guess, programs will use the lib32 stuff and directory structure from inside the chroot, that's the whole point of having the centos chroot for me, no hassle in running apps expecting to find the libs and directory structure of red had.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#6 2010-02-15 12:20:35

donpicoro
Member
Registered: 2009-04-10
Posts: 42

Re: slackware chroot[Solved]

You're right about the lib32-* libraries. There is no need for any of those libraries.
I just was wondering that I might need something regarding IA32 emulation. You see, I installed this Slackware chroot back them when I was a Bluewhite64 user (http://www.bluewhite64.com/e107_plugins … ic.php?565).

Anyhow, I just got this solved. It turned out to be a great permissions misunderstanding between my laptop and the new server.

Thanks for your help anyway guys.
In case that anyone is wondering, I used

rsync -avhl

instead of scp to copy the file between my laptop and the new server and the permission problems were solved !!!

Edit:typo

Last edited by donpicoro (2010-02-15 12:23:12)

Offline

Board footer

Powered by FluxBB