Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Building a cloop image
Date: Tue, 24 Jun 2003 08:23:06
Message-Id: 200306241023.03994.pauldv@gentoo.org
In Reply to: [gentoo-dev] Building a cloop image by Doug Lawlor
1 On Tuesday 24 June 2003 07:49, Doug Lawlor wrote:
2 > Hello list, I am in the process of updating the gentoo iso to meat my
3 > needs here and was wondering how to use the cloop package to build the
4 > compressed loop back image. Here is what I have done so far:
5 > 1. created a file of the proper size with 'dd'.
6 > 2. put an ext2 file system in the file using mke2fs -F file name
7 > 3. mounted the file and copied files and directories into this file.
8 > I can not get the following to work.
9 > 4. 'create_compressed_fs 512 filename'. Create_compressed_fs seems to
10 > write the image to swap space ok and then I see a bunch of garbage
11 > printed on the screen. Is this program writing to standard output
12 > instead of a file?
13 >
14
15 Assuming it works the same as crypto loop you will need to create a file. Then
16 link a compressed loopback device with it say /dev/loop0. Then you need to
17 create a filesystem on the loopback device with mke2fs /dev/loop0
18
19 Then you can "mount /dev/loop /mnt/mymountpoint"
20
21 Paul
22
23 --
24 Paul de Vrieze
25 Researcher
26 Mail: pauldv@××××××.nl
27 Homepage: http://www.cs.kun.nl/~pauldv