View Single Post
XL1200c's Avatar
Posts: 56 | Thanked: 5 times | Joined on Oct 2007
#65
I get the same weather it's munted or not

Code:
/home/user # debian
Setting up the chroot...
': No such file or directorytfs/lib/modules/2.6.21-omap1/mbcache.ko
': No such file or directorytfs/lib/modules/2.6.21-omap1/ext2.ko
 failedmounting /dev/mmcblk0p2 on /opt
 failedmounting /dev on /opt
 failedmounting /proc on /opt
 failedsounting none on /opt
 failedmounting /tmp on /opt
 failedmounting /media on /opt
 failedmmc1ting /media/mmc1 on /opt
 failedmmc2ting /media/mmc2 on /opt
 failedusbnting /media/usb on /opt
 failedsernting /home/user on /opt
': No such file or directory
': No such file or directory
': No such file or directory
': No such file or directory
Everything set up, running chroot...
: No such file or directorydirectory to /opt
/home/user #
and it does not chroot.

here is the script, copied ffrom the wiki

Code:
echo "Setting up the chroot..."
export CHROOT=/opt
###
#mount the Debian partition.
insmod /mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko
insmod /mnt/initfs/lib/modules/2.6.21-omap1/ext2.ko
mount /dev/mmcblk0p2 $CHROOT -o noatime
###
# Make the tablet's devices available to Debian.
mount -o bind /dev $CHROOT/dev
mount -o bind /proc $CHROOT/proc
###
# Gentoo wiki says this will make X work.
mount -t devpts none $CHROOT/dev/pts
mount -o bind /tmp $CHROOT/tmp
###
# Mount various external devices (SD cards, USB devices)
mount -o bind /media $CHROOT/media
mount -o bind /media/mmc1 $CHROOT/media/mmc1
mount -o bind /media/mmc2 $CHROOT/media/mmc2
mount -o bind /media/usb $CHROOT/media/usb
###
# Mount the user's home directory
mount -o bind /home/user $CHROOT/home/user
###
# Make the Internet work.
cp /etc/resolv.conf $CHROOT/etc/resolv.conf
cp /etc/hosts $CHROOT/etc/hosts
###
# Make permissions work.
cp /etc/group $CHROOT/etc/group
cp /etc/passwd $CHROOT/etc/passwd
###
# Custom prompt. Reduces confusion.
export PS1="[\u@Debian: \w]"
###
# Actually chroot.
echo "Everything set up, running chroot..."
chroot $CHROOT $*

Last edited by XL1200c; 2008-06-20 at 03:13.