[ale] Is /dev/loop0 Linux specific?

Chris Ricker kaboom at gatech.edu
Fri Jun 15 14:19:14 EDT 2001


On Fri, 15 Jun 2001, Darrell Golliher wrote:

>
>   I've used /dev/loop0 for years to mount images of floppies and cdroms like so:
> 	mount -t iso9660 -o loop=/dev/loop0,ro myisoimagefile /mnt/cdrom
>
>   Now I find myself on Solaris making ISO images and wanting to mount
> them this way before burning to CD.  I can't find /dev/loop or
> figure out what might be equivalent.  I've read up on the LOFS, but
> that only seems to deal with loopback mounting filesystems in
> alternate locations-- not mounting files as filesystems.
>
>   Is /dev/loop0 specific to Linux?  If someone can tell me how to do
> mount a disk image under Solaris8, I'd be grateful.

You need Solaris 2.8, which has lofi

basic idea:

lofiadm -a /path/to/iso
# will return a device (something like /dev/lofi/number)
mount -F hsfs -o ro /dev/lofi/number

See the man page for lofiadm on 2.8 for all details, and note that the
example ISO they mount this way is a Red Hat Sparc ISO ;-)

later,
chris

-- 
Chris Ricker                                               kaboom at gatech.edu

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list