Re: [freebsd-questions] Mount an iso image?

2007-04-25 Thread Dan Nelson
In the last episode (Apr 25), Howard Jones said:
> Dan Nelson wrote:
> > If that's all you need, there's an even easier way: "tar tvf
> > mycd.iso", since libarchive understands the iso9660 filesystem
> > format :)
>
> That's a useful trick!
> 
> Is there an equivalent for ufs filesystems? I'd like to be able to
> extract files from a floppy image without needing root privs... I'm
> writing a script to prepare a PXE-install environment from a set of
> release ISOs.

You could try using a "dump -f - ufsfs.img | restore -if -" pipeline;
dump to read the filesystem and restore -i to give you a simple
navigation interface.  Libarchive only handles the iso9660 format
because it happens to be readable sequentially with no seeking.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [freebsd-questions] Mount an iso image?

2007-04-25 Thread Howard Jones
Dan Nelson wrote:
> If that's all you need, there's an even easier way: "tar tvf mycd.iso", 
> since libarchive understands the iso9660 filesystem format :)
>   
That's a useful trick!

Is there an equivalent for ufs filesystems? I'd like to be able to
extract files from a floppy image without needing root privs... I'm
writing a script to prepare a PXE-install environment from a set of
release ISOs.

Best Regards
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-24 Thread sac

Don't forget to unmount and detach the memory disk:
umount /somewhere
mdconfig -ud 0




a slight modification
   mdconfig -du 0

0 should be replaced with the appropiate device number




-- Martin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
[EMAIL PROTECTED]"





--

Regards,
sac
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Martin Tournoij
On Mon 23 Apr 2007 16:04, Paul Schmehl wrote:
> --On Monday, April 23, 2007 21:46:38 +0100 Matthew Seaman <[EMAIL PROTECTED]> 
> wrote:
> 
> >-BEGIN PGP SIGNED MESSAGE-
> >Hash: SHA256
> >
> >Paul Schmehl wrote:
> >
> >>Thanks.  That's what I was looking for.  I wasn't trying to create an
> >>iso. I wanted to see what was inside one without burning a CD first.
> >>That works perfectly.
> >>
> >
> >You can just use tar(1) to read the contents of an iso nowadays, no
> >need to mount anything:
> >
> >lack-of-gravitas:~/tmp:% tar -tvf 6.2-RELEASE-i386-disc1.iso | head -20
> >drwx--  0 0  06144 Jan 12 13:47 .
> >dr-xr-xr-x  2 0  06144 Jan 12 07:41 bin
> >dr-xr-xr-x  5 0  04096 Jan 12 11:33 boot
> >dr-xr-xr-x  2 0  02048 Jan 12 07:41 boot/defaults
> >dr-xr-xr-x  2 0  0   61440 Jan 12 10:55 boot/kernel
> >dr-xr-xr-x  2 0  02048 Jan 12 07:38 boot/modules
> >dr-xr-xr-x  2 0  02048 Jan 12 07:38 dev
> >dr-xr-xr-x  18 0  0   12288 Jan 12 07:42 etc
> >dr-xr-xr-x  2 0  02048 Jan 12 07:38 etc/X11
> >dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/bluetooth
> >dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/defaults
> >dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/gnats
> >dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/isdn
> >dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/mail
> >dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/mtree
> >dr-xr-xr-x  2 0  02048 Jan 12 07:38 etc/ntp
> >dr-xr-xr-x  2 0  04096 Jan 12 07:42 etc/pam.d
> >dr-xr-xr-x  6 0  02048 Jan 12 07:38 etc/periodic
> >dr-xr-xr-x  2 0  04096 Jan 12 07:42 etc/periodic/daily
> >dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/periodic/monthly
> >
> >lack-of-gravitas:~/tmp:% tar --version
> >bsdtar 1.2.53 - libarchive 1.2.53
> >
> Good to know.  However, I didn't want to just list the contents.  I also 
> wanted to view some of the files' contents.

Very useful hint! Thank you!
The tar manpage makes no mention of this by the way, it should be
updated...

You can also extract stuff (although mounting is probably faster in
most situations)
tar xf Unreal\ Tournament.iso -C /usr/local/share/linux-ut/

--Martin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image? (simplest way?)

2007-04-23 Thread Bill-S

At Tue, 24 Apr 2007 it looks like Apatewna composed:


O/H Kris Kennaway ??:


That is a Linux command?

Kris


Whoaaa, wasted bandwidth! You are right, I'll archive the correct commands 
for future reference.




Being on both systems alot, one wishes they had a "port" for that
"module" whereas one could just type the shortest command.

I see Linux ports everywhere else in FreeBSD-6.2, what's one more
right?  (giggle)



[EMAIL PROTECTED] ~]$ uname -r
6.2-RELEASE

[EMAIL PROTECTED] ~]$ find /usr/ports/ -iname "*linux*" -print | wc -l
 363



--
Bill Schoolcraft <*> http://wiliweld.com
  ~
"Unix is very simple, but it takes a
genius to understand the simplicity."
 (Dennis Ritchie)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Mount an iso image?

2007-04-23 Thread Paul Schmehl
--On Monday, April 23, 2007 21:46:38 +0100 Matthew Seaman 
<[EMAIL PROTECTED]> wrote:



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Paul Schmehl wrote:


Thanks.  That's what I was looking for.  I wasn't trying to create an
iso. I wanted to see what was inside one without burning a CD first.
That works perfectly.



You can just use tar(1) to read the contents of an iso nowadays, no
need to mount anything:

lack-of-gravitas:~/tmp:% tar -tvf 6.2-RELEASE-i386-disc1.iso | head -20
drwx--  0 0  06144 Jan 12 13:47 .
dr-xr-xr-x  2 0  06144 Jan 12 07:41 bin
dr-xr-xr-x  5 0  04096 Jan 12 11:33 boot
dr-xr-xr-x  2 0  02048 Jan 12 07:41 boot/defaults
dr-xr-xr-x  2 0  0   61440 Jan 12 10:55 boot/kernel
dr-xr-xr-x  2 0  02048 Jan 12 07:38 boot/modules
dr-xr-xr-x  2 0  02048 Jan 12 07:38 dev
dr-xr-xr-x  18 0  0   12288 Jan 12 07:42 etc
dr-xr-xr-x  2 0  02048 Jan 12 07:38 etc/X11
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/bluetooth
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/defaults
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/gnats
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/isdn
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/mail
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/mtree
dr-xr-xr-x  2 0  02048 Jan 12 07:38 etc/ntp
dr-xr-xr-x  2 0  04096 Jan 12 07:42 etc/pam.d
dr-xr-xr-x  6 0  02048 Jan 12 07:38 etc/periodic
dr-xr-xr-x  2 0  04096 Jan 12 07:42 etc/periodic/daily
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/periodic/monthly

lack-of-gravitas:~/tmp:% tar --version
bsdtar 1.2.53 - libarchive 1.2.53

Good to know.  However, I didn't want to just list the contents.  I also 
wanted to view some of the files' contents.


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Mount an iso image?

2007-04-23 Thread Apatewna

O/H Kris Kennaway έγραψε:


That is a Linux command?

Kris


Whoaaa, wasted bandwidth! You are right, I'll archive the correct 
commands for future reference.


--
RTFM and STFW before anything bad happens
_
Thanos Rizoulis
Electronic Computing Systems Engineer
Larissa, Greece
FreeBSD/PCBSD user
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Kris Kennaway
On Mon, Apr 23, 2007 at 03:45:14PM -0500, Dan Nelson wrote:
> In the last episode (Apr 23), Paul Schmehl said:
> >  --On Monday, April 23, 2007 21:18:55 +0200 Martin Tournoij 
> > > On Mon 23 Apr 2007 14:04, Paul Schmehl wrote:
> > >> Is it possible to mount an iso image?  I'm not referring to a cd,
> > >> but a single file that has been created using mkisofs.  If so,
> > >> what command would you use?  mount_cd9660 wants a block device. 
> > >> Do I need to use some sort of pseudo block device?
> > >
> > > To mount a iso image:
> > > mdconfig -at nvode -f MYIMAGE.ISO
> > > mount_cd9960 /dev/md0 /somewhere
> > >
> > > If you want to mount multiple ISO images then you will have to use
> > > md1, md2, ect.
> > >
> > > Don't forget to unmount and detach the memory disk:
> > > umount /somewhere
> > > mdconfig -ud 0
> > >
> > > 0 should be replaced with the appropiate device number
> > >
> > > Note that this will only mount standard iso images (iso9660,
> > > .usually iso or .bin), if you want to mount
> > > .Nero/Alcohol/PowerISO/ect images
> > > then you must first convert them, iat is a great tool for doing this:
> > > Ports collection: sysutils/iat
> > > Website: http://iat.berlios.de/
> > >
> 
> >  Thanks.  That's what I was looking for.  I wasn't trying to create
> >  an iso. I wanted to see what was inside one without burning a CD
> >  first.  That works perfectly.
> 
> If that's all you need, there's an even easier way: "tar tvf mycd.iso", 
> since libarchive understands the iso9660 filesystem format :)

That's a neat trick that is worth publicizing.  Maybe the freebsd-tips
fortune file?

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Paul Schmehl wrote:

> Thanks.  That's what I was looking for.  I wasn't trying to create an
> iso. I wanted to see what was inside one without burning a CD first. 
> That works perfectly.
> 

You can just use tar(1) to read the contents of an iso nowadays, no
need to mount anything:

lack-of-gravitas:~/tmp:% tar -tvf 6.2-RELEASE-i386-disc1.iso | head -20
drwx--  0 0  06144 Jan 12 13:47 .
dr-xr-xr-x  2 0  06144 Jan 12 07:41 bin
dr-xr-xr-x  5 0  04096 Jan 12 11:33 boot
dr-xr-xr-x  2 0  02048 Jan 12 07:41 boot/defaults
dr-xr-xr-x  2 0  0   61440 Jan 12 10:55 boot/kernel
dr-xr-xr-x  2 0  02048 Jan 12 07:38 boot/modules
dr-xr-xr-x  2 0  02048 Jan 12 07:38 dev
dr-xr-xr-x  18 0  0   12288 Jan 12 07:42 etc
dr-xr-xr-x  2 0  02048 Jan 12 07:38 etc/X11
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/bluetooth
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/defaults
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/gnats
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/isdn
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/mail
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/mtree
dr-xr-xr-x  2 0  02048 Jan 12 07:38 etc/ntp
dr-xr-xr-x  2 0  04096 Jan 12 07:42 etc/pam.d
dr-xr-xr-x  6 0  02048 Jan 12 07:38 etc/periodic
dr-xr-xr-x  2 0  04096 Jan 12 07:42 etc/periodic/daily
dr-xr-xr-x  2 0  02048 Jan 12 07:42 etc/periodic/monthly

lack-of-gravitas:~/tmp:% tar --version
bsdtar 1.2.53 - libarchive 1.2.53

Cheers,

Matthew


- --
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLRsu8Mjk52CukIwRCKfuAJ9DblEUgpu5eCEsdBWVFX8TgOiY+wCgj0rQ
tAlswF71TKS2CoEqs/kkqq0=
=2ME7
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Dan Nelson
In the last episode (Apr 23), Paul Schmehl said:
>  --On Monday, April 23, 2007 21:18:55 +0200 Martin Tournoij 
> > On Mon 23 Apr 2007 14:04, Paul Schmehl wrote:
> >> Is it possible to mount an iso image?  I'm not referring to a cd,
> >> but a single file that has been created using mkisofs.  If so,
> >> what command would you use?  mount_cd9660 wants a block device. 
> >> Do I need to use some sort of pseudo block device?
> >
> > To mount a iso image:
> > mdconfig -at nvode -f MYIMAGE.ISO
> > mount_cd9960 /dev/md0 /somewhere
> >
> > If you want to mount multiple ISO images then you will have to use
> > md1, md2, ect.
> >
> > Don't forget to unmount and detach the memory disk:
> > umount /somewhere
> > mdconfig -ud 0
> >
> > 0 should be replaced with the appropiate device number
> >
> > Note that this will only mount standard iso images (iso9660,
> > .usually iso or .bin), if you want to mount
> > .Nero/Alcohol/PowerISO/ect images
> > then you must first convert them, iat is a great tool for doing this:
> > Ports collection: sysutils/iat
> > Website: http://iat.berlios.de/
> >

>  Thanks.  That's what I was looking for.  I wasn't trying to create
>  an iso. I wanted to see what was inside one without burning a CD
>  first.  That works perfectly.

If that's all you need, there's an even easier way: "tar tvf mycd.iso", 
since libarchive understands the iso9660 filesystem format :)

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Kris Kennaway
On Mon, Apr 23, 2007 at 11:42:14PM +0300, Apatewna wrote:
> O/H Martin Tournoij ??:
> 
> >cd9660 can only mount read-only:
> >$ mount_cd9660 -o rw /dev/md0 /mnt/md0/
> >$ mount | grep cd9660
> >$ dev/md0 on /mnt/md0 (cd9660, local, read-only)
> >
> >Note that I made a typing error in my previous email, 'nvode' should
> >be 'vnode'
> >
> 
> So what is wrong with:
> mount -o loop freebsd.iso /mnt/cdrom
> 
> It opens/mounts the iso as expected.

That is a Linux command?

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Apatewna

O/H Martin Tournoij έγραψε:


cd9660 can only mount read-only:
$ mount_cd9660 -o rw /dev/md0 /mnt/md0/
$ mount | grep cd9660
$ dev/md0 on /mnt/md0 (cd9660, local, read-only)

Note that I made a typing error in my previous email, 'nvode' should
be 'vnode'



So what is wrong with:
mount -o loop freebsd.iso /mnt/cdrom

It opens/mounts the iso as expected.
--
RTFM and STFW before anything bad happens
_
Thanos Rizoulis
Electronic Computing Systems Engineer
Larissa, Greece
FreeBSD/PCBSD user
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Paul Schmehl
--On Monday, April 23, 2007 21:18:55 +0200 Martin Tournoij 
<[EMAIL PROTECTED]> wrote:



On Mon 23 Apr 2007 14:04, Paul Schmehl wrote:

Is it possible to mount an iso image?  I'm not referring to a cd, but a
single file that has been created using mkisofs.  If so, what command
would you use?  mount_cd9660 wants a block device.  Do I need to use
some sort of pseudo block device?

Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


To mount a iso image:
mdconfig -at nvode -f MYIMAGE.ISO
mount_cd9960 /dev/md0 /somewhere

If you want to mount multiple ISO images then you will have to
use md1, md2, ect.

Don't forget to unmount and detach the memory disk:
umount /somewhere
mdconfig -ud 0

0 should be replaced with the appropiate device number

Note that this will only mount standard iso images (iso9660, usually
.iso or .bin), if you want to mount Nero/Alcohol/PowerISO/ect images
then you must first convert them, iat is a great tool for doing this:
Ports collection: sysutils/iat
Website: http://iat.berlios.de/

Thanks.  That's what I was looking for.  I wasn't trying to create an iso. 
I wanted to see what was inside one without burning a CD first.  That works 
perfectly.


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Mount an iso image?

2007-04-23 Thread Martin Tournoij
On Mon 23 Apr 2007 20:04, RW wrote:
> On Mon, 23 Apr 2007 21:18:55 +0200
> Martin Tournoij <[EMAIL PROTECTED]> wrote:
> 
> > On Mon 23 Apr 2007 14:04, Paul Schmehl wrote:
> > > Is it possible to mount an iso image?  I'm not referring to a cd,
> > > but a single file that has been created using mkisofs.  If so, what
> > > command would you use?  mount_cd9660 wants a block device.  Do I
> > > need to use some sort of pseudo block device?
> > > 
> > > Paul Schmehl ([EMAIL PROTECTED])
> > > Senior Information Security Analyst
> > > The University of Texas at Dallas
> > > http://www.utdallas.edu/ir/security/
> > 
> > To mount a iso image:
> > mdconfig -at nvode -f MYIMAGE.ISO
> > mount_cd9960 /dev/md0 /somewhere
> > 
> 
> I notice no-one is recommending it be mounted read-only. Is it implicit
> for cd9960, or can an iso be modified this way?

cd9660 can only mount read-only:
$ mount_cd9660 -o rw /dev/md0 /mnt/md0/
$ mount | grep cd9660
$ dev/md0 on /mnt/md0 (cd9660, local, read-only)

Note that I made a typing error in my previous email, 'nvode' should
be 'vnode'

--Martin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Kris Kennaway
On Mon, Apr 23, 2007 at 08:36:40PM +0100, RW wrote:
> On Mon, 23 Apr 2007 21:18:55 +0200
> Martin Tournoij <[EMAIL PROTECTED]> wrote:
> 
> > On Mon 23 Apr 2007 14:04, Paul Schmehl wrote:
> > > Is it possible to mount an iso image?  I'm not referring to a cd,
> > > but a single file that has been created using mkisofs.  If so, what
> > > command would you use?  mount_cd9660 wants a block device.  Do I
> > > need to use some sort of pseudo block device?
> > > 
> > > Paul Schmehl ([EMAIL PROTECTED])
> > > Senior Information Security Analyst
> > > The University of Texas at Dallas
> > > http://www.utdallas.edu/ir/security/
> > 
> > To mount a iso image:
> > mdconfig -at nvode -f MYIMAGE.ISO
> > mount_cd9960 /dev/md0 /somewhere
> > 
> 
> I notice no-one is recommending it be mounted read-only. Is it implicit
> for cd9960, or can an iso be modified this way?

It's implicit.

Kris


pgp5mPpR8Bq9X.pgp
Description: PGP signature


Re: Mount an iso image?

2007-04-23 Thread RW
On Mon, 23 Apr 2007 21:18:55 +0200
Martin Tournoij <[EMAIL PROTECTED]> wrote:

> On Mon 23 Apr 2007 14:04, Paul Schmehl wrote:
> > Is it possible to mount an iso image?  I'm not referring to a cd,
> > but a single file that has been created using mkisofs.  If so, what
> > command would you use?  mount_cd9660 wants a block device.  Do I
> > need to use some sort of pseudo block device?
> > 
> > Paul Schmehl ([EMAIL PROTECTED])
> > Senior Information Security Analyst
> > The University of Texas at Dallas
> > http://www.utdallas.edu/ir/security/
> 
> To mount a iso image:
> mdconfig -at nvode -f MYIMAGE.ISO
> mount_cd9960 /dev/md0 /somewhere
> 

I notice no-one is recommending it be mounted read-only. Is it implicit
for cd9960, or can an iso be modified this way?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Martin Tournoij
On Mon 23 Apr 2007 14:04, Paul Schmehl wrote:
> Is it possible to mount an iso image?  I'm not referring to a cd, but a 
> single file that has been created using mkisofs.  If so, what command 
> would you use?  mount_cd9660 wants a block device.  Do I need to use some 
> sort of pseudo block device?
> 
> Paul Schmehl ([EMAIL PROTECTED])
> Senior Information Security Analyst
> The University of Texas at Dallas
> http://www.utdallas.edu/ir/security/

To mount a iso image:
mdconfig -at nvode -f MYIMAGE.ISO
mount_cd9960 /dev/md0 /somewhere

If you want to mount multiple ISO images then you will have to 
use md1, md2, ect.

Don't forget to unmount and detach the memory disk:
umount /somewhere
mdconfig -ud 0

0 should be replaced with the appropiate device number

Note that this will only mount standard iso images (iso9660, usually
.iso or .bin), if you want to mount Nero/Alcohol/PowerISO/ect images
then you must first convert them, iat is a great tool for doing this:
Ports collection: sysutils/iat
Website: http://iat.berlios.de/

-- Martin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Boris Samorodov
On Mon, 23 Apr 2007 14:01:10 -0500 Paul Schmehl wrote:

> Is it possible to mount an iso image?  I'm not referring to a cd, but
> a single file that has been created using mkisofs.  If so, what
> command would you use?  mount_cd9660 wants a block device.  Do I need
> to use some sort of pseudo block device?

Seems that you need "18.6.2 mkisofs":
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html


HTH, WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount an iso image?

2007-04-23 Thread Kris Kennaway
On Mon, Apr 23, 2007 at 02:01:10PM -0500, Paul Schmehl wrote:
> Is it possible to mount an iso image?  I'm not referring to a cd, but a 
> single file that has been created using mkisofs.  If so, what command would 
> you use?  mount_cd9660 wants a block device.  Do I need to use some sort of 
> pseudo block device?

Use mdconfig with -t vnode, then mount_cd9660

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Mount an iso image?

2007-04-23 Thread Paul Schmehl
Is it possible to mount an iso image?  I'm not referring to a cd, but a 
single file that has been created using mkisofs.  If so, what command would 
you use?  mount_cd9660 wants a block device.  Do I need to use some sort of 
pseudo block device?


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Can I mount an ISO image directly with mount?

2005-05-30 Thread Wayne Sierke
On Mon, 2005-05-30 at 11:01 -0400, Steven Friedrich wrote:
> I believe I read a posting over a year ago, that stated that you could mount 
> an ISO file directly with mount.
> 
> I searched the archives but couldn't find it.
> I searched the FAQ and handbook as well.
> 
> I do see a section in the handbook about doing it with vn, but I want to know 
> if it's possible with mount alone.

This works for me on 5.4...

mount_cd9660 -o ro /dev/`mdconfig -a -t vnode -f /path/to/file.iso` /mount-point


and hopefully won't have dramatic consequences if the mdconfig fails!

I don't have any 4.x systems so you'd have to compare the options for
vnconfig(?) if that's what you have.

I don't have the script-fu to suggest how you might set about undoing it
all in one line, since you'd have to do an unmount before you could
perform the required mdconfig -d, and hence lose the chance to do
something like:

mdconfig -d -u`mount | grep "/mount-point" | cut ... `


so you'd probably have to script it. Although ...

set mdvar=`mount | grep "/mount-point" | cut -c 8-8` && umount /mount-point && 
mdconfig -d -u $mdvar && unset mdvar


seems to work (but comes with a multitude of disclaimers about fitness
for purpose and possible health risks!). Hopefully you're not looking
for command-line shortcuts.


Wayne


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can I mount an ISO image directly with mount?

2005-05-30 Thread Can Berk Guder
OK, here's how you do it on Linux:

# mount -o loop -t iso9660  

eg.: # mount -o loop -t iso9660 /home/steven/5.4-RELEASE-i386-disc1.iso
/var/ftp/pub/freebsd-5.4/

Apparently, however this doesn't work on FreeBSD. AFAIK, this should work:

# mdconfig -a -t vnode -f  -u 0
# mount -t cd9660 /dev/md0 

eg.:

# mdconfig -a -t vnode -f /home/steven/5.4-RELEASE-i386-disc1.iso -u 0
# mount -t cd9660 /dev/md0 /var/ftp/pub/freebsd-5.4/

Regards,
-- 
Can Berk Guder
Sabanci University
Istanbul, Turkey

Quoting Steven Friedrich <[EMAIL PROTECTED]>:

> I believe I read a posting over a year ago, that stated that you could mount
> 
> an ISO file directly with mount.
> 
> I searched the archives but couldn't find it.
> I searched the FAQ and handbook as well.
> 
> I do see a section in the handbook about doing it with vn, but I want to know
> 
> if it's possible with mount alone.
> 
> -- 
> i386 FreeBSD 4.11-STABLE
> There are 10 types of people in this world. Ones that understand binary and
> 
> then, the others.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can I mount an ISO image directly with mount?

2005-05-30 Thread Bjoern Koenig

If you use 4.x then see

http://www.freebsddiary.org/iso-mount.php

Björn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can I mount an ISO image directly with mount?

2005-05-30 Thread Bjoern Koenig

Steven Friedrich wrote:

I believe I read a posting over a year ago, that stated that you could mount 
an ISO file directly with mount.


Indirectly.

# mdconfig -a -f filename.iso
md3
# mount_cd9660 /dev/md3 /cdrom


Regards
Björn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Can I mount an ISO image directly with mount?

2005-05-30 Thread Steven Friedrich
I believe I read a posting over a year ago, that stated that you could mount 
an ISO file directly with mount.

I searched the archives but couldn't find it.
I searched the FAQ and handbook as well.

I do see a section in the handbook about doing it with vn, but I want to know 
if it's possible with mount alone.

-- 
i386 FreeBSD 4.11-STABLE
There are 10 types of people in this world. Ones that understand binary and 
then, the others.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mount an ISO image on rw mode

2004-03-12 Thread Lowell Gilbert
Nathan Kinkade <[EMAIL PROTECTED]> writes:

> On Thu, Mar 11, 2004 at 01:30:35PM +0300, Odhiambo Washington wrote:
> > Hello users,
> > 
> > Perhaps I am just being stupid, doing a lot of things at the same time,
> > thus losing it.
> > Am I just dreaming by imagining that I can mount an ISO image with write
> > access?
> > 
> > I have done
> > 
> > [EMAIL PROTECTED] /dev/vn0c /wananchi/FreeSBIE-1.0-i386.iso
> > [EMAIL PROTECTED] /dev/vn0c /freesbie
> > 
> > This mounts the image in read-only mode. However, I would like to modify
> > a few files on the image before writing it to a CD.
> > 
> > The man page for mount says that I could use -o -w to achieve a write
> > mode. Does this also apply to ISO iamages? I was thinking that once
> > mounted, they should behave like regular files, no?
> > 
> > -Wash
> 
> I don't have an answer to this, but wanted to chime in because I have
> had the same issue in the past.  I had once heard a friend tell me that
> he used to create ISO images in this very way in Linux by mounting an
> ISO image on a (Linux) loop device and then copy files to the image.  It
> seems like it could be a flexible and convenient way to quickly create
> an ISO image at random, but I've never been able to get FreeBSD to mount
> and ISO image rw using either vnconfig or mdconfig.  Maybe there are
> some practical considerations that we are overlooking?

The only way I can think of to do that would potentially re-write the
entire ISO image on every write...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mount an ISO image on rw mode

2004-03-11 Thread Nathan Kinkade
On Thu, Mar 11, 2004 at 01:30:35PM +0300, Odhiambo Washington wrote:
> Hello users,
> 
> Perhaps I am just being stupid, doing a lot of things at the same time,
> thus losing it.
> Am I just dreaming by imagining that I can mount an ISO image with write
> access?
> 
> I have done
> 
> [EMAIL PROTECTED] /dev/vn0c /wananchi/FreeSBIE-1.0-i386.iso
> [EMAIL PROTECTED] /dev/vn0c /freesbie
> 
> This mounts the image in read-only mode. However, I would like to modify
> a few files on the image before writing it to a CD.
> 
> The man page for mount says that I could use -o -w to achieve a write
> mode. Does this also apply to ISO iamages? I was thinking that once
> mounted, they should behave like regular files, no?
> 
> -Wash

I don't have an answer to this, but wanted to chime in because I have
had the same issue in the past.  I had once heard a friend tell me that
he used to create ISO images in this very way in Linux by mounting an
ISO image on a (Linux) loop device and then copy files to the image.  It
seems like it could be a flexible and convenient way to quickly create
an ISO image at random, but I've never been able to get FreeBSD to mount
and ISO image rw using either vnconfig or mdconfig.  Maybe there are
some practical considerations that we are overlooking?

Nathan
-- 
gpg --keyserver pgp.mit.edu --recv-keys D8527E49


pgp0.pgp
Description: PGP signature


Re: mount an ISO image on rw mode

2004-03-11 Thread Dan Strick
On Thu, 11 Mar 2004 13:30:35 +0300, Odhiambo Washington wrote:
>>
> Perhaps I am just being stupid, doing a lot of things at the same time,
> thus losing it.
> Am I just dreaming by imagining that I can mount an ISO image with write
> access?
>
> I have done
>
> [EMAIL PROTECTED] /dev/vn0c /wananchi/FreeSBIE-1.0-i386.iso
> [EMAIL PROTECTED] /dev/vn0c /freesbie
>
> This mounts the image in read-only mode. However, I would like to modify
> a few files on the image before writing it to a CD.
>
> The man page for mount says that I could use -o -w to achieve a write
> mode. Does this also apply to ISO iamages? I was thinking that once
> mounted, they should behave like regular files, no?
>>

I would have thought the answer was "no".  Normally one would use
/usr/ports/sysutils/mkisofs to create a new ISO image containing
the modified files and burn that ISO image on CD.  However, the man
page for mount_cd9660 (in FreeBSD release 4.9) gives this example
usage of the command:

The following command can be used to mount a Kodak Photo-CD:

mount_cd9660 -o rw -v -s 0 /dev/cd0c /cdrom

This might be a bad example.  Neither the man page for mount_cd9660
nor the man page for mount lists "rw" as option specifiable with the
"-o" flag.  The "-w" flag (which is not an "option") is listed on the
mount man page but not on mount_cd9660 man page.  I was under the
impression that the mount_cd9660 command only mounted file systems
read-only.

Dan Strick
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mount an ISO image on rw mode

2004-03-11 Thread Odhiambo Washington
Hello users,

Perhaps I am just being stupid, doing a lot of things at the same time,
thus losing it.
Am I just dreaming by imagining that I can mount an ISO image with write
access?

I have done

[EMAIL PROTECTED] /dev/vn0c /wananchi/FreeSBIE-1.0-i386.iso
[EMAIL PROTECTED] /dev/vn0c /freesbie

This mounts the image in read-only mode. However, I would like to modify
a few files on the image before writing it to a CD.

The man page for mount says that I could use -o -w to achieve a write
mode. Does this also apply to ISO iamages? I was thinking that once
mounted, they should behave like regular files, no?



-Wash

http://www.netmeister.org/news/learn2quote.html

--
+==+
|\  _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]>
Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
+==+
After an instrument has been assembled, extra components will be found
on the bench.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"