mounting files as filesystems

1996-10-11 Thread Maarten Boekhold
Hi,

I remember having heard of some way to mount a *file* as filesystem. I 
would want to use this to mount an iso9660 filesystem that is created as 
file. Still with me? :)

I couldn't find info on this anywhere. Is there somebody who has 
experience in burning CD's who has done this and can help me out here?

Maarten

_
| Maarten Boekhold, Faculty of Electrical Engineering TU Delft,   NL|
|  [EMAIL PROTECTED]   [EMAIL PROTECTED] |
-

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: mounting files as filesystems

1996-10-11 Thread J.H.M.Dassen
 I remember having heard of some way to mount a *file* as filesystem. I 
 would want to use this to mount an iso9660 filesystem that is created as 
 file. Still with me? :)
 
 I couldn't find info on this anywhere.

It's documented in the kernel's Configure.help:
Loop device support
CONFIG_BLK_DEV_LOOP
  Enabling this option will allow you to mount a file as a file system.
  This is useful if you want to check an ISO9660 file system before
  burning the CD, or want to use floppy images without first writing
  them to floppy.
  This option also allows one to mount a filesystem with encryption.
  To use these features, you need a recent version of mount, such as
  the one found at ftp.win.tue.nl:/pub/linux/util/mount-2.5X.tar.gz.
  If you want to use encryption, you might also be interested in the
  (old) DES package ftp.funet.fi:/pub/OS/Linux/BETA/loop/des.1.tar.gz.
  Note that this loop device has nothing to do with the loopback
  device used for network connections from the machine to itself.
  Most users will answer N here.

Debian's mount is 2.5l-1; should be recent enough. (there is a 2.5n now).

Ray
-- 
J.H.M. Dassen | RUMOUR  Believe all you hear. Your world may  
[EMAIL PROTECTED]  | not be a better one than the one the blocks   
  | live in but it'll be a sight more vivid.  
  | - The Hipcrime Vocab by Chad C. Mulligan  

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: mounting files as filesystems

1996-10-11 Thread Hamish Moffatt
 I remember having heard of some way to mount a *file* as filesystem. I 
 would want to use this to mount an iso9660 filesystem that is created as 
 file. Still with me? :)
 
 I couldn't find info on this anywhere. Is there somebody who has 
 experience in burning CD's who has done this and can help me out here?

You can mount a file as a filesystem with the loop file system.
Go 

losetup /dev/loop0 your image file

then just mount or whatever /loop0. (Up to loop7 is supported).

If you want to make a new file system in it, you need to create an image
file of some format first, eg with dd;

dd if=/dev/zero of=your file bs=size of file count=1

then you can losetup it, then mkfs it or whatever else.



Hope this helps,

Hamish

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: mounting files as filesystems

1996-10-11 Thread Dale Scheetz
On Fri, 11 Oct 1996, Maarten Boekhold wrote:

 Hi,
 
 I remember having heard of some way to mount a *file* as filesystem. I 
 would want to use this to mount an iso9660 filesystem that is created as 
 file. Still with me? :)

What you want to use is the loop device. I mount iso image files with:

mount -t iso9660 -o loop=/dev/loop0 image.iso /mnt

Try it, you'll like it ;-)

Dwarf

  --

aka   Dale Scheetz   Phone:   1 (904) 877-0257
  Flexible Software  Fax: NONE 
  Black Creek Critters   e-mail:  [EMAIL PROTECTED]

 If you don't see what you want, just ask --

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: mounting files as filesystems

1996-10-11 Thread Bruce Perens
I run the output of mkisofs to a raw disk partition. That mounts just fine.
It's a bit faster to access when writing the CD, too, as all of the blocks
are contiguous.

Thanks

Bruce
--
Bruce Perens, Pixar Animation Studios
*** Toy Story video tape in U.S. stores October 30 ***
Worldwide box office total for Toy Story: $353,275,005

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]