Re: Mounting a file as a filesystem
> Dale Scheetz <firstname.lastname@example.org> 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
mount -t ext2 /dev/loop0 /mnt
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