LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-12-2004, 10:15 AM   #1
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Rep: Reputation: 30
Create a simple Live CD


Hi. I don't know which forum to post this in, but, .....

I would like to create a simple Live CD package for use in experimentation. I do a lot of research that requires a *lot* of computer time. It would be useful if I could use a lot of the (Windows XP) machines in teaching laboratories overnight. These machines do boot up OK with Knoppix disks.

However, a problem is that my research needs large data files, and it's a pain to put these on the hard drives of the machines ahead of time. What I would like to do is create a live cd with my data already on it, so that it can be read from there. I don't need much of the software on the Knoppix CD. I don't even need X running. I do need USB as when experiments have finished, I come around with a USB data key, and copy the results onto it.

How could I do this? Could I make a stripped down version of Knoppix by copying the CD to a harddrive, removing OOffice, GIMP, etc., to make space, putting my data and other programs on it, and then burning another CD? Is there an easier way to do this? A smaller live CD I could use (I need Java, which is present on Knoppx).

Any suggestions?

Cheers,

Ross-c
 
Old 10-12-2004, 11:23 AM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I've never done this, but, this looks like a decent guide.

http://www.linuxjournal.com/article.php?sid=7233

good luck.
 
Old 10-12-2004, 01:14 PM   #3
Rocker
Member
 
Registered: Oct 2003
Location: Atlanta, GA
Distribution: gentoo
Posts: 68

Rep: Reputation: 15
i have done something similar, but using compactflash instead of a cd. its really not that hard after you have done it once. I would start with a gentoo stage1 tarball to give you a basic directory structure, C compiler, and some other basic stuff. then, use busybox for all your binaries. Then you have to compile a kernel with all the modules you think you might need depending on what computers you will need to use it on. Look into isolinux/syslinux for the bootloader. My system is 16MB compressed without any of my proprietary programs installed
 
Old 10-12-2004, 06:25 PM   #4
Motown
Member
 
Registered: Dec 2003
Location: land of oz
Distribution: centos
Posts: 104

Rep: Reputation: 15
There are a lot of good live cd's out there, but they always have issues with limited space. I'd like someone to make a live dvd. Of course, i suppose you might run out of memory pretty quickly with a dvd.

Anyways, one of the distro's I use ( either slackware or debian, can't remember, but i think it's debian) comes with tools to create a live cd. Something to look into.
 
Old 10-13-2004, 08:02 AM   #5
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Original Poster
Rep: Reputation: 30
Hi. I managed to work things out, sufficient for what I was trying to do.

I downloaded a version of DamnSmallLinux, which is already a cut down version of Knoppix.

I then mounted the iso image as per the following command:

mount -o loop -t iso9660 -r dsl0.8.2.iso /mnt/iso

I then copied over the contents to a writeable directory.

cp -r /mnt/iso .

I then added a new directory with all my data and programs.

cp ~ross/EXPERIMENTS iso/EXPERIMENTS

I then found that I had to download a floppy boot image from the same source as I obtained DamnSmallLinux. This may not be necessary, but I couldn't find the boot image in the cdrom image I'd downloaded. The version of DSL linux I downloaded was 0.8.2, and there was no 0.8.2 floppy image. But, the 0.8.0 image worked fine.

cp boot-0.8.0.img iso/boot/isolinux/boot.img

I then created a new cd image using the following command:

mkisofs -r -b boot/isolinux/boot.img -c boot/isolinux/boot.cat -o bootcd.iso iso

Note the -b option for the boot image and the -c option for the catalogue. The catalogue was already present in the DSL disk image. I then burnt this to cd

cdrecord -dev=0,0,0 bootcd.iso

And hey presto, I had a bootable cd with my programs and data on it. As the true file systems were compressed, my data wasn't in any "normal" place, but I found it in /cdrom/EXPERIMENTS. I don't care where the data is as long as I can find it. I'm going to have to copy a java JRE installation there as well, but I don't think that this should be a problem, as I can configure my experiment bash-scripts to do whatever I want and find java where-ever it is.

So, now I have what I need. There is a script for remastering Knoppix (see http://www.knoppix.net/forum/viewtopic.php?t=12578), but my method is simpler (if less flexible).

This will also make it exceptionally easy to distribute my data and programs should anyone ask for them :-)

Cheers,

Ross-c
 
Old 10-13-2004, 08:03 AM   #6
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Rocker
i have done something similar, but using compactflash instead of a cd. its really not that hard after you have done it once. I would start with a gentoo stage1 tarball to give you a basic directory structure, C compiler, and some other basic stuff. then, use busybox for all your binaries. Then you have to compile a kernel with all the modules you think you might need depending on what computers you will need to use it on. Look into isolinux/syslinux for the bootloader. My system is 16MB compressed without any of my proprietary programs installed
BTW: I have a DVD burner on my computer, but burning a DVD of Damn Small Linux might be tending towards overkill :-)

Cheers,

Ross-c
 
Old 10-13-2004, 08:42 AM   #7
Rocker
Member
 
Registered: Oct 2003
Location: Atlanta, GA
Distribution: gentoo
Posts: 68

Rep: Reputation: 15
for the project I was working on when I created this system, I first tried every version of Knoppix and DSL that I could find. They did some weird stuff that didnt make a lot of sense to me, so I made my own. I reccommend doing this to anyone, its not that hard and once you have played with it enough to do it once it becomes very easy to make things like this. Plus, you get exactly what you want and you understand how it works.
 
Old 10-13-2004, 08:47 AM   #8
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Original Poster
Rep: Reputation: 30
PS: I meant to quote Motown's reply when following up the comment about a live DVD, but quoted Rocker's response by mistake.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Create your own custom Live Linux CD mchirico LinuxAnswers Discussion 3 05-16-2019 05:48 PM
simple live cd distro sdat1333 Linux - Distributions 8 07-27-2005 04:27 PM
URGENT: need simple smb live distro Fraudulent Linux - Enterprise 1 04-13-2005 07:09 AM
Create your own Live Linux CD mchirico Linux - General 2 03-15-2005 07:38 AM
May I create my own live cd without the Debian Linux? geraldomanaus Linux - Software 3 08-18-2003 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:01 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