Subject: Re: Mounting a file containing raw image of ISO9660 File System
To: Stuart Brooks <stuartb@cat.co.za>
From: None <Federico_Lupi@www.datasys.it>
List: port-i386
Date: 01/17/2000 10:25:51
Stuart Brooks wrote:
> Is there any way to mount a file containing an image of an iso9660 file
> system? The file was created by 'mkisofs' (v1.12) in order to prepare it
for
> writing to a CD using 'cdrecord'. According to the man page this can be
done
> on Linux & Solaris systems - is there a way to do it on NetBSD?
>
> The Linux command looks like this
> 'mount cdimage.raw -r -t iso9660 -o loop /mnt'
>
>
> I have tried every mount form I can think of, including using vnconfig &
> vnd0?
> Maybe there is some other way of doing things (other than using mkisofs +
> cdrecord) ?
>
> If anyone has any ideas I would really appreciate it ...
>
> Stuart Brooks
The following works for me:
# ls -l cdimage
-rw-rw-r-- 1 xxxxx user 284672 Dec 1 11:58 cdimage
# vnconfig -v vnd0 cdimage 512/556/1/1
# mount -r -t cd9660 /dev/vnd0c /mnt
... browse /mnt ...
# umount /mnt
# vnconfig -u vnd0
where:
cdimage is the ISO image
556 is the size of the ISO image (284672) divided by 512
Regards,
Federico Lupi