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 04-01-2004, 11:51 AM   #1
jsokko
Member
 
Registered: Mar 2004
Location: Phila, PA
Distribution: SuSE 9.0 / RH 9 / Slackware 9.1
Posts: 110

Rep: Reputation: 15
Question: How to create a bootable install custom ISO?


Hey folks,

I am looking into replicating our base install to quickly image new machines. What tools are available to do such a thing? This install image should fully copy fs & LILO settings including software RAID.

Any suggestions / solutions?

TIA.
 
Old 04-01-2004, 11:56 AM   #2
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
If the machines are identical, you can use 'dd':
dd if=/dev/hda of=/file.img
If they aren't, you will need to create scripts to create partitions and install lilo. In that case just copy the files to the cd and use a script to copy them back..
 
Old 04-01-2004, 12:05 PM   #3
jsokko
Member
 
Registered: Mar 2004
Location: Phila, PA
Distribution: SuSE 9.0 / RH 9 / Slackware 9.1
Posts: 110

Original Poster
Rep: Reputation: 15
Very cool.

And yes, the hardware is identical.

Will that command work if my HD partitions are set this way?

/dev/hda:

swap = hda1
boot = hda2
RAID 1 = hda3

/dev/hdc:
swap = hdc1
tmp = hdc2 (did this just so the two HDs matched in partition size)
RAID 1 = hdc3
 
Old 04-01-2004, 12:11 PM   #4
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Make images out of both /dev/hda and /dev/hdc (obviuosly you can't make an image of the same hd you're currently using, and the hd's will need to be unmounted). Then put them on a cd, and 'dd' them back:
dd if=/file.img of=/dev/hda
 
Old 04-01-2004, 12:14 PM   #5
jsokko
Member
 
Registered: Mar 2004
Location: Phila, PA
Distribution: SuSE 9.0 / RH 9 / Slackware 9.1
Posts: 110

Original Poster
Rep: Reputation: 15
will do, sir.

thanks for the quick reply. I'll post again after I try it out... after I get openSSL working.
 
Old 04-19-2004, 12:17 PM   #6
jsokko
Member
 
Registered: Mar 2004
Location: Phila, PA
Distribution: SuSE 9.0 / RH 9 / Slackware 9.1
Posts: 110

Original Poster
Rep: Reputation: 15
Issues with dd:

I'm not completely sure but it seems that dd does a complete datadump of the mounted device. This obviously is an issue when the mount point is partitioned at 40GBs.

So is there a better solution that allows you to copy LILO and all system files and some app files (as per user selection) into an image? or is this still doable with dd?
 
Old 04-20-2004, 07:54 AM   #7
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Not sure what your problem is, but if 'dd' doesn't work, then the alternative would be to just copy the files and use scripts to make partitions and install lilo.
 
  


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
Create bootable ISO? twistedpair Linux - General 11 11-13-2005 11:27 PM
how to create an iso BOOTABLE abd_bela Debian 1 06-04-2005 08:07 PM
making custom bootable CD out of ISO? slackman Slackware 5 12-01-2003 01:16 PM
custom bootable iso with my own kernel? sneakerski Slackware 1 09-30-2003 05:33 AM
unable to create a bootable cd from iso image abhijit Linux - Newbie 4 09-01-2003 05:16 PM


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

Main Menu
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