Editing Easy Debian
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
Warning: This page is 50 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 29: | Line 29: | ||
; Close Debian : for unmounting the Debian image and shutting down all running Debian processes | ; Close Debian : for unmounting the Debian image and shutting down all running Debian processes | ||
- | ; Deb Img Install : for the initial download and extraction of the Debian image. For installing a new version of the Debian image from | + | ; Deb Img Install : for the initial download and extraction of the Debian image. For installing a new version of the Debian image from http:qole.org/files, delete the old image (or move/rename it appropriately) and rerun Deb Img Install. |
; Debian chroot : this runs "sudo debian" in XTerminal, which gives root access to the Debian image. This can be used for modifying the Debian image and installing further applications from the command line. The root file system of Maemo is not visible from within Debian chroot, except /home and /home/user/MyDocs, so you cannot ruin the Maemo firmware from here. | ; Debian chroot : this runs "sudo debian" in XTerminal, which gives root access to the Debian image. This can be used for modifying the Debian image and installing further applications from the command line. The root file system of Maemo is not visible from within Debian chroot, except /home and /home/user/MyDocs, so you cannot ruin the Maemo firmware from here. | ||
Line 391: | Line 391: | ||
deb http://ftp.debian.org/debian squeeze main contrib non-free | deb http://ftp.debian.org/debian squeeze main contrib non-free | ||
- | + | deb http://www.debian-multimedia.org squeeze main | |
- | + | ||
- | + | ||
Easy Debian has only a limited amount of disk space, so we'll temporarily create a new place to store the downloaded new packages in MyDocs: | Easy Debian has only a limited amount of disk space, so we'll temporarily create a new place to store the downloaded new packages in MyDocs: | ||
Line 563: | Line 561: | ||
So, without harming portability, we can increase our image file by 1GB (almost) and then grow the file system to fit it. To increase the image size, first, concatenate 1GB of zeroes onto the end of the file: | So, without harming portability, we can increase our image file by 1GB (almost) and then grow the file system to fit it. To increase the image size, first, concatenate 1GB of zeroes onto the end of the file: | ||
- | <pre>dd if=/dev/zero bs=1M count= | + | <pre>dd if=/dev/zero bs=1M count=1048576 >> /path/to/image.ext3</pre> |
Note that the ">>" is critical here, meaning append the zeroes to the end of the file; accidentally use ">" and you'll overwrite the image. The command will "fail" with an error when you hit 4GB on a FAT32 filesystem, but, don't worry, that's because we hit the maximum file size before we ran out of zeroes. Our image file will still be the desired maximum possible size. Now, we need to unmount and remount the image, in order for the loop mount to pick up the larger "device" that we just created. This is as simple as running the Close Debian script, then restarting Easy Debian via Deb Chroot (or sudo debian). | Note that the ">>" is critical here, meaning append the zeroes to the end of the file; accidentally use ">" and you'll overwrite the image. The command will "fail" with an error when you hit 4GB on a FAT32 filesystem, but, don't worry, that's because we hit the maximum file size before we ran out of zeroes. Our image file will still be the desired maximum possible size. Now, we need to unmount and remount the image, in order for the loop mount to pick up the larger "device" that we just created. This is as simple as running the Close Debian script, then restarting Easy Debian via Deb Chroot (or sudo debian). | ||
Line 577: | Line 575: | ||
==== ext2 to ext3 ==== | ==== ext2 to ext3 ==== | ||
- | This is fairly easy; from within the chroot, issue | + | This is fairly easy; from within the chroot, issue |
<pre>tune2fs -j /dev/loop0</pre> | <pre>tune2fs -j /dev/loop0</pre> | ||
- | + | which will add a journal to your ext2 filesystem. Close down Easy Debian, rename your image file from <image-name>.ext2 to <image-name.ext3>, make sure that the image name is either configured in .chroot or that it's the first such image in the directory, restart Easy Debian, and away you go. Take note that adding a journal adds overhead and may not improve performance; understand the implications before you proceed. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
==== ext3 to ext4 (or anything else) ==== | ==== ext3 to ext4 (or anything else) ==== | ||
Line 649: | Line 607: | ||
It does no harm at this point to run a filesystem check on the newly created image. You'll also need to make sure that the image is either configured in .chroot or is the first such image in the directory in order for the Easy Debian chroot scripts to pick it up. | It does no harm at this point to run a filesystem check on the newly created image. You'll also need to make sure that the image is either configured in .chroot or is the first such image in the directory in order for the Easy Debian chroot scripts to pick it up. | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
== Donations == | == Donations == |
Learn more about Contributing to the wiki.