Author Topic: First attempt at remaster failing. [SOLVED]  (Read 2704 times)

Offline TO

  • Jr. Member
  • **
  • Posts: 41
Re: First attempt at remaster failing.
« Reply #15 on: May 18, 2011, 04:32:11 PM »
Quote:  "I suggest you use the mylivecd options to direct the tmp and the destination to another partition."
 
Yes, indeed i will try this  -just in case-  for i found some space.
But where do i find MYLIVECD OPTIONS - list of applications does not have this item, though i am sure i have it (confirmed by synaptic)??
Thx again (and pls excuse my english, and probably out-of-place posting). to

Offline Zore The Bore

  • Full Member
  • ***
  • Posts: 68
Re: First attempt at remaster failing.
« Reply #16 on: May 18, 2011, 06:37:10 PM »
But where do i find MYLIVECD OPTIONS

You can find the mylivecd options 'old school' style:

Open a konsole terminal window, and at the prompt, type:

mylivecd --help
« Last Edit: May 18, 2011, 09:46:20 PM by Zore The Bore »

Offline Zore The Bore

  • Full Member
  • ***
  • Posts: 68
Re: First attempt at remaster failing.
« Reply #17 on: May 18, 2011, 09:20:29 PM »
Well, I installed the new kernel, rebooted, reran the mylivecd, burned the DVD, rebooted and ...

sweeeeet.  ;D

I ended up with a 3.6GB iso running the newer kernel, but it burned to DVD-rw just fine, and I have my fully customized PCLinuxOS on DVD.

This is so cool, considering it takes me a good two days to rebuild my OS after a new release.

Thanks again, Texstar, and everyone else.
« Last Edit: May 18, 2011, 09:33:40 PM by Zore The Bore »

Offline Klinux

  • Sr. Member
  • ****
  • Posts: 288
    • RedmondXP.com
Re: First attempt at remaster failing. [SOLVED]
« Reply #18 on: May 19, 2011, 01:21:40 AM »
My remaster was succesfull too, thanks
Visit RedmondXP.com

Offline TO

  • Jr. Member
  • **
  • Posts: 41
Re: First attempt at remaster failing. [SOLVED]
« Reply #19 on: May 19, 2011, 06:16:20 AM »
OMG, again my English. What could this (from HELP) possibly mean:

 --root <rootdir>                Root directory of the live filesystem to use
                                   as the for the image of the LiveCD.
                                   (default: /)

How do i indicate the (sufficient) space (directory, partition) for the.iso? Do i enter --tmp /media/blahBLAH ?

Or --img /media/blahBLAH.iso ? Or both?  Pls hlp!

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: First attempt at remaster failing. [SOLVED]
« Reply #20 on: May 19, 2011, 08:08:23 AM »
OMG, again my English. What could this (from HELP) possibly mean:

 --root <rootdir>                Root directory of the live filesystem to use
                                   as the for the image of the LiveCD.
                                   (default: /)

How do i indicate the (sufficient) space (directory, partition) for the.iso? Do i enter --tmp /media/blahBLAH ?

Or --img /media/blahBLAH.iso ? Or both?  Pls hlp!


create a directory on the partition with space .....  call it   remaster

use   --tmp /<path to>/remaster
use   /<path to>/remaster/my-remaster.iso   as the output file location
use   --nodir ^/<path to> .....   to exclude the remaster directory or maybe the whole partition, depending on where the space is.

I hope I got that right .....  ;)

Offline TO

  • Jr. Member
  • **
  • Posts: 41
Re: First attempt at remaster failing. [SOLVED]
« Reply #21 on: May 19, 2011, 11:40:55 AM »
No, still no result. I am not sure I understand your instruction (Q):

"use   --tmp /<path to>/remaster
use   /<path to>/remaster/my-remaster.iso   as the output file location" = how? On the same line? Or is it "use this OR use that"?

I tried many times, it begins but never builds an.iso. Eventually konsole flatly denies any service "DUE TO PREVIOUS ERRORS".
Well, it seems PCLOS is above my level of competence ...

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: First attempt at remaster failing. [SOLVED]
« Reply #22 on: May 19, 2011, 11:53:11 AM »
No, still no result. I am not sure I understand your instruction (Q):

"use   --tmp /<path to>/remaster
use   /<path to>/remaster/my-remaster.iso   as the output file location" = how? On the same line? Or is it "use this OR use that"?

I tried many times, it begins but never builds an.iso. Eventually konsole flatly denies any service "DUE TO PREVIOUS ERRORS".
Well, it seems PCLOS is above my level of competence ...

Unless you post the command/s you used we can have no idea what may be incorrect.


Code: [Select]
mylivecd --lzma  --tmp /<path to>/remaster  --nodir ^/<path to>   /<path to>/remaster/my-remaster.iso
replace the <path to> in the above to suit your situation, after creating the 'remaster' directory.


EDIT:
          It has occurred to me that if you have had a failure to remaster then the services that it stops may need to be restarted, and then the OS rebooted, before attempting to remaster again.

These are the services involved ......

Code: [Select]
Restoring Services on the installed system

running: chkconfig --add atd
running: chkconfig --add crond
running: chkconfig --add syslog
running: chkconfig --add kheader
running: chkconfig --add xinetd

Maybe someone else might like to comment on this?

regards.
« Last Edit: May 19, 2011, 12:12:27 PM by Just19 »

Offline TO

  • Jr. Member
  • **
  • Posts: 41
Re: First attempt at remaster failing. [SOLVED]
« Reply #23 on: May 19, 2011, 01:06:01 PM »
Yes, i rebooted again and again.
I entered: "mylivecd --tmp /media/64gVISTAsda2_C/20110519pclos/  /media/64gVISTAsda2_C/20110519pclos/my-remaster.iso"
The same result:
"Exiting with failure status due to previous errors"
Lovely.
PCLOS = not my cup of tea, I cannot operate in COMMAND LINE mode. ("these are the services involved" ...A???)
And  --lzma used to be with the OLD kernel, no? C'mon ...
Thx anyway, rgds

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: First attempt at remaster failing. [SOLVED]
« Reply #24 on: May 21, 2011, 12:36:27 AM »
TO
1.. Start a new thread.
2.. Use Dolphin and open /
3.. with the mouse right click on the tmp directory
4.. Select Actions > Open as Root then
5.. Delete all in root, but a few items will come back, not important

Then post the result of df from konsole, then I can determine the next step for you.

A partition size of 15G must be kept under strict observation if you want to do a re-master or myliveCD the dead simple default way. If you kept rebooting you blew your chances almost immediately, unless you know a lot more than you have told us?



« Last Edit: May 21, 2011, 12:40:53 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: First attempt at remaster failing. [SOLVED]
« Reply #25 on: May 21, 2011, 02:30:01 AM »
Yes, i rebooted again and again.
I entered: "mylivecd --tmp /media/64gVISTAsda2_C/20110519pclos/  /media/64gVISTAsda2_C/20110519pclos/my-remaster.iso"
The same result:
"Exiting with failure status due to previous errors"
Lovely.
PCLOS = not my cup of tea, I cannot operate in COMMAND LINE mode. ("these are the services involved" ...A???)
And  --lzma used to be with the OLD kernel, no? C'mon ...
Thx anyway, rgds


Why not use the command form you were given?
I see no indication that you used the  --nodir  option.

Offline mr-roboto

  • Jr. Member
  • **
  • Posts: 45
Re: First attempt at remaster failing.
« Reply #26 on: May 24, 2011, 04:49:53 AM »
You need 2.6.38 kernel or for older kernel use --lzma option as previously discussed in this area.




Tex:

I completely don't understand the above.  [Independently] I carried out the same steps as described by Zore, except I started w/ a base of LXDE-2010.12.  Granted, I know you wrote the mylivecd script, but I've been led to believe lzma is enabled by default.  Moreover, what does the kernel version or lzma have to do w/ system image not being found at boot time ?

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: First attempt at remaster failing. [SOLVED]
« Reply #27 on: May 24, 2011, 10:09:05 PM »
mr-roboto
As your system may be completely different, you should tell us exactly what you have been doing, and let us see the record you see on your pc. In other words facts  ;D

If I tell you mylivecd works fine. Not very satisfactory for you.  If I provided a bit more information like

Quote
[root@localhost gert]# uname -a
Linux localhost.localdomain 2.6.33.7-pclos6.bfs #1 SMP PREEMPT Thu Oct 21 22:42:28 CDT 2010 i686 i686 i386 GNU/Linux
[root@localhost gert]#


And with mylivecd

Code: [Select]
[root@localhost gert]# mylivecd --help
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.
Usage:
   /usr/sbin/mylivecd [options] <livecd-image>

General Options:
   --help                          Display this message
   --version                       Display version information
   --verbose                       Be verbose in output
   --noclean                       Don't remove temporary files on exit. #'
   --workdir                       Specify a working directory which will not
                                   be cleaned.
   --debug                         Display some extra debugging information
                                   while building the CD. (Usefull for bug
                                   reports to the developers.)

Image generation:
   --root <rootdir>                Root directory of the live filesystem to use
                                   as the for the image of the LiveCD.
                                   (default: /)
   --tmp <tmpdir>                  Name of the directory to be used for
                                   temporary file storage.
                                   (default: /tmp)
   --img <image>                   Name of the saved compressed image. When an
                                   image by this name is found, it will not be
                                   re-created or overwritten, rather the
                                   existing image will be re-used, i.e. the
                                   compressed image is not re-built.
   --nofile <ex1>[,][...]          Excludes files from the final image. (Also
                                   see the --nodir option for a full
                                   description)
   --nodir <ex1>[,][...]           Excludes directories from the final image.
                                   Patterns passed to this option (as with the
                                   --nofile option) should be valid in a grep(1)
                                   search, e.g. --nodir=^/home/jaco,^/root/.mcop
                                   will exclude both the /home/jaco and
                                   /root/.mcop directories from the final
                                   LiveCD.
   --sort <file>                   Sort the files on the compressed iso image
                                   according to the genisoimage-style sort specifier
                                   as detailed in file.
   --kernel <kernel>               Kernel to use as default for the LiveCD
                                   image. (Output of uname -r)
                                   (default: 2.6.33.7-pclos6.bfs)
   --lzma                          Use with kernels older than 2.6.37
   --gzip                          Use gzip compression for the image
   --xz                            Use xz compression for the image

Boot options:
   --bootopt <option>              Specify an additional boot option to pass to
                                   the kernel command-line.
   --bootmsg <msg>                 Use 'msg' as the isolinux boot message.
   --bootkey <key=msg>             Display 'msg' on key 'key' from isolinux.
   --bootimg <img>                 Use 'img' (LSS format) as the isolinux.
                                   background display image.
   --bootloader <iso|grub|usb>     The bootloader to use on the livecd i.e. isolinux,
                                   GRUB or syslinux for usb stick
   --bootmenu <file>               What boot menu definition file should be used
                                   in case that bootloader option is set to iso or grub.
                                   For iso this file must be named 'isolinux.cfg',
                                   for grub the name must be 'menu.lst'.
                                   Boot menu will be generated if not specified.
   --boottheme <name>              Which gfxboot theme should be used.
                                   Defaults to 'pclinuxos'
   --bootlang <lang code>          Which language shound be used as default
                                   in the boot menu.
                                   Defaults to 'en'.
   --mbkopt <kernel>               Create the ISO with multi boot kernel option.
   --ufs <unionfs|aufs>            Specify the union file system.
   --timeout <sec>                 Specify the default ISO Linux prompt timeout
                                   in seconds.
                                   (default: 90)
   --noprompt                      Disable ISO Linux prompt (i.e. prompt 0).
   --keyboard <mapping>            Specify a different keyboard layout as
                                   default for the LiveCD.
                                   (default: us)
   --resolution <res>              Specify the resolution for the framebuffer
                                   output device. (Either resolution or normal)
                                   (default: 800x600)
   --splash <silent|verbose|no>    Create the LiveCD with bootsplash support if
                                   available on the root filesystem.
                                   (default: silent)
   --fstab <options>               Override the default options for the fstab on
                                   the LiveCD. Options are one or more of 'auto'
                                   and 'rw', for example '--fstab=rw,auto' will
                                   automatically mount all detected partitions
                                   rw.

ISO Image options:
   --isoextrafiles <path>          Add the files in 'path' to the root of the
                                   LiveCD ISO image.
   --application <id>              Use the specified iso application ID, as '-A'
                                   option to genisoimage.
   --volumeid <id>                 Use the specified iso volume ID, as a '-V'
                                   option to genisoimage.
   --preparer <prep>               Use the specified preparer ID, as a '-p'
                                   option to genisoimage.
   --publisher <pub>               Use the specified publisher ID, as a '-P'
                                   option to genisoimage.
   --md5sum                        Compute and implant the md5sum to verify media.

Behaviour:
   --usbhome                       Use USB memory stick devices as a persistent
                                   home when available/connected on bootup.

Examples:
    /usr/sbin/mylivecd --nodir ^/usr/src/RPM,^/root/tmp livecd.iso
    /usr/sbin/mylivecd --splash=silent livecd.iso

[root@localhost gert]#


Above should tell you that I know how to get a root terminal, and I know how to look at the options for mylivecd (but it says nothing about my understanding of those  :D)


Since I do use mylivecd I could also have shown:

Quote
[root@localhost gert]# mylivecd --gzip --nodir ^/home/gert/Videos test_gnome.iso
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 3: nscd(start)
Warning: syslog is needed by script(s) in runlevel 4: nscd(start)
Warning: syslog is needed by script(s) in runlevel 5: nscd(start)
running: /sbin/chkconfig --list
running: chkconfig --del kheader
running: /sbin/chkconfig --list
running: chkconfig --del xinetd


Creating initrd:                                   [100.00% 00:00:05/00:00:05]
Setting filesystem parameters:                     [ 20.00% 00:00:00/00:00:00]^CDIE
FATAL: Execution of '(find / -type d 2>/dev/null | sed -e 's,^/,/,g' | grep '^/home/gert/Videos
^/[.].*
^/dev$
^/initrd$
^/lost+found$
^/mnt$
^/media$
^/proc$
^/sys$
^/tmp$
^/var/tmp$
^/root/tmp$
^/home/guest/tmp$
^/proc/asound' | sed 's,^/,/,' >>/tmp/mylivecd.13984/excludes.list)' failed
[root@localhost gert]#


I have a problem, if I presented this in Forum, some members would not understand much but the experienced can tell quite a bit, and likely make a posting.  They would also gauge I have a certain level of understanding and therefor aim the answer at the level they think I can understand.

Quote
[root@localhost gert]# df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              28G  7.0G   20G  27% /
/dev/sdb10            9.9G  1.9G  7.5G  21% /media/DELTA-10
[root@localhost gert]#


This shows that at least I do not have an overfilled partition.

Quote
[root@localhost gert]# umount -a
umount: /: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
[root@localhost gert]#


Above is one of the 'necessary' commands that ensures that there is not another 20 partitions mounted (I could have 43 with bad luck)

Show what you have done, along above lines, that tells us something. If you do I think that Tex might be more favourably disposed if he pops in.

Give it a go   ;D




« Last Edit: May 24, 2011, 10:11:36 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline mr-roboto

  • Jr. Member
  • **
  • Posts: 45
Re: First attempt at remaster failing. [SOLVED]
« Reply #28 on: May 25, 2011, 09:03:10 AM »
wedgetail:

Ok.  Let's slow down a bit.  Have a stock LXDE-2010.12 ISO.  Install PCLOS from it, in a VMWare VM, update it (via Synaptic) plus six of my own choice packages, tweak my choices a bit, BleachBit, BleachBit Root.  Don't need umount -a, as I only the default two partitions.

Let's pause for a bit:  my first true attempts failed immediately.  No ISO at all.  I thought it was due to insufficient disc space, expanded the virtual drive, then reinstalled PCLOS from scratch.  But mylivecd failed immediately again !  It finally dawned on me that the default PATH was wrong and I had to manually add /sbin+/usr/sbin to root's .bashrc (a skinny little file I carry from system to system, an addition that came only after I recognized the problem.)  Before I got mylivecd running, I also d/l'd a fresh LXDE ISO and compared the MD5 signature to the one I'd been using.

Once I fixed tha PATH, my next mylivecd attempt ran to completion w/o errors or warnings (or at least no warnings of consequence that I recall.)  Copied the ISO to a flash drive, burned and tried it.  No joy.  'Unable to mount loop filesystem'.  The error messages suggest that the error might come from a faulty copy, but I dismissed that possibility by comparing the MD5 signature of my original ISO to one I downloaded over the weekend.

I tried updating the kernel as Tex suggested, but I did so blindly, although I did read that Zore (the thread starter) had good results.  I'd simply like to know why a kernel update is called for, because kernel updates between distro releases are rare, unless one needs something specific that's only available via a new kernel.

For the record, having the kernel package modify the boot menu, so one can select/boot/test with a particular kernel is most impressive.  You don't get that when compiling a kernel from a tarball.  Now, must sign off to do some housekeeping to test this new ISO....

Offline Klinux

  • Sr. Member
  • ****
  • Posts: 288
    • RedmondXP.com
Re: First attempt at remaster failing. [SOLVED]
« Reply #29 on: May 25, 2011, 02:14:47 PM »
I honestly have to say in the past I was doing many installations in VirtualBox and customizing and creating the image from there.
However since some time now I found that in a Virtual Machine I was always getting similar errors to yours.
Somebody once said here in the forum that doing remasters in a VM can fail. Obviously beeingstubbborn I was not trusting him, but please try all you did outside of VMware.
Visit RedmondXP.com