View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#85
I should update this thread with a note about the new Easy Debian system...

You can speed up your copy by making the following changes to D'ohboy's instructions:

Originally Posted by D'ohboy View Post

We are assuming you are using (as in: installed and working) Qole's Debian image
I'll just update this with a link to the current image file.

http://qole.org/files/debian-squeeze-img.tar.bz2

Originally Posted by D'ohboy View Post
1 --------

First step: create a new partition/format your memory card.
(easiest way: mount your card on a linux box, use GParted to resize/create the new ext2 partition)

Put back the card in your device, boot it up.
You can also do this on-device using penguinbait's console tools or his gparted for the tablet.

Originally Posted by D'ohboy View Post
2 --------

Mount the current Debian image:

With this command (as root):
This has a better command now, too (much faster):

Code:
qmount /path/to/currentimgfile /debian
Originally Posted by D'ohboy View Post
Mount the new formatted partition:

Code:
mount /dev/mmcblkxxx /opt
4 --------

Copy the whole content of /debian to your freshly formatted partition.
In the present case:

Code:
cd /debian
/home/user/img-install/tar cf - . | (cd /opt/; tar xvf -)
5 --------

Restart device

6 --------

Edit /home/user/.chroot (as root: "vi /home/user/.chroot" ). Note that "IMGFILE=/dev/mmcblk1p1" needs to be modified to meet your needs (ie. replace "mmcblk1p1" to the ext2 partition you created)

# Sample config for chroot

# Device or image containing Debian filesystem.
# Default: first in /media/mmc[12]/debian*.img*
IMGFILE=/dev/mmcblk1p1

# Filesystem used; must always be set when using a partition.
# Default: from extension of IMGFILE, or ext2.
IMGFS=ext2

# Mount point for Debian.
# Default: /debian
CHROOT=/debian

# New /tmp dir size for printing / PDF creation
# Default: 2M
TMPSIZE=2M

# Debian user to drop privileges
# Default: user
DEBUSER=user

7 --------

You can remove the debian.img.ext2, as it's no longer needed)

8 --------

Tap on the "Debian chroot" menu item. If everything went well, you should see it mount the Debian image from: /dev/mmcblk1p1 (or whatever partition you have chosen)

I found that there was no need to edit the /sbin/debian only the chroot.
Everything else is fine!
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following User Says Thank You to qole For This Useful Post: