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

Re: Mounting a file as a filesystem



Hamish Moffatt writes:
> 
> > Dale Scheetz <dwarf@polaris.net> writes:
> > > This may be true (most probably is) but mkisofs is the tool I know about
> > > from personal experience. How would I create an ext2fs in a file? Wouldn't
> > > it still need to be a ro file system?
> > 
> > You use losetup to make the loop, then make the fs, and then mount it.
> > See the losetup(8) man page for details.
> > 
> > And no, it wouldn't be ro.
> 
> Although you need to make a file of the desired size first so you have
> something to losetup.
> 
> eg for 10mb file system,
> 
> dd if=/dev/zero of=file bs=1k count=10240
> losetup /dev/loop0 file
> mke2fs /dev/loop0
> mount -t ext2 /dev/loop0 /mnt

For all that I know about Linux, here comes along a new feature to fasinate me
8-)

-- 
-= Sent by Debian Linux =-
Thomas Kocourek  KD4CIK
tomk@westgac3.dragon.com


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: