Changes

Jump to: navigation, search

Customizing Ubuntu Desktop CD

1 byte added, 21:14, 27 June 2008
m
Unpacking
==Unpacking==
This part is by far the easiest. Once you have downloaded the original iso file with the Ubuntu desktop CD, mount it: <pre>mount ubuntu-8.04-desktop-i386.iso mnt -o loop</pre> assuming that you have an empty directory <code>mnt</mntcode> and the iso file in your working directory. Then copy everything into another directory using <code>rsync</code>: <pre>rsync --exclude=/casper/filesystem.squashfs -a mnt/ iso</pre>. This will create the directory called <code>iso</code> with the contents of the CD, *except* for the largest file <code>/casper/filesystem.squashfs</code> that holds the whole target filesystem.
Next we unpack the target filesystem from that huge file. First we will mount it using another empty directory <code> mnt_sq</code>: <pre>mount mnt/casper/filesystem.squashfs mnt_sq -o loop -t squashfs</pre>. And then we <code>rsync</code> from it to a new directory: <pre>rsync -a mnt_sq/ squash</pre>. This should create the directory <code>squash</code> with the contents of the target filesystem. Now that we are done with the mounted images, we may unmount them: <pre> umount mnt_sq
umount mnt</pre>

Navigation menu