View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#28
Ok, please note this is the thread for N8x0 devices, but this applies to all devices.

I suggest making a bigger image file (using the dd command as I explain in this old post):

(you need to be root for all of this, sudo su - is my preferred method)

Code:
dd if=/dev/zero of=debian.img.ext2 count=2097152
What's that 2097152? That should give us a gigabyte. Seems that you calculate size like this: <bytes> / 512 = <dd-count>. So three gigabytes would be 6291456 and four would be 8388608.

Then make an ext2 file system in it (using mkfs.ext2) as explained in the same old post:

Code:
mkfs.ext2 debian.img.ext2 -m 0 -L easy-debian
Then you copy the data from the old image to the new image using the instructions from this old post.

First mount both image files on different directories (using qmount from my easy-chroot package):


Code:
mkdir /debian
qmount debian.img.ext2 /debian
qmount old-small-debian.img.ext2 /floppy
Then copy the data over:
Code:
tar cf - -C /floppy . | tar xvf - -C /debian
Then unmount everything:
Code:
qumount /floppy
qumount /debian
If you haven't made any changes, it might be better to start with one of my rootfs tarballs from qole.org/files rather than an image file. Make the new image file with dd and mkfs, mount it, cd into it, then untar the rootfs into it.
__________________
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: