RE: How to create EXT3 file system image from directories?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 22 May 2003, Debbie Xu wrote:

> Thanks a lot, it works!
> Why do I have to use "-o loop" option?

There's additional trickery involved for viewing a file as a block device.  
Mount needs to know about it.

> 
> Tx,
> Debbie
> 
> -----Original Message-----
> From: Theodore Ts'o [mailto:tytso@mit.edu] 
> Sent: Wednesday, May 21, 2003 7:55 PM
> To: Debbie Xu
> Cc: 'ext3-users@redhat.com'
> Subject: Re: How to create EXT3 file system image from directories?
> 
> On Wed, May 21, 2003 at 02:57:00PM -0700, Debbie Xu wrote:
> > Hi there,
> > 
> > Is there a utility to create an EXT3 file system image from directories?
> > Just like the mkfs.jffs2 which creates a JFFS2 file system image from
> > directories?
> > 
> > The "mke2fs -j" only creates the bare bone file system, what I want is to
> > build an image with pre-built content.
> 
> The easist thing to do is to create a filesystem on a file using
> mke2fs, and then mount the filesystem using the loopback device:
> 
> dd if=/dev/zero of=foo.img bs=1k count=16384
> mke2fs -f foo.img
> mount -o loop foo.img /mnt
> cp -r /source /mnt
> umount /mnt
> 
> 						- Ted
> 


_______________________________________________

Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux