How to mount and read cdimage before burning

Christian Hiris 4711 at chello.at
Tue May 18 04:53:28 PDT 2004


On Tuesday 18 May 2004 12:53, Stephen Liu wrote:
> Hi folks,
>
> Freebsd 5.2
> ===========
>
> Following command works on Linux but not on Freebsd
> # mount cd_image.iso -r -t iso9660 -o loop /mnt
> (remark: iso9660 changed to cd9660)
>
> Google search brought following link
> http://www.freebsddiary.org/iso-mount.php
>
> $ vnconfig /dev/vn0c cd_image.iso
> ERROR: vnconfig(8) has been discontinued
>         Please use mdconfig(8).
> $ mdconfig /dev/vn0c cd_image.iso
> mdconfig: open(/dev/mdctl): Permission denied
> $ su
> Password:
> # mdconfig /dev/md0c cd_image.iso
> usage:
>         mdconfig -a -t type [-n] [-o [no]option]... [
> -f file] [-s size] [-S sectorsize] [-u unit]
>         mdconfig -d -u unit
>         mdconfig -l [-n] [-u unit]
>                 type = {malloc, preload, vnode, swap}
>                 option = {cluster, compress, reserve}
>                 size = %d (512 byte blocks), %dk (kB),
> %dm (MB) or %dg (GB)
>
> Have no idea how to proceed further.  Kindly advise.
>
> TIA
>
> B.R.
> Stephen Liu
>
> _______________________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"


attach md:
# mdconfig -a -t vnode -f /yourpath/your.iso 
# mount -t cd9660 /dev/md0 /yourmountpoint

list configured mds:
# mdconfig -l

unmount and detach:
# umount /yourmountpoint
# mdconfig -d -u 0

There are some examples listed in 'man 8 mdconfig'. 

regards
ch 

-- 
Christian Hiris <4711 at chello.at> | OpenPGP KeyID 0x941B6B0B 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040518/3414a7a4/attachment-0001.bin


More information about the freebsd-questions mailing list