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.



> I would like to enscript cd-recordable image thru loop device.
> It seems loop device can't increase file size following the sequence
> below:
> 
> $ touch cdr.img

That creates a file of the size 0. This won't simply cut it. You
have to make a file the size of an actual CDROM. Like this:

$ dd if=/dev/zero of=cdr.img bs=1024 count=650000

....well, I don't know what the size of a CDROM exactly is. Put
into count the correct number. This is raw size - unformatted.

> $ losetup -e des /dev/loop0 cdr.img
            ^^^^^^\overkill. Wastes time. Leave it away.

> $ mkisofs -afvr -o /dev/loop0 <directory>
            ^^^^^^^^\leave that away, too. BTW, what
do you want with the -o ? cdr.img now is associated with
/dev/loop0. Treat it like a partition. Also leave <directory>
away. So far /dev/loop0 isn't mounted yet. So <directory> hasn't
lost anything in there !

> mkisofs fails. Is it usual?

As you did things so far, yes.

> So far I haven't committed a medium yet. have anyone done already?
> Or is there any better way?

Now you can offload the file onto a CDR. Use xcdroast for that.
It's the best. Made in Munich, so it must be good :-))))).

================================================================
"It was hell. They knew it.          Karl-Max Wagner
  But they called it                 karlmax@example.com
    W-I-N-D-O-Z-E"
================================================================
---------------------------------------------------------------
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