Author Topic: 2010 Remastering  (Read 20871 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
2010 Remastering
« on: June 10, 2010, 04:15:51 AM »
There have been many improvements in remastering since 2009. First and foremost is the move to mylivecd, written by Texstar. This new app has features that were not available in mklivecd. For example, editing System Services is no longer necessary, the command needed to remaster has been simplified, the md5sum is added in and lzma compression is used by default.

Once you have your system set up the way you want, have run bleachbit and bleachbit-root to clean up and are ready to remaster, you only need 2 commands:
The first of these is --
Quote
umount -a

This command unmounts all of your other drives / partitions, leaving your root (/) and /home mounted.

The second is --
Quote
mylivecd name.iso

Unless you absolutely need to exclude a directory or subdirectory in your home, no options need to be added.
Choose what name you wish to call your ISO. As an example, for me name would be PCLinuxOS-LXDE-2010.

A word on size:
If you try to remaster too large an install, remastering will fail. Also, if you do not have enough free space in your root directory (/), remastering will fail. To determine the size of your install and the amount of free space available, open a terminal and enter
Quote
df

In the output, look under Used for the amount of space you have filled. The total for your root and home (plus any other system directories you have on a separate partition) should not exceed 10GB.
Next, look under Avail for root (/). This will show you how much free space you have available. If your free space in root is less than the Used space, it is not likely that you will have a successful remaster. I would recommend that you have at least 60% free space available on your root partition.
 
edit: Don't forget to install draklive-install before you run mylivecd.

edit: In a terminal enter mylivecd --help for options.
« Last Edit: May 02, 2011, 04:49:05 AM by Neal »

Tommylee567

  • Guest
Re: 2010 Remastering
« Reply #1 on: June 26, 2010, 08:51:15 AM »
(for those who want to tinker with commands) can add lzma option to the line.
i crunched 12 GB to appox 3.9 GB dvd. Far more than that the script will show errors and stop. Remove some apps and try again.

+1
Good start up for beginners Bro!
  ;)
Tim

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: 2010 Remastering
« Reply #2 on: June 26, 2010, 01:54:56 PM »
(for those who want to tinker with commands) can add lzma option to the line.
i crunched 12 GB to appox 3.9 GB dvd. Far more than that the script will show errors and stop. Remove some apps and try again.

The mylivecd script uses lzma by default, Tim. There is no need to add it. Read the script yourself. You can learn from it.

Quote
+1
Good start up for beginners Bro!
  ;)
Tim

Beginner? Who are you talking to?

Tommylee567

  • Guest
Re: 2010 Remastering
« Reply #3 on: June 26, 2010, 06:57:26 PM »
The way you have made it can be done by beginners. That is the one i was mentioning.

I haven't run the script in the latest version. I'm sorry.

Thanks!
Tim

Offline TheQuest

  • Full Member
  • ***
  • Posts: 148
Re: 2010 Remastering
« Reply #4 on: July 04, 2010, 04:51:16 PM »

Beginner? Who are you talking to?

 :o :o  >:(,   ;D ;D

Take Care
TheQuest 8)
When Nothing is Certain, Anything is Possible.

Offline ternor

  • Hero Member
  • *****
  • Posts: 1791
Re: 2010 Remastering
« Reply #5 on: July 06, 2010, 03:42:32 AM »
I ran BleachBit and BleachBit Root.  One file which appeared for deletion was .xsession-errors.  Is it ok to delete that file prior to attempting to remaster or, for that matter, at any time?

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12493
Re: 2010 Remastering
« Reply #6 on: July 06, 2010, 03:52:00 AM »
I ran BleachBit and BleachBit Root.  One file which appeared for deletion was .xsession-errors.  Is it ok to delete that file prior to attempting to remaster or, for that matter, at any time?

It doesn't matter as it is excluded automatically when you run mylivecd.

my $nofiles        = '^/[.].* ^/fastboot$ /core[.][0-9][0-9]*$ .*~$ .*[.]rpmnew$ .*[.]rpmsave$ [.]bash_history$ [.]fonts[.]cache-[0-9]$ [.]xauth.* [.]wh[.]* [.]xsession-errors$ ^/var/run/ ^/var/lock/subsys/ ^/var/lib/dhcp/ ^/root/.kde4/share/config/kmix* ^/root/.kde4/share/config/phonondevicesrc ^/home/guest/.kde4/share/config/kmix* ^/home/guest/.kde4/share/config/phonondevicesrc ^/etc/modprobe.conf ^/etc/sysconfig/network-scripts/ifcfg-eth* ^/etc/udev/rules.d/70-persistent* ^/etc/asound.state ^/etc/X11/xorg.conf ^/etc/lilo.conf ^/boot/grub/menu.lst ^/etc/modprobe.preload.d/cpufreq ^/etc/sysconfig/harddrake2/previous_hw ^/var/lib/rpm/__db.* ^/etc/sysconfig/finish-install ^/var/lib/speedboot/* ^/etc/modprobe.d/sound ^/var/log/mysqld/mysqlmanager.log';

Thanks to everyone who donates. You keep the servers running.

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 263
Re: 2010 Remastering
« Reply #7 on: July 08, 2010, 12:23:28 PM »
Thank you, Neal, for your instructions. Can you tell me...
1. Is there a menu item for mylivecd as in 2009 mklivecd?  I don't have either.
2. I take it, the remaster can only be done in root?  With 2009, I believe I had a menu item in a user and used that.

Newlife

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: 2010 Remastering
« Reply #8 on: July 08, 2010, 03:10:26 PM »
Thank you, Neal, for your instructions. Can you tell me...
1. Is there a menu item for mylivecd as in 2009 mklivecd?  I don't have either.
2. I take it, the remaster can only be done in root?  With 2009, I believe I had a menu item in a user and used that.

Newlife

The menu entry in 2009 was for mkremaster. It was a frontend to mklivecd. It has not been ported to work with mylivecd as yet. But with the simplicity of mylivecd, it hasn't really been needed.

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 263
Re: 2010 Remastering
« Reply #9 on: July 09, 2010, 11:16:13 AM »
Thanks for your help, Neal.

Last night I tried to make a livecd iso.... Well, it went fairly well. But first I worked in root, and did Bleach's, but in terminal, message said it could not find command for "unmount -a."

I then entered my idea of the mylivecd command.... GRRRRR.

I want to include the root, the draklive-install, and ONE user.  I have three users, "A," "B," and "C."

Would you show me the proper command entry for making this livecd?

Newlife

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: 2010 Remastering
« Reply #10 on: July 09, 2010, 11:22:36 AM »
"unmount -a."

Try
umount -a
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: 2010 Remastering
« Reply #11 on: July 09, 2010, 11:38:11 AM »
If you are keeping user "A," then
Code: [Select]
mylivecd --nodir=^/home/B,/home/C name.iso

Offline eor2004

  • Full Member
  • ***
  • Posts: 105
Re: 2010 Remastering
« Reply #12 on: July 09, 2010, 12:27:49 PM »
Did today my remaster dvd pclinuxos 2010 gnome with all my programs and a user account, all went very well and running fine, this is another thing I like about pc linux, the remaster, thanks Texstar and the pclinuxos team for this usefull application... ;D
PCLinuxOS KDE 2013.02, 32bit
Gigabyte G41M-ES2L--->2GB Ram
Pentium Dual Core 2.60Ghz--->E5300
Western Digital Caviar Blue 500GB HDD
XFS Filesystem

Offline Snapshot

  • Hero Member
  • *****
  • Posts: 610
Re: 2010 Remastering
« Reply #13 on: August 12, 2010, 12:52:27 PM »
I just tried to create a new live cd and here is the result:
[root@localhost snapshot]# mylivecd --nodir=^/home/kansas/ PCLinuxOS2010.7.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: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list


Creating initrd:                                   [100.00% 00:00:04/00:00:04]
Setting filesystem parameters:                     [100.00% 00:00:33/00:00:33]
Creating compressed image:                         [100.00% 00:30:10/00:30:10]
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 PCLinuxOS2010.7.iso: No such file or directory             
Embedding MD5 checksum:
[                                                  [  0.00% 00:00:00/00:00:00]Error - Unable to open file PCLinuxOS2010.7.isosr/sbin/mylivecd line 273.

Illegal division by zero at /usr/sbin/mylivecd line 291.

I ran the command "umount -a" before beginning the process but after 3 attempts at making a live cd I"m still getting the same error message.  What did I leave out?  Thanks.
If fishing is interfering
with your business, give
up your business.
Sparse Grey Hackle
(Alfred W. Miller)

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: 2010 Remastering
« Reply #14 on: August 12, 2010, 01:10:51 PM »
Looks like you don't have enough room available in /tmp to complete the job.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System