The Following 2 Users Say Thank You to b-man For This Useful Post: | ||
![]() |
2008-06-16
, 02:26
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#2
|
![]() |
2008-06-16
, 02:43
|
|
Posts: 549 |
Thanked: 502 times |
Joined on Feb 2008
@ Bowling Green Ohio (united states)
|
#3
|
The Following User Says Thank You to b-man For This Useful Post: | ||
![]() |
2008-06-16
, 08:20
|
Posts: 122 |
Thanked: 12 times |
Joined on Feb 2007
@ Helsinki, Finland
|
#4
|
![]() |
2008-06-16
, 10:49
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#5
|
The Following User Says Thank You to bunanson For This Useful Post: | ||
![]() |
2008-06-16
, 17:47
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#6
|
chroot /opt cd /etc cp resolv.conf resolv.conf.deboot cp hosts hosts.conf.deboot cp group group.deboot cp passwd passwd.deboot
The Following 2 Users Say Thank You to qole For This Useful Post: | ||
![]() |
2008-06-16
, 18:07
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#7
|
I saw the wiki article a couple of days ago, but couldn't get the script to work on my 770. Now I realised why. Option "--bind" is not working with the BusyBox version of 770. But "-o bind" does the same thing.
The Following 2 Users Say Thank You to qole For This Useful Post: | ||
![]() |
2008-06-16
, 22:05
|
|
Posts: 549 |
Thanked: 502 times |
Joined on Feb 2008
@ Bowling Green Ohio (united states)
|
#8
|
![]() |
2010-06-22
, 13:15
|
Posts: 1,751 |
Thanked: 844 times |
Joined on Feb 2010
@ Sweden
|
#9
|
If you have eny suggeststions for improving this method, pleas post them here.
Requirements:
root acsess
x-terminal or emelfm2
you must have Debain in it's own partition in order for this to work.
How to:
here's a slightly modified script for chroot:
echo "Setting up the chroot..."
export CHROOT=/opt
###
# Make the tablet's devices available to Debian.
mount --bind /dev $CHROOT/dev
mount --bind /proc $CHROOT/proc
###
# Gentoo wiki says this will make X work.
mount -t devpts none $CHROOT/dev/pts
mount --bind /tmp $CHROOT/tmp
###
# Mount various external devices (SD cards, USB devices)
mount --bind /media $CHROOT/media
mount --bind /media/mmc1 $CHROOT/media/mmc1
mount --bind /media/mmc2 $CHROOT/media/mmc2
mount --bind /media/usb $CHROOT/media/usb
###
# Mount the user's home directory
mount --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 $*
Name it Debain, place that file in /usr/bin, and give it execute permissions as root.
Here's how to move this file into /usr/bin and how to give that new file execute permissions as root:
sudo gainroot
mv /home/user/MyDocs/Debain /usr/bin
cd /usr/bin
chmod +x Debain
Now to actually run chroot:
(just run theas commands in x-terminal as root- this assumes that your debain partition is in the second partition on mmc2)
sudo gainroot
mount /dev/mmcblk0p2 /opt
chroot /opt
exit
Debain
Congratulations!!! you are now in the root of Debain!!!
Again, if you have eny questions or suggeststions pleas report them here.
I'm an advanced user and a bit of a modder.
----------------------------------------------
I am involved with Mer, Deblet, and NITdroid.
My ports/creations/hacks: GNOME (for Deblet), Cdeb2», Ubuntu, playable flash games in the "Get Started" app, DBS, ect...
enhanced fedora port has been canceled in favor of NITDebian (TBA)
Last edited by b-man; 2008-06-16 at 03:22.