Author Topic: <SOLVED it's not a bug> Is this a mylivecd bug ?  (Read 2329 times)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
<SOLVED it's not a bug> Is this a mylivecd bug ?
« on: September 18, 2011, 06:19:04 AM »
Hi all,

Quote
# mylivecd --gzip --resolution 800x600 --md5sum --nodir ^/tmp/ --nodir ^/vbox/ --nodir ^/u/ /tmp/as.iso 2>&1
mylivecd, version 0.9.4, 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: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list


Creating initrd:                                            [100.00% 00:00:05/00:00:05]
Setting filesystem parameters:                     [100.00% 00:00:02/00:00:02]
Creating compressed image:                         [ 79.43% 00:32:34/00:41:15]^C
FATAL: Interrupted.



I'm experiencing some bad behavior using mylivecd, some details:
Usually my ISO will include the '/' filesystem + '/boot' and create a correct ISO image of approx 4 Gib, the whole process take approx 12 minutes.

Instead of unmounting the /vbox and /u filesystems, this time I've used the --nodir option, as reported above, but something has gone wrong, the progress counter stop at 79.43% while the temporary files continue to grow indefinitely, after half an hour the whole /tmp filesystem is filled  and the only thing to do is to kill the mylivecd process.

I have performed a filesystem check on all filesystems, all filesystems were already OK. (used fsck -f ...)
The only thing I can note is that the /u filesystem actually contains a lot of small files, exactly 42652, implicitly mylivecd create a large list of excluded files.

Is this a known issue ? Am I doing something wrong ?

Clearly unmonting the /u filesystem allow me to create the correct image.iso, but I need to know if the --nodir option used on a mounted filesystem could be considered equivalent to unmounting the same filesystem or not.
Or eventually if there are known limits while using --nodir --nofiles options.

Thanks for reading.

AS
« Last Edit: September 18, 2011, 05:09:02 PM by as »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Is this a mylivecd bug ?
« Reply #1 on: September 18, 2011, 07:00:49 AM »
--nodir and --nofiles options are not the same as unmount. They simply mean "exclude this."     

Do you have sufficient space for creating your remaster?

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Is this a mylivecd bug ?
« Reply #2 on: September 18, 2011, 07:10:45 AM »
--nodir and --nofiles options are not the same as unmount. They simply mean "exclude this."     

Do you have sufficient space for creating your remaster?

Yes, as I wrote before if the 2 filesystems (/vbox and /u) are unmounted, the whole process complete successfully.

And I understand that --nodir is not the same as umount, but in this specific case should produce the same result, i.e. exclude all files under that directories, /vbox and /u.  Am I missing something ? Syntax errors ?
Quote
mylivecd --gzip --resolution 800x600 --md5sum --nodir ^/tmp/ --nodir ^/vbox/ --nodir ^/u/ /tmp/as.iso 2>&1

Thank you
AS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Is this a mylivecd bug ?
« Reply #3 on: September 18, 2011, 07:38:11 AM »
The option "--md5sum" is unneeded, as the resulting ISO will include the md5sum without it. Why the "--resolution 800x600" option?

What is /u file system? Do you mean /union? /union is the file system for live media.     

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Is this a mylivecd bug ?
« Reply #4 on: September 18, 2011, 07:52:49 AM »
The option "--md5sum" is unneeded, as the resulting ISO will include the md5sum without it.
OK

Quote
Why the "--resolution 800x600" option?

It's one of the available mylivecd options ...

Quote
What is /u file system? Do you mean /union? /union is the file system for live media.     

no, it's a normal ext4 filesystem, it's a short mountpoint name  :D

I made several tests, omitting all unnecessary options, ( --md5sum --resolution 800x600 --nodir ^/tmp ...) so far all with the same results. Looking further inside the file /tmp/mylivecd.nnnnn/exclude.list I'm able to count 4006 entries starting with /u were I should expect something like 42652 ....

I think the issue is around here .... unless I'm doing something wrong which actually I'm unable to see.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Is this a mylivecd bug ?
« Reply #5 on: September 18, 2011, 08:03:56 AM »
You used the "--resolution 800x600" option just because it is available?     

Try your command without using the "/u."     

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Is this a mylivecd bug ?
« Reply #6 on: September 18, 2011, 08:07:25 AM »
You used the "--resolution 800x600" option just because it is available?
:D ;D Yes, but check PM!

Quote

Try your command without using the "/u."     

already done ... without improvements:
Quote
I made several tests, omitting all unnecessary options, ( --md5sum --resolution 800x600 --nodir ^/tmp ...)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Is this a mylivecd bug ?
« Reply #7 on: September 18, 2011, 08:13:48 AM »
One further question ---     
Why did you add "2>&1" to your command? (From your original post.)     


Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10690
  • MLUs Forever!
Re: Is this a mylivecd bug ?
« Reply #8 on: September 18, 2011, 08:14:20 AM »
The only thing I can recall is that from the very beginning of this scheme, it was always advised, and indeed implemented, that all unused partitions were unmounted before remastering.

I never questioned why this should be done, as I considered it the most reasonable and likely much faster, method of excluding files.

Remasterme by Ivan Iverekes (I think) had something set up to unmount unused partitions. (My memory is open to correction  :D )

It may be there is some - unknown to me - limitation somewhere, that casues the excludes list to bog down when it reaches a particular size, or number of entries. Seems doubtful though.

I wonder if anyone can recall anything about why the unmounting of partitions was the norm ....  from the time of mklivecd.

Sorry ....  no help .....  :(

regards.
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Is this a mylivecd bug ?
« Reply #9 on: September 18, 2011, 08:16:11 AM »
One further question ---     
Why did you add "2>&1" to your command? (From your original post.)     


to join together stderr and stdout on a single stream so that I can redirect both to a ... file ...

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Is this a mylivecd bug ?
« Reply #10 on: September 18, 2011, 08:32:32 AM »
Just18,
Unmounting other partitions is done to prevent the content of those partitions from being included in the ISO.

AS,
Will the command work without that addition?     

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Is this a mylivecd bug ?
« Reply #11 on: September 18, 2011, 08:54:04 AM »
AS,
Will the command work without that addition?     

You mean without --nodir ^/u/ ?
No, doesn't work.

You mean including the content of the /u filesystem ?
didn't tried that ... I'm going to test it...


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Is this a mylivecd bug ?
« Reply #12 on: September 18, 2011, 09:12:55 AM »
I meant the "2>&1," AS.     

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10690
  • MLUs Forever!
Re: Is this a mylivecd bug ?
« Reply #13 on: September 18, 2011, 09:33:30 AM »
Just18,
Unmounting other partitions is done to prevent the content of those partitions from being included in the ISO.
    

The questions .....  why is there a difference between unmounting the partition and excluding it using the --nodir option? ....  and what is the actual difference?

Are there limitations with the --nodir option that means unused partitions should be unmounted and not excluded?

regards.
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Is this a mylivecd bug ?
« Reply #14 on: September 18, 2011, 09:35:13 AM »
I meant the "2>&1," AS.     

Yes, of course, tried also without this, still without success.