Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: enscription thru loop device.



Kei Furuuchi <kfur@example.com> writes:

>  >   dd bs=1024 count=1000 if=/dev/zero of=cdr.img
> 
> So the sequence should be:
>
> $ mkisofs -afvr -o cdr.img <directory>
> $ losetup -e des /dev/loop0 cdr.img
> $ dd if=cdr.img of=/dev/loop0

Almost, but not quite.  Think of "dd" as doing what "fdisk" would
do to a hard disk: it creates the empty space that can then be
set up with your directory structure.  So this is the first
command that you need to issue, not the last.  Use something more
like:

  $ dd if=cdr.img of=/dev/loop0
  $ mkisofs -afvr -o cdr.img <directory>
  $ losetup -e des /dev/loop0 cdr.img

I don't know anything about mkisofs or losetup and their options,
so you're on your own there.  But "dd" definitely _must_ be the
first thing that you invoke in that sequence.

Good luck!

Cheers,
-- 
-x80
Frank G Bennett, Jr         @@
Faculty of Law, Nagoya Univ () email: bennett@example.com
Tel: +81[(0)52]789-2239     () WWW:   http://rumple.soas.ac.uk/~bennett/
---------------------------------------------------------------
Next Meeting: 10 October, 12:30 Tokyo Station Yaesu central gate
Featuring the IMASY Eng. Team on "IPv6 - The Next Generation IP"
Next Nomikai: 20 November, 19:30  Tengu TokyoEkiMae 03-3275-3691
---------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links