LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-08-2010, 12:42 AM   #1
AJones
Member
 
Registered: Feb 2005
Posts: 95

Rep: Reputation: 16
Creating my own Linux Live DVD


Hi:

I have installed Debian Linux on my computer. Have many software installed. I want to make it into a re installable DVD or Live DVD. Which is th easiest way to do it? I tried live-magic, it does not work.

Thanks,

Regards,
Alan
 
Old 01-08-2010, 01:21 AM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
The easiest way is to create a tarbal (zip) version of your system and bunring it.

tar -cjfp mySys.tar.bz2 /mnt/myactualOS

be sure not to put mySys.tar.bz2 on the same partition if you want to avoid infinite loop.

When you want to restore your system, put the CD in and use
cd /mnt/myNewPartition
tar -xpvf /mnt/cdrom/mySys.tar.bz2

This solution is very easy and restore a perfect system in only a few minutes. Do it from a live-CD if possible. If you don't have addtitional partitions, remember you can use any cifs/smb or nfs network drive to put the backup in.
 
Old 01-08-2010, 05:35 AM   #3
AJones
Member
 
Registered: Feb 2005
Posts: 95

Original Poster
Rep: Reputation: 16
Hi:

All I have is a single P4 computer with a single 250 GB HD, partitioned with MS Windows XP, Kanotix, and Debian. When I try your method from Kanotix partition I get this error

sudo tar -cjfp /media/sda6/home/hilbert/mySys.tar.bz2 /mnt/myactualOStar: Removing leading `/' from member names
tar: /media/sda6/home/hilbert/mySys.tar.bz2: Cannot stat: No such file or directory
tar: /mnt/myactualOS: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

Thanks for your help.

Regards,
Alan
 
Old 01-08-2010, 05:43 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
sudo tar -cjfp /media/sda6/home/hilbert/mySys.tar.bz2 /mnt/myactualOStar: Removing leading `/' from member names
You need to replace
Code:
/mnt/myactualOStar
with the drive/partition you want to backup

Code:
/media/sda6/home/hilbert/mySys.tar.bz2
is the file you will create
Code:
/mnt/myactualOStar
is the drive/partition you want to backup

Quote:
be sure not to put mySys.tar.bz2 on the same partition if you want to avoid infinite loop.

Last edited by repo; 01-08-2010 at 05:45 AM.
 
Old 01-08-2010, 05:48 AM   #5
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
use Remastersys backup
its almost hands free and its GUI too

Remastersys will make a custom livecd/dvd of your debian or ubuntu install
http://www.geekconnection.org/remastersys/

Thats how I make some of mine
http://linux.softpedia.com/progMoreB...isX-31789.html

its pretty cool

if you need help with it holler back
 
Old 01-08-2010, 05:49 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
I have installed Debian Linux on my computer. Have many software installed. I want to make it into a re installable DVD or Live DVD. Which is th easiest way to do it? I tried live-magic, it does not work.
If you want to create live cd/dvd from your running system, take a look at remastersys
http://www.geekconnection.org/remast...ersystool.html

EDIT:
Damned
The remastersys guru was faster :-)

Last edited by repo; 01-08-2010 at 05:53 AM.
 
Old 01-08-2010, 05:51 AM   #7
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
LOL
I got you this time Repo
 
Old 01-08-2010, 07:30 AM   #8
AJones
Member
 
Registered: Feb 2005
Posts: 95

Original Poster
Rep: Reputation: 16
Hi:

I am trying to use remastersys, I am using the remastersys with gui. In the end it states hilbert.iso is created in /home/remastersys/remastersys. But I dont find anything in this directory. What might have gone wrong?

Thanks

AJ
 
Old 01-08-2010, 07:36 AM   #9
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
OH

what system are you using?
debian lenny?

uh, do you have aufs-modules and squashfs-modules installed?
did you reboot after installing them then run remastersys-gui?
 
Old 01-08-2010, 07:53 AM   #10
AJones
Member
 
Registered: Feb 2005
Posts: 95

Original Poster
Rep: Reputation: 16
Hi:

This is the error I get while I am using remastersys.

E: Couldn't find package squashfs-modules-2.6.24-3-kanotix
Checking if the /home/remastersys/remastersys folder has been created
Copying /var and /etc to temp area and excluding extra files
find: /home/remastersys/remastersys/dummysys/var/crash: No such file or directory
Setting up live options for dist mode
update-initramfs: Generating /boot/initrd.img-2.6.24-3-kanotix
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
Copying your kernel and initrd for the livecd
Creating filesystem.squashfs ... this will take a while so be patient
/usr/bin/remastersys: line 403: [: 32-r2: integer expression expected
Adding stage 1 files/folders that the livecd requires.
Adding stage 2 files/folders that the livecd requires.
ls: /home/remastersys/remastersys/ISOTMP/live/filesystem.squashfs: No such file or directory
/usr/bin/remastersys: line 494: [: : integer expression expected


Guess I will have to install squashfs-modules-2.6.24-3-kanotix

Thanks
AJ
 
Old 01-08-2010, 08:31 AM   #11
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
yeah
its not really made for Kanotix

you will have to find those modules
if they exist
 
Old 01-08-2010, 08:52 AM   #12
AJones
Member
 
Registered: Feb 2005
Posts: 95

Original Poster
Rep: Reputation: 16
Hi:

I installed sqaushfs-modules-2.6.24-3 kanotix etc and I get this error.

Checking if the /home/remastersys/remastersys folder has been created
Copying /var and /etc to temp area and excluding extra files
find: /home/remastersys/remastersys/dummysys/var/crash: No such file or directory
Setting up live options for dist mode
update-initramfs: Generating /boot/initrd.img-2.6.24-etchnhalf.1-686
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
Copying your kernel and initrd for the livecd
Creating filesystem.squashfs ... this will take a while so be patient
/usr/bin/remastersys: line 403: [: 32-r2: integer expression expected
Adding stage 1 files/folders that the livecd requires.
Adding stage 2 files/folders that the livecd requires.
ls: /home/remastersys/remastersys/ISOTMP/live/filesystem.squashfs: No such file or directory
/usr/bin/remastersys: line 494: [: : integer expression expected


Also I tried sudo tar -cjfp /media/sda6/home/hilbert/mySys.tar.bz2 /dev/sda3

I get these errors

tar: Removing leading `/' from member names
tar: /media/sda6/home/hilbert/mySys.tar.bz2: Cannot stat: No such file or directory
tar: /dev/sda3: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors


I just want a Live installable CD. I find that tar option to be easy but it is not working.

Thanks for your help,

Regards,
AJ
 
Old 01-08-2010, 09:01 AM   #13
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
um
look at the remastersys scripts in /usr/bin

open any of them with a text editor and turn on "show line numbers"
then go to that error line
and see what it says...

it seems like its still missing something
 
Old 01-08-2010, 09:27 AM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
I just want a Live installable CD. I find that tar option to be easy but it is not working.
Tar will not create a live CD, it will backup your system to a compressed file.
You can burn this file to a CD/DVD, and restore the system in case of problems.
However, it will not create a CD/DVD from which you can boot.
 
Old 01-08-2010, 09:27 AM   #15
AJones
Member
 
Registered: Feb 2005
Posts: 95

Original Poster
Rep: Reputation: 16
Hi

This what line 403 states

if [ "$SQUASHFSVERSION" -lt "33" ]; then

SQUASHFSOPTSHIGH=""

else

SQUASHFSOPTSHIGH="-no-recovery -always-use-fragments"

fi

echo "Adding stage 1 files/folders that the livecd requires."


This is what line 494 states

if [ "$SQUASHFSSIZE" -gt "3999999" ]; then
echo " The compressed filesystem is larger than the iso9660 specification allows for a single file. You must try to reduce the amount of data you are backing up and try again."
echo " The compressed filesystem is larger than the iso9660 specification allows for a single file. You must try to reduce the amount of data you are backing up and try again.">>$WORKDIR/remastersys.log

Thanks for your help

Regards,
AJ
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Live CD for Linux Mint XFCE version alkanetexe Linux - Distributions 5 01-16-2009 10:38 AM
Creating a Linux Live CD Hal Linux - General 3 04-11-2006 03:22 AM
Probs Creating a MultiBoot Live Linux CD UltimateLinux Linux - General 14 02-06-2005 09:50 AM
Creating a Live-Linux CD dtheorem Linux - Software 1 10-27-2003 02:05 PM
creating live linux on cdrom hardigunawan Linux - General 3 11-05-2002 11:14 AM


All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration