View Single Post
Posts: 132 | Thanked: 40 times | Joined on Jun 2008
#682
You could create a partition on your sd card, then copy the image file onto it, then you just need to make sure everything points to the partition rather than the image file. I think this method still works.
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.

Last edited by D'ohboy; 2009-05-27 at 01:36.
 

The Following User Says Thank You to D'ohboy For This Useful Post: