PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 26, 2012, 05:02:19 PM


Login with username, password and session length


Pages: [1] 2 3   Go Down
  Print  
Author Topic: 2010 Remastering  (Read 15131 times)
Neal ManBear
Administrator
Super Villain
*****
Offline Offline

Posts: 15193


LXDE! Coffee, Bacon and Cheesecake!


« on: June 10, 2010, 05: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.
Logged

Tommylee567
Full Member
***
Offline Offline

Posts: 234


Ima Robo PCLOS!


« Reply #1 on: June 26, 2010, 09: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!
  Wink
Tim
Logged

Neal ManBear
Administrator
Super Villain
*****
Offline Offline

Posts: 15193


LXDE! Coffee, Bacon and Cheesecake!


« Reply #2 on: June 26, 2010, 02: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!
  Wink
Tim

Beginner? Who are you talking to?
Logged

Tommylee567
Full Member
***
Offline Offline

Posts: 234


Ima Robo PCLOS!


« Reply #3 on: June 26, 2010, 07: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
Logged

TheQuest
Full Member
***
Offline Offline

Posts: 148


« Reply #4 on: July 04, 2010, 05:51:16 PM »


Beginner? Who are you talking to?

 Shocked Shocked  Angry,   Grin Grin

Take Care
TheQuest Cool
Logged

When Nothing is Certain, Anything is Possible.
ternor
Hero Member
*****
Offline Offline

Posts: 1438



« Reply #5 on: July 06, 2010, 04: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?
Logged

Texstar
Administrator
Super Villain
*****
Offline Offline

Posts: 11805



« Reply #6 on: July 06, 2010, 04: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';
Logged

Follow the development of PCLinuxOS on Twitter
Help fund the PCLinuxOS project!

"I'm not so good on advice, can I interest you in a sarcastic reply?"
Newlife
Full Member
***
Offline Offline

Posts: 228


« Reply #7 on: July 08, 2010, 01: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
Logged
Neal ManBear
Administrator
Super Villain
*****
Offline Offline

Posts: 15193


LXDE! Coffee, Bacon and Cheesecake!


« Reply #8 on: July 08, 2010, 04: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.
Logged

Newlife
Full Member
***
Offline Offline

Posts: 228


« Reply #9 on: July 09, 2010, 12:16:13 PM »

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
Logged
Joble
Global Moderator
Hero Member
*****
Offline Offline

Posts: 6848


USA - Mountain Time


« Reply #10 on: July 09, 2010, 12:22:36 PM »

"unmount -a."

Try
umount -a
Logged

Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System
Neal ManBear
Administrator
Super Villain
*****
Offline Offline

Posts: 15193


LXDE! Coffee, Bacon and Cheesecake!


« Reply #11 on: July 09, 2010, 12:38:11 PM »

If you are keeping user "A," then
Code:
mylivecd --nodir=^/home/B,/home/C name.iso
Logged

eor2004
Full Member
***
Offline Offline

Posts: 68



« Reply #12 on: July 09, 2010, 01: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... Grin
Logged

PCLinuxOS 2010 Gnome, Gigabyte g41m-es2l, Ultra ddrII 2gb ram, Pentium dual core 2.60, Western Digital sata 320gb hdd.
Snapshot
Hero Member
*****
Offline Offline

Posts: 532



« Reply #13 on: August 12, 2010, 01: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.
Logged

If fishing is interfering
with your business, give
up your business.
Sparse Grey Hackle
(Alfred W. Miller)
Joble
Global Moderator
Hero Member
*****
Offline Offline

Posts: 6848


USA - Mountain Time


« Reply #14 on: August 12, 2010, 02:10:51 PM »

Looks like you don't have enough room available in /tmp to complete the job.
Logged

Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM