Author Topic: Mylivecd challenge  (Read 1612 times)

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Mylivecd challenge
« on: June 24, 2010, 06:40:53 PM »
i'm trying to make a LiveCd/DVD with this script.  Here are the results of my df

Code: [Select]
[frazelle09@localhost ~]$ df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              12G  4.5G  6.8G  40% /
/dev/sda6             443G   46G  398G  11% /home
tmpfs                1013M     0 1013M   0% /dev/shm

All i'm trying to do is to make a LiveCd with the programs i have installed and whatever settings i need from /home

What commands should i be using to accomplish this?

Have a great evening!  :)
« Last Edit: June 25, 2010, 06:04:40 AM by frazelle09 »
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Makelivecd challenge
« Reply #1 on: June 24, 2010, 08:14:24 PM »
i just d/l mondorescue and tried it but it exits due to problems with Mindi???

At least it had some sort of basic GUI to exclude some of my directories.

Well, anyway, hope someone has an idea about mylivecd.

Have a great evening!  :)
« Last Edit: June 25, 2010, 06:05:06 AM by frazelle09 »
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline CAVT

  • Full Member
  • ***
  • Posts: 54
Re: Makelivecd challenge
« Reply #2 on: June 24, 2010, 08:54:57 PM »
The first two or three stickies in this subforum explain quite well how to do a remaster. I think you only need to download drakinstall, and then in the tutorials it explains very well the process, including the exclusion of directories and alikes. One is "2010 remastering" and the other one is "making a good backup" or something similar.

Offline johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1105
  • Make Love Not War
Re: Makelivecd challenge
« Reply #3 on: June 24, 2010, 09:02:59 PM »
Hi frazelle09,
makelivecd has been replaced by mylivecd.
If I recall correctly you just need to enter from the terminal:
umount -a
mylivecd yourfile.iso

There is lots of info in the "sticky" threads, but the script has been rewritten & renamed.
Give it a try.  :)
John

p.s. Better read this first: http://www.pclinuxos.com/forum/index.php/topic,74418.0.html
expert advice!
« Last Edit: June 24, 2010, 09:07:30 PM by johnmart »
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 fishfillet

  • Full Member
  • ***
  • Posts: 221
Re: Makelivecd challenge
« Reply #4 on: June 24, 2010, 09:08:38 PM »
Open up konsole and do the following.

Login as root

$ su

Full update and upgrade of your system

$ apt-get update && apt-get dist-upgrade -y

Install draklive-install

$ apt-get install draklive-install

Delete all the rpms in apt cache directory

$ rm /var/cache/apt/archives/*.rpm

You can also try using bleachbit to clean out other files that you may not need.

Now for some force of habit, I do a reboot as sometimes some upgrades works well after a reboot.  Reboot.

Open again a konsole.  Login again as root.

$ su

Use the remasterme script to create your remaster.  Make sure there are no other devices plugged in to your PC like USB Flash drives, etc.

$ remasterme

Just wait for it to finish.  The iso can be found at the /root directory.  Copy and burn slowly to a good DVD-R.
« Last Edit: June 24, 2010, 09:13:48 PM by fishfillet »

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Makelivecd challenge
« Reply #5 on: June 25, 2010, 06:02:40 AM »
Thanks for answering fishfillet!  i was wondering how to us the script which evidently has replaced the "remasterme" script which is the mklivecd script on a filesystem which has a large /home directory and a not-so-large / directory.  i understand that these scripts will try and backup /home as well and from the info available, as well as my disk space available, will cause the script to fail.

johnmart -- my bad.  i was trying to backup with the mylivecd.  It will not work bec. my /home directory is too large.  i am looking for the cl which will exclude /home/frazelle09/Documents and my /home/frazelle09/smb4k.

Thanks again to all for replying and have a great morning!  :)
« Last Edit: June 25, 2010, 06:07:10 AM by frazelle09 »
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Mylivecd challenge
« Reply #6 on: June 25, 2010, 08:23:02 AM »
In a terminal

mylivecd --help

will display all the options like

--nodir
--nofile

EXAMPLE
                   --nodir=^/home/user/Downloads,^/home/user/Pictures,^/home/user/Music

and so on.
There are lots of examples of their use in the threads on the forum

http://www.pclinuxos.com/forum/index.php/topic,71665.msg588741.html#msg588741

regards.
« Last Edit: June 25, 2010, 08:27:57 AM by JohnBoy »

Offline johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1105
  • Make Love Not War
Re: Mylivecd challenge
« Reply #7 on: June 25, 2010, 06:04:00 PM »
Here is a mylivecd cl that I copied/adapted from a thread comment off kjpetrie. I has examples of selecting & ignoring specific folders for a backup live cd/dvd. The --nodir section is where you might play around. It also moves mylivecd temp area to /home partition which takes lots of space & you have plenty. Note that this cl calls for there to  be /temp & /workdir in your desktop folder. This may give you something to start with.

mylivecd --nodir ^/root/temp,^/root/tmp,^/home,^/mnt,^/media,^/tmp,^/proc,^/dev,^/sys,^/var/lib/drakbackup,^/var/cache/apt/archives --root / --tmp /home/john/Desktop/temp/ --workdir /home/john/Desktop/workdir/ --md5sum pclos2010-05.5.iso

John
« Last Edit: June 25, 2010, 06:15:42 PM by johnmart »
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 djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Makelivecd challenge
« Reply #8 on: June 25, 2010, 06:15:08 PM »
Hi frazelle09,
makelivecd has been replaced by mylivecd.
If I recall correctly you just need to enter from the terminal:
umount -a
mylivecd yourfile.iso

There is lots of info in the "sticky" threads, but the script has been rewritten & renamed.
Give it a try.  :)
John

p.s. Better read this first: http://www.pclinuxos.com/forum/index.php/topic,74418.0.html


expert advice!


Agreed. The link is to a post by Neal. Please note, the instructions refer to mylivecd, which is now the preferred method.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Mylivecd challenge
« Reply #9 on: June 25, 2010, 09:47:12 PM »
Ok, guys.  As you can see, i made a mistake at the beginning of this thread.  i meant to call it mylivecd...

Thanks for all your interest and posts, i really appreciate them!  This is the first time i've gotten so much feedback!

i'm going to try John's cl and modify it a little, but it seems to be very complete.  i hope it makes the iso somewhere in the /home directory.  i'll go back and check anyway to see if there are any directories in /root/tmp that may have been made.  i'm up to about 5 tries now and have already deleted some from there.  Will keep you posted.

Have a great evening!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Mylivecd challenge
« Reply #10 on: June 26, 2010, 09:28:23 AM »
Well, that didn't seem to work either.  Here's the output...

Code: [Select]
[root@localhost frazelle09]# mylivecd --nodir ^/root/temp,^/root/tmp,^/home/frazelle09/Documents,^/home/frazelle09/Documents/smb4k,^/mnt,^/media,^/tmp,^/var/cache/apt/archives,^/home/frazelle09/Desktop --root / --tmp /home/frazelle09/Desktop/temp/ --workdir /home/frazelle09/Desktop/workdir/ --md5sum /home/frazelle09/Documents/fredspclos2010.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.

WARNING: The temporary directory '/home/frazelle09/Desktop/workdir/' will not be removed at exit, please do so manually
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:09/00:00:09]
Setting filesystem parameters:                     [100.00% 00:02:02/00:02:02]
Creating compressed image:                         [100.00% 00:44:31/00:44:31]
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 /home/frazelle09/Documents/fredspclos2010.iso: No such file or directory
Embedding MD5 checksum:
[                                                                            ]Argument "" isn't numeric in division (/) at /usr/sbin/mylivecd line 273.        [  0.00% 00:00:00/00:00:00]Error - Unable to open file /home/frazelle09/Documents/fredspclos2010.iso

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

i did notice that in my /Desktop/workdir directory i have several directories and in "livecd" i still have the "livecd.sqfs" file which is 4.2 Gb.

Have a great morning!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Mylivecd challenge
« Reply #11 on: June 26, 2010, 09:42:04 PM »
After reading some more of the posts in this forum i ran into this one

http://www.pclinuxos.com/forum/index.php/topic,65588.msg541283.html#msg541283

which basically says that if the created iso is > 4 Gb the script fails.

It would appear that i'm not going to be able to create a LiveCd from this script.

i wonder if the script is actually using some sort of compression even though it's not specified in the cl...  i suppose it is since the created sqfs is 4.2 Gb and just my /dev/sda1 is reported as being 4.3G.  i wonder what else it's trying to include.

Oh, well, back to the drawing board.  Have a great evening and thanks for all the posts!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Mylivecd challenge
« Reply #12 on: June 26, 2010, 10:17:17 PM »
Well, we got it to work by excluding all /home.  It created an iso of 1.2G so i suspect that the hidden files in /home/frazelle09/ are a lot.

Have a great evening!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1105
  • Make Love Not War
Re: Mylivecd challenge
« Reply #13 on: June 26, 2010, 10:46:31 PM »
Glad you got a successful iso.
Actually I later ran into a similar size issue which was my vbox machine hidden files. To get around this I created a /guest account. Logged in as guest to remaster which gave me a clean desktop & a simper remaster cl. Sorry, I forgot what my most recent experience was. Since you had to exclude your home anyway this might be interesting to you.
John
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 frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Mylivecd challenge
« Reply #14 on: June 27, 2010, 08:03:55 AM »
Ah, ha!  John!  Thanks a bunch for this tip!  Knowing that it now works i want to research which .directories under /home i can include so i can get as close to the original setup as possible.

Thanks again for the update and have a great morning!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."