LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-14-2008, 06:03 PM   #1
nkhetia
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
want to create image of customized FC7


Hi Friends,

I've installed fc7 on one of the server and then i customized it. Now i want to install the same image on multiple boxes. For this purpose i need the image of this box on my pxe boot server.

what is the step by step process to do this task ? how can i create the img file for customized fc7..?

i know there is mkisofs command but i dont know which folders need to be included and which option i should use on command line..

thanks in advance..

~N~
 
Old 04-15-2008, 02:34 PM   #2
texasjim
LQ Newbie
 
Registered: Apr 2007
Location: Southeast Texas
Distribution: Ubuntu Hardy Beta
Posts: 3

Rep: Reputation: 0
Try REMASTERSYS

Quote:
Originally Posted by nkhetia View Post
Hi Friends,

I've installed fc7 on one of the server and then i customized it. Now i want to install the same image on multiple boxes. For this purpose i need the image of this box on my pxe boot server.

what is the step by step process to do this task ? how can i create the img file for customized fc7..?

i know there is mkisofs command but i dont know which folders need to be included and which option i should use on command line..

thanks in advance..

~N~
There is a program called REMASTERSYS available in the LinuxMint repo, I have used it for imaging Ubuntu. Sorry I haven't looked for the source code but you should be able to poke around and find it if necessary.
Good Luck
JIM
 
Old 04-16-2008, 05:57 PM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
You could tar.gz the file system to another computer, and then use a live cd/dvd create the partitions on the new computer, download and extract the tar.gz file, then add the bootloader.


archive the new system:

Code:
tar -zcvf / - --exclude /dev --exclude /proc --exclude /sys --exclude /tmp | ssh -p 22 username@ipaddress "cat > archive_name.tar.gz"

On the new computer, use a live cd/dvd to create the new partitions the same as the ones in the /etc/fstab file. Mount them under /mnt, then download and extract the archive filesystem.

Create and mount in the order of the /etc/fstab file, just adjust to suit you partitons, swap doesn't need to be mounted.

Code:
# root
mount -t auto /dev/hda2 /mnt

# home
mkdir -p /mnt/home
mount -t auto /dev/hda3 /mnt/home

# log
mkdir -p /mnt/var/log
mount -t auto /dev/hda4 /mnt/var/log
Retrieve the archive from another computer:

Code:
cd /mnt | ssh -p 22 username@ipaddress "cat archive_name.tar.gz" | tar -xvf - < archive_name.tar.gz
Then create the psuedo-filesystems and /tmp that are not in the archive,

Code:
mkdir -p {dev,proc,sys,tmp}
Then add the bootloader to the new system, which should be grub for fedora.

Code:
chroot . # will chroot the current directory which is /mnt
grub-install /dev/hda
Just change /dev/hda to whatever you hard drives are. This is quick and dirty, but should get you in the right direction.

Last edited by fotoguy; 04-16-2008 at 06:09 PM.
 
Old 04-16-2008, 11:18 PM   #4
nkhetia
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hey Fotoguy... thanks very much... its really cool trick..


thanks agian...

~N~
 
Old 04-17-2008, 11:56 AM   #5
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 nkhetia View Post
Hey Fotoguy... thanks very much... its really cool trick..


thanks agian...

~N~
Glad you find it helpful, that is one of the things I like about Linux. There are always ways of doing things that don't have to be complicated or require downloading and installing a lot of additional software, just make use of what is already there.

You can also do cool things like use this script to create regular backups of your complete systen, or individual directories as well. And later down track you could make a restore disc from a live cd/dvd of fedora 7 that has your archive file on it with a restore script to automate the restore process.

Also I forgot to mention that you need to format your new partitions as well after you have created them.
 
  


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
How to create partition on fc7 kkpal Fedora 2 01-04-2008 12:07 PM
I am facing problem regarding customized linux image ... deepakkonnur Linux - Software 2 12-08-2006 04:28 AM
Burning a customized iso image sidra Red Hat 0 10-30-2006 12:33 PM
BootSplash image Customized kushalkoolwal Debian 15 10-19-2005 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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