LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-29-2004, 06:55 AM   #1
soso
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
how to make a customized distribution in a bootable CD


hi guys,

I'd like to make a customized linux system with LFS, and add some applications like iptables, aide, snort into the distribution, then strip off all unnecessary library files of LFS which is installed first (some suggestions on it? how do I know which part is most important?). I also need to make a bootle CD with the distribution inside. So after booting the system with the CD, I can install my self-made linux system on any machine.

Any suggestion would be appreciated.

Thank you in advance.

Best Regards,
kurt
 
Old 03-29-2004, 06:58 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Setup the distro on an hd
Copy the hd to an image file
Setup floppy to boot from image file
Put both on cd.
 
Old 03-29-2004, 07:57 AM   #3
soso
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
hi aaa,
Thank you for your reply.
Could you please be more specific on the whole process? or give some links which have direction on how to do it.

My another quesiton is that how to let the CD like redhat distrition to install new system automatically with less usr's interactive operation. Is there a project exsted can help do that?

Thank you in advance.

BR,
kurt
 
Old 03-29-2004, 11:57 AM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Set up the distro the way you want on a hard drive. It will have to be <700 mb, or you will have to use special compression. Then copy to image file:
First make the file:
dd if=/dev/zero of=/imagefile bs=1k count=[size you need in kb]
Format:
mke2fs /imagefile
Mount:
mount /imagefile /mnt/distro on file -o loop
Copy:
cp -a /mnt/distro_on_hd/* /mnt/distro_on_file
Unmount:
umount /mnt/distro_on_file
Now you have the ditro on a file. As for what to do after this, I'm not sure exactly how to do it. You can examine Knoppix to see how it's done, and there's lots of howtos on Google. You will need to make a bootdisk that mounts and switches to a ramdisk, which has links to bigger files on the cd (in the image file).

For auto-install: Red Hat has Kickstart
 
  


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
Make a customized OS ashkan_G Linux - General 2 03-19-2005 03:14 PM
Creating Bootable Cd distribution Nikolay Linux - Distributions 3 11-03-2004 02:32 PM
bootable repair linux distribution ViralHex Linux - Distributions 2 08-08-2004 01:31 AM
bootable repair linux distribution ViralHex Linux - General 2 08-06-2004 04:53 PM
bootable repair linux distribution ViralHex Linux From Scratch 2 08-06-2004 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:16 AM.

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