View Single Post
Posts: 155 | Thanked: 11 times | Joined on Sep 2007 @ Canada
#5
this instructions to me tells how to move Easy-Debian after Easy-Debian has already been installed.
does it work if I install easy-deb-chroot package and then download image file tarball and untar it to the destination partition like what i thought in my previous post?

thanks

Originally Posted by D'ohboy View Post
So to update the step-by-step by Maxoueb with the suggestions from Qole

We are assuming you are using (as in: installed and working) Qole's Debian image (debian.img.ext2, that can be downloaded from here: http://qole.maemobox.org/easy-deb-ch....6-2_armel.deb ).


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.

2 --------

Mount the current Debian image:

With this command (as root):

Code:
mount -o loop /path/to/currentimgfile /debian

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.
__________________
Palm 500, m505, Sony NR70V and N800 newbie.
8G internal card has 512M dos + 3.0G ext2 for clone os + 3.5G ext2 for easy Debian (just file system, easy-deb-chroot uninstalled) + >512 swap.
**************************
with the help of others and my effort to google internet, I solved some confusions. this is my experience.