Mount ISO Image

Leo Cacciari leo.cacciari at gmail.com
Wed Feb 27 11:37:22 UTC 2008


Il giorno mer, 27/02/2008 alle 17.50 +0700, Gunawan ha scritto:
> [...snip...]
> And which one correct?
> $ sudo mount -oloop /path/to/image.iso /mnt/iso/
> or
> $ sudo mount -o loop /path/to/image.iso /mnt/iso/
> 
Generally speaking, command line convention says that arguments to
'short' options (i.e. those described by one char, beside the
introductory '-', as in -o to mount) can be either separated from the
option by space or not, as the person typing the command likes more:)
There are some command which does not behave like that, but mount does.
Even better, -o takes introduce multiple options. You may either give
them to a single -o option, separating them with commas (and no extra
space, you can have everithing;)), or give them to multiple -o options.
i.e.
mount -t auto -oloop -orw \
 -ouid=hobbit /opt/iso/ubuntu-7.10-desktop-i386.iso /mnt

and 
mount -t auto \
 -oloop,rw,ouid=hobbit /opt/iso/ubuntu-7.10-desktop-i386.iso /mnt

are the same (here 'rw' option is pointless, as you discovered, but
serves as example)

Enjoy

-- 
Leo 'TheHobbit' Cacciari

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Questa รจ una parte del messaggio	firmata digitalmente
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080227/fba48365/attachment.sig>


More information about the ubuntu-users mailing list