View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#209
Getting A Big Debian Image File:

It would probably be just as easy to start from scratch; if you don't want to partition your SD card (still the best way to get lots of space), you can make your own (empty) image file as described way back here:
(you may need to be root to do this, you will definitely have to apt-get install e2fsprogs)

Code:
dd if=/dev/zero of=debian.img.ext2 count=3984589
mkfs.ext2 debian.img.ext2 -m 1 -L debian
What's that 3984589? That should give us 1.9 gigabytes. Seems that you calculate size like this: <bytes> / 512 = <dd-count>

Then, you have to mount the new image file and untar the Easy Debian files into it, as described in this post:

As root, mount it like so (so you get the turbo speed):
Code:
insmod /lib/modules/2.6.21-omap1/dm-mod.ko
insmod /lib/modules/2.6.21-omap1/dm-loop.ko
dmlosetup loop0 /media/mmc1/debian.img.ext2
mount -t ext2 /dev/dm-0 /debian -o noatime
You can then (still as root) untar the complete Easy Debian filesystem or the basic Debian rootfs into the /debian directory.

Code:
cd /debian
tar -xjvf /path/to/debian-final.tar.bz2 .
Make sure you run closechroot before using "sudo debian," "debbie," or the "Debian chroot" menu icon. Otherwise you might end up with an incomplete chroot.
__________________
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!

Last edited by qole; 2008-10-25 at 06:06.
 

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