LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-26-2006, 10:30 PM   #1
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Rep: Reputation: 38
Create my own live cd or image?


Hello, not sure where to start but after installing/downloading all software and drivers and after tweaking a system you could say that a lot of blood sweat and tears have gone into a pc. especially the downloading part takes hours to complete, updates en additional software. now, besides configuring a system i would like to use it too and, believe it or not, but there is life outside the (linux) box. i have a wife, 3 kids and a job to go to so it would be nice if there was a way that all this hard work can be backed up in the form of a live cd/dvd that can be used on multiple pc's. another solution would be more of a compromise in the form of a backup made with partimage. the trouble here is that you need to have (correct me if i am wrong) a hard drive wise identical setup on the 'clone' machines or else you get all sorts of boot problems. i was never able to succesfully manually install a bootloader and i (which is only one person) have never seen lilo work, so grub gets the favour. a live cd (ubuntu does a good job at it in my opinion) sets up the bootloader for you. this one, unlike the mepis one, recognizes all existing os's and they all boot from it too. big plus for me! is there anyone out there that understands or just recognizes this problem and/or has a solution to it? i am sure this would be very usefull to many, not just me.

thanks
Ron.
 
Old 10-27-2006, 03:42 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Perhaps if you backed it up to another machine? Do you have one?
Code:
dd bs=1M if=/dev/hda | gzip | ssh user@remote 'dd of=hda.gz'
This backs up a harddisk to a remote machine
 
Old 10-27-2006, 05:34 AM   #3
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
Good Day

go visit http://www.linux-live.org/, here are scripts to create a live CD from your installed Distribution.

Cheers
 
Old 10-27-2006, 11:18 AM   #4
operator10001
Member
 
Registered: Mar 2006
Distribution: debian sarge
Posts: 222

Rep: Reputation: 30
there are also some goodies from morphix.
 
Old 10-29-2006, 08:47 AM   #5
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
Thanks, I will check out the posibilities suggested and report back my experiences. I have other machines to play with. and i will check out that website for the live cd's first as that comes closest to what i want.
 
Old 10-29-2006, 04:38 PM   #6
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Quote:
Originally Posted by wabbalee
Hello, not sure where to start but after installing/downloading all software and drivers and after tweaking a system you could say that a lot of blood sweat and tears have gone into a pc. especially the downloading part takes hours to complete, updates en additional software. now, besides configuring a system i would like to use it too and, believe it or not, but there is life outside the (linux) box.
I know exactly how you feel

Quote:
it would be nice if there was a way that all this hard work can be backed up in the form of a live cd/dvd that can be used on multiple pc's.
As already pointed out in this post, there is the livecd-scripts to create a livecd of your current system. I found the scripts did not work for me so I decided to build my own from scratch, but this is only the start my main aim is to create an installation cd that will have everything already installed so I don't have to install or configure any additonal software

Quote:
the trouble here is that you need to have (correct me if i am wrong) a hard drive wise identical setup on the 'clone' machines or else you get all sorts of boot problems.
The disks don't have to be the same size, just as long as they are not smaller than the size of the data. For example if you have 40 GB drivr with 3GB of data you can place it on a 5GB disk, you just need allow enough space for the OS to work plus some space for users home directories.

The beauty of linux is the /proc and /sysfs that the kernels use, these are psuedo-filesystems. Which basically mean these are dynamic and detect all the hardware of the machine at bootup. I have actually migrated a linux OS from a very old machine to a brand new one without any dramas. They only thing you will have problems with is the video card settings, for me I just cheated a bit and used some programs that knoppix livcd uses and build my own script that detects and creates the xorg.conf on the fly.

Quote:
i was never able to succesfully manually install a bootloader and i (which is only one person) have never seen lilo work, so grub gets the favour.
OK I have never had this trouble, but I personally prefer grub over lilo. Grub just seems to be far superior as a bootloader, it has a file that can be used to boot cdrom's, as far as I know lilo cannot boot cdrom's.
 
Old 10-31-2006, 07:08 AM   #7
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
Thanks for all replies, I have tried http://www.linux-live.org/ and for me too the scripts did not work. I would like to know how fotoguy progresses with his live cd/dvd. i am not so saffy with all things linux, i find every bit of software that i can get to work besides office apps, internet and everything else that is pretty standard in a distro, an accomplishment. i prefer not to use windows specific software under wine but i found that sometimes 'cheating' gets the job done.

and to respond to what Bruce Hill says about backing up a harddrive on a remote machine, would it be the same if i made a backup with partimage and then write it back to the other machine? it is just that i understand partimage reasonably well.

ron
 
Old 10-31-2006, 07:58 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I know nothing of partimage at all. You could use Ghost and backup your entire disk. Whichever app you choose, please read the directions carefully. If you have questions, try and post something such as:

Ghost says it can backup a partition to an image. Which partition should I backup? This is the output of "fdisk -l" on my hard drive:
Code:
root@silas:~# fdisk -l

Disk /dev/sda: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1913    15366141    7  HPFS/NTFS
/dev/sda2            1914        4345    19535040    c  W95 FAT32 (LBA)
/dev/sda3            4346        8296    31736407+   5  Extended
/dev/sda4            8297        9039     5968147+   c  W95 FAT32 (LBA)
/dev/sda5            4346        4406      489951   82  Linux swap
/dev/sda6            4407        5135     5855661   83  Linux
/dev/sda7            5136        5864     5855661   83  Linux
/dev/sda8            5865        8296    19535008+  83  Linux
and what is this "image" that I am backing up to?

Then you show that you've working with us and we know how far you got before you needed help.
 
Old 11-01-2006, 09:18 AM   #9
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
partimage lives on the mepis live cd and i have worked with that before. i also know of a program called ghost but i believe that is from symantec and works under ms dos (the old version i know anyway). sooner or later i will give this a try but first i want to resolve a few problems i have on my system. this may take some time all together as i have many other things to do. i am also new to forums in general so if here or there i don't use the forum correctly then i apologise, i am in the process of learning and i have a hard time understanding.
 
Old 11-02-2006, 07:19 PM   #10
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Quote:
Originally Posted by wabbalee
I would like to know how fotoguy progresses with his live cd/dvd
The live cd is completed to some degree, I original used slackware 10.0 to create a few prototypes while waiting for slackware 11.0 to be released. The original idea came about 4 years ago, most distro come on 2-4 cd's and most installed a lot of extra programs that aren't needed, but too not install them you have to spend time going through manually and removing the ones you don't want, and then have to install after the installation is finished, all the programs that cannot be placed on the released distro.

But the original plan was not to create a live cd, but to create an installation cd, one that had all my preselected software ready to install and would fit onto a single 700MB cd. I then built a nice graphical interface, similar to redhat's anaconda installer, that was based on GTK+ for nice eye candy.

For the preselected software I used a spare partition and installed from the original slackware 10.0 discs only the softeare that I needed, doing it this way is exactly the same as going through the installation procedure with the boot disc, just is done manually. Once that was completed I tarred and gzipped the whole partition to a single file called base.tar.gz

Now the beauty of a tarred and gzipped file is it's about 1/3 the size of the original. The original install size was about 1.4 GB, after the compression is was about 550MB. My GTK+ based installer ran perfect while an xserver and a desktop like kde,gnome or XFCE4 was running so I grabbed my base.tar.gz and the installer and placed it on a knoppix live dvd to test the installer.

Once that was all working fine I wanting to create my own live dvd rather than using the knoppix dvd. I had to make it a live dvd since I used the original partition I had installed on, and it was about 1.4GB. After that I recompiled a 2.6.17.11 kernel with unionfs and squashfs support so I could use squashfs to compressed the file system on install partition. This would have the same compression ratio and doing a tarred/gzipped file.

Now that has worked I'm going to make the live cd as small as possible, hopefully around 100MB with an xserver so I can go back to the original plan of using a tarred/gzipped file and the installer only.

This is just an brief outline there is also a lot of other little things that go on in the background that I probably forgotten about, it's been ongoing for a few months now, very time consuming, i'm just lucky I have the time at the moment.
 
Old 11-03-2006, 03:44 AM   #11
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
Good Day

If you want to create your own distribution..then goto

http://www.gnewsense.org/Builder/How...uxDistribution

It has scripts etc..but you will need a high bandwidth connection

Cheers
 
Old 11-03-2006, 07:40 AM   #12
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
That is quiet a project, fotoguy, i can imagine the time consumption involved but it is way over my head. i simply can't get my head around it and the fact that it is extremely time consuming makes it all the more impossible for me to ever go down this road. i need to get it all to work first and then back it up onto a dvd i think and go from there. the difference in your experience level and mine is huge, i can tell by all the actions you have taken to get to the stage where you are now. i must say that i have got a good working system now with kubuntu but i find at times it is harder to configure than mepis when it comes to getting root acces in x for example. for a guy with my level of experience this is a very convenient feature. i try to understand as much as i can, like anyone else, but we are not all experts here, some of us are x users and if x doesn't offer facilities for certain actions we are lost in commandline cyberspace.

then to reply on shawn bisshop's idea i am looking at the site and i see a lot of (for me) dreaded terms and the allmighty command line actions involved. it is just too complicated for me. and my adsl connection is only a marginal 55kb/s download (crawl) speed.

i have now installed SimplyMepis 6.0 with low res (because of another problem) on my machine in a new partition, still running the upgraded SimplyMepis 3.4 (to a Debian flavor because of a messy sources.list)where i can't get nvidia drivers to work because of missing kernel headers and kubuntu dapper with all hardware working fine but with root priviledge problems.(idiot operator). I will install what i want on the SM6.0 installation if i can get nvidia right here because if i start the live cd without boot options selected it will not go into x. problems problems problems! don't know why, it is not that i have the crappiest system in the world, it is a P4 2.4ghz, asus mobo, 80gb and 40gb hd, 512mb ram, 64mb asus 7100 pro vga. pretty standard if you ask me. i don't have these problems with sm60 on other (newer) pc's that i have built and sold.

i will keep on fiddling around, if i ever find a solution that is to a satisfying level for me i will post my actions. thanks all for your help.

ron
 
  


Reply



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
What is the best way to create a SLED 10 image? rsmccain SUSE / openSUSE 4 07-11-2006 11:22 AM
FC3 and create image zillah Linux - Software 5 10-26-2005 03:46 PM
Help: Create boot image _InTeNsDoWn_ Linux - General 4 09-02-2005 07:59 PM
not able to create an image.... os2 Linux - Software 2 08-31-2005 05:26 PM
Create an .iso image bentman78 Linux - Software 9 07-02-2004 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:09 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
Open Source Consulting | Domain Registration