Author Topic: mkliev fails with Illegal division by zero at /usr/sbin/mylivecd line 296  (Read 1244 times)

Offline dlambert

  • Jr. Member
  • **
  • Posts: 13
[root@localhost dave]# mylivecd 2010.12
mylivecd, version 0.9.3, http://pclinuxos.com/
Copyright (C) 2010, Texstar <texstar at gmail.com>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

Disabling Services not needed on the LiveCD

running: /sbin/chkconfig --list
running: chkconfig --del atd
running: /sbin/chkconfig --list
running: chkconfig --del crond
running: /sbin/chkconfig --list
running: chkconfig --del syslog
Warning: syslog is needed by script(s) in runlevel 2: shorewall(start)
Warning: syslog is needed by script(s) in runlevel 3: nscd(start) shorewall(start)
Warning: syslog is needed by script(s) in runlevel 4: nscd(start) shorewall(start)
Warning: syslog is needed by script(s) in runlevel 5: nscd(start) shorewall(start)
running: /sbin/chkconfig --list
running: chkconfig --del kheader
running: /sbin/chkconfig --list
running: chkconfig --del xinetd


My System:
[dave@localhost ~]$ df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda8              45G   13G   31G  29% /
/dev/sda7              97G  5.1G   92G   6% /home
[dave@localhost ~]$


Creating initrd:                                   [100.00% 00:00:08/00:00:08]
Setting filesystem parameters:                     [100.00% 00:00:32/00:00:32]
Creating compressed image:                         [100.00% 03:13:53/03:13:53]
Creating isolinux boot:                            [100.00% 00:00:01/00:00:01]
Creating final iso:                                [100.00% 00:00:00/00:00:00]
ls: cannot access 2010.12: No such file or directory
Embedding MD5 checksum:
[                                                                            ]Argument "" isn't numeric in division (/) at /usr/sbi[  0.00% 00:00:00/00:00:00]Error - Unable to open file 2010.12

Illegal division by zero at /usr/sbin/mylivecd line 296.
[root@localhost dave]# ^C
Dave Lambert

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3979
The clue is that the final ISO was created instantly and then the MD5 calculation ran into a division by zero error. Both mean that creating your compressed image failed for some reason. Check permissions, paths, symbolic link loops etc. Make sure your working and tmp directories are outside the tree being compressed. Even with xz compression 3 hours is a long time to create a compressed image, so I suspect an infinite loop somewhere.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2838
    • other projects...
Hi dlambert,

you can only remaster a system of ~ max 11GB (or 12GB depending on the compressibility of the installed applications) but your system has a size of 13GB + 5GB in your home partition, that's way too much. Now please follow these steps and then free up some space or exclude some directories from remastering to get under the 11GB limit.

good luck,
-p.

Offline dlambert

  • Jr. Member
  • **
  • Posts: 13
Thanks for the quick replies. I am not sure how to remove files with out removing something that's needed. I have the following in my tmp, but I don't know if they can deleted with out harm?

file:///home/dave/tmp/4da33bd96d88a
file:///home/dave/tmp/4da33bd99760b
file:///home/dave/tmp/4da33bd998261
file:///home/dave/tmp/4da33be1173ea
file:///home/dave/tmp/QGSMUV.tmp
file:///home/dave/tmp/akonadi-dave.Ak2TVE
file:///home/dave/tmp/kde-dave
file:///home/dave/tmp/ksocket-dave
file:///home/dave/tmp/orbit-dave
file:///home/dave/tmp/plugtmp
file:///home/dave/tmp/plugtmp-1
file:///home/dave/tmp/plugtmp-10
file:///home/dave/tmp/plugtmp-11
file:///home/dave/tmp/plugtmp-12
file:///home/dave/tmp/plugtmp-13
file:///home/dave/tmp/plugtmp-14
file:///home/dave/tmp/plugtmp-15
file:///home/dave/tmp/plugtmp-16
file:///home/dave/tmp/plugtmp-17
file:///home/dave/tmp/plugtmp-18
file:///home/dave/tmp/plugtmp-2
file:///home/dave/tmp/plugtmp-3
file:///home/dave/tmp/plugtmp-4
file:///home/dave/tmp/plugtmp-5
file:///home/dave/tmp/plugtmp-6
file:///home/dave/tmp/plugtmp-7
file:///home/dave/tmp/plugtmp-8
file:///home/dave/tmp/plugtmp-9
file:///home/dave/tmp/pulse-7VI5uG1yhc3u

sense my kernel is 2.6.33.7, I need to use --lzma?

Would this be a correct syntax to use the older kernel, and not include /home/dave/pictures, /home/test?
mylivecd --lzma --nodir=^/home/dave/pictures,/home/test livecd-2010-5-21-2011   
Dave Lambert

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2838
    • other projects...
Hi dlambert,

according to your previous post your system is ~ 18GB, not even FullMonty is THAT huge (13GB). Either you have the entire repo installed  ::) or lot's of personal data. I guess the latter, so why don't you back this up to an external drive and/or exclude directories (at least 6GB of space) from the remaster. Again, mylivecd can only work on a system less than max. 12GB, so ensure this is the case else mylivecd will crash for sure.

regards,
-p.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
I wonder if there are left-over files from a failed remaster in that root partition ......

Also I would be inclined to direct the tmp directory of mylivecd and the final ISO file to a specific directory in the /home partition.

The specific directory could be excluded from the remaster easily, and it should make it much easier to clean out after wards if necessary.

Options

--tmp
--nodir
« Last Edit: May 21, 2011, 11:42:06 AM by Just19 »

Offline johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1105
  • Make Love Not War
Hi diambert,
I often delete all the files in temp when they pile up. A couple of needed folder recreate themselves. I never had a problem that I know of.
try bleachbit & bleachbit root to get rid of stuff

try this;
mylivecd --lzma --nodir ^/home/dave/pictures,/home/test livecd-2010-5-21-2011.iso

if your /home is too big to include in your remaster, I have a pretty simple process for a no /home remaster.
Enjoy
Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2838
    • other projects...
small correction:
mylivecd --lzma --nodir ^/home/dave/pictures,^/home/test livecd-2010-5-21-2011.iso

Offline johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1105
  • Make Love Not War
oops. Thanks pinoc.  :)
Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho

Offline dlambert

  • Jr. Member
  • **
  • Posts: 13
Thanks to all, it may be awhile until I get back to it.
Dave Lambert