On 4/11/07, Sherzod Rakh <[EMAIL PROTECTED]> wrote:
>  there is file in lfs live cd root.ext2. How can i build like root.ext2 file
> my lfs system???


I didn't checked it out, so correct me if i'm wrong...

The root.ext2 file is a filesystem in a file, to create such system
you could use dd

dd if=/dev/zero of=filesystem bs=1024 count=1048576

Above command would create a file that is 1 GB in size, this is the
size of your partition.
then you need to create a filesystem on it, with the mke2fs (or
mkfs.ext2) command. (Or for ext3, mke3fs/mkfs.ext3)

mke2fs filesystem

The command will note you that filesystem isn't a block device, and
this is correct. so continue with yes.

then you can follow the LFS book, but only when mounting the partition
you need to change the command.  the book says:

mount -v -t ext3 /dev/<xxx> $LFS

you should do:

mount -v -t ext2 /full/path/to/filesystem $LFS -o loop
or for ext3:
mount -v -t ext3 /full/path/to/filesystem $LFS -o loop

But this only creates the filesystem(where you build LFS on), if you
want to know how to boot from CD etc, you should look at the LFS Live
CD remastering page.
http://wiki.linuxfromscratch.org/livecd/browser/tags/6.2-5/doc/lfscd-remastering-howto.txt

Tijnema
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to