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

Re: Mounting a file as a filesystem

Dale Scheetz said:
> 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?

dd if=/dev/zero of=/path/to/file bs=1k count=<size>
mke2fs /path/to/file <size>
mount -t ext2 /path/to/file /mount/point

That should do it. No need for a ro file system, especially if you want to be
able to write things to it!

Scott Barker
Linux Consultant
http://www.cuug.ab.ca:8001/~barkers/   (under construction)

[ I try to reply to all e-mail within 3 days. If you don't   ]
[ get a response by then, I probably didn't get your e-mail. ]
[ Unsolicited commercial and junk e-mail will be proof-read for US$100 ]

"Knowing how things work is the basis for appreciation, and is thus a source
   of civilized delight."
   - William Safire

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: