Re: cloop read error

"Brendan M. Sleight" <[email protected]> Wed, 7 Dec 2005 17:14:18 +0000
Newsgroups gmane.linux.morphix.general
Message-ID <[email protected]>
Hi Paolo,

On 12/7/05, paolo.perfetti <> wrote:
> > Does the mainmodule load at all ?
> Yes, now if i use my iso with only mainmod, there's no problem.
> (yesterday i've forget to put cloop-utils in mainmod, is this the problem=
?)

I would use cloop-utils as default, although I am note sure this was
the problem.

> Now when i build minimod using minimod-gen, there's no problem but when i
> use this script:
> ######
> DIR=3D/mnt/sda1/mini-module/test-mini/
> MINIMODULE=3D/mnt/sda1/mini-module/test-mini.mod
> #TMP=3D/mnt/sda1/tmp
>
> SIZE=3D`du -s $DIR | awk '{ print  $1}'`
> : $((DIFF =3D 50 - $SIZE))
> : $((DIFF =3D 2*DIFF))
> if [ $SIZE -lt 50 ] ; then
>        dd if=3D/dev/urandom of=3D$DIR/morphix/files/padding.junk count=3D=
$SIZE
> fi
> mkisofs -U -R -V "Morphix Mini" -hide-rr-moved -cache-inodes \
> -no-bak -pad  $DIR | nice -5 create_compressed_fs - 65536 > $MINIMODULE
>
> rm $DIR/morphix/files/padding.junk
> ######

Does this look for a file size of less the 50 bytes rather than less
than 50k bytes, try:-
SIZE=3D`du -s -k $DIR | awk '{ print  $1}'`

Also I would add bs=3D1k :-
dd if=3D/dev/urandom of=3D$DIR/morphix/files/padding.junk bs=3D1k count=3D$=
SIZE

Personally I ammended mimimod-gen to always produce a junk file of 20K
as it takes up so little space on the compressed minimodule it IMHO
not worth deleting.

Hope this helps,
Brendan


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click