Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have made changes in RHEL starting from partition and also I have changed so many parameters. Now I want to use this changed OS as ISO image so that I can directly install it without doing all the stuff again.

share|improve this question
Probably you'll get several different answers to this question - there are many ways - but in Linux all filesystems are ( more or less ) basically extensions to VFS - the kernel's base filesystem. In this way it makes little difference to the kernel if you're installing from a CD image or any other kind of disk image - it's just a file. The quickest way would be like cat $DISK | zcat image.file and restoring is just the reverse action. – mikeserv Mar 17 '14 at 4:05
@mikeserv Thanks for replying. i have made five partitions and i want to reflect these changes and also how much the current os is taking as an .iso image. – subbarao Mar 17 '14 at 4:59
Well, without a little ingenuity, you can't partition an ISO regardless. Still, there's nothing stopping you from having 5 or 20 or as many partitions as you want in any regular file. cp /dev/somedev ./somedev.file will read the block device into a file image. mount ./somedev.file /mnt/somemnt will mount it - so long as you've got properly configured loop devices, and you've had those since at least kernel 2.4 probably. – mikeserv Mar 17 '14 at 5:05
You probably want to look into kickstart – jordanm Mar 17 '14 at 5:35

You can install remastersys and change your OS, finally create an ISO with remastersys.

share|improve this answer
It works on both Ubuntu and Debian distros and any of their derivatives, and doesn't work on RHEL – Maythux Mar 17 '14 at 6:31
I thought it broke like 4 years ago... – mikeserv Mar 17 '14 at 6:43
you can see: bashinglinux.wordpress.com/tag/rhel – PersianGulf Mar 17 '14 at 7:25
you can see: scientificlinuxforum.org/index.php?showtopic=72 – PersianGulf Mar 17 '14 at 7:26
you can see: solidsmoke.blogspot.ch/2008/12/… – PersianGulf Mar 17 '14 at 7:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.