LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 07-13-2011, 05:56 PM   #1
exoshwarze
LQ Newbie
 
Registered: Jul 2011
Location: Ontario, Canada
Distribution: I am an avid distro-hopper . I like Arch and Pardus .
Posts: 16

Rep: Reputation: Disabled
Lightbulb What is the exact process involved in creating installable .iso "snapshots" ..


What is the exact process involved in creating installable .iso "snapshots" of your linux system ?

As I am now installing and configuring progressively more difficult distros (ie. Arch Linux, Slackware, Gentoo, Source Mage, etc.) I find that it would now be more convenient to save "snapshots" of my completed systems for later use whenever I feel like a change .

Any help would be greatly appreciated .

Last edited by exoshwarze; 07-13-2011 at 06:03 PM.
 
Old 07-13-2011, 06:10 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Depends, if you want to just have an OS image then it is better to zero your free space with a dummy file and take an image using something like clonezilla. The point of zeroing your free space is to make the image as small as possible.

Code:
dd if=/dev/zero of=~/dummy
rm ~/dummy
Alternatively you could customize the packages on an install disk and rebuild it into it's own bootable live ISO. I have discussed this in another thread.
 
1 members found this post helpful.
Old 07-13-2011, 06:26 PM   #3
exoshwarze
LQ Newbie
 
Registered: Jul 2011
Location: Ontario, Canada
Distribution: I am an avid distro-hopper . I like Arch and Pardus .
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sag47 View Post
Depends, if you want to just have an OS image then it is better to zero your free space with a dummy file and take an image using something like clonezilla. The point of zeroing your free space is to make the image as small as possible.

Code:
dd if=/dev/zero of=~/dummy
rm ~/dummy
Alternatively you could customize the packages on an install disk and rebuild it into it's own bootable live ISO. I have discussed this in another thread.

Okay, but what exactly does

Code:
dd if=/dev/zero of=~/dummy
rm ~/dummy
do ? Do I run this code from within the cloning program, or from the Linux system in question ?
 
Old 07-13-2011, 07:57 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Those commands you run in the terminal. dd is a standard GNU/Unix/Linux command so check it out in the man pages.

Code:
man dd
/dev/zero is a standard device which does nothing but write zeroes as output. So basically you are outputting all zeroes to a single file. Essentially what this does is fill your free space with zeroes so that when your image created from clonezilla is compressed it will be really small because most of the image will be zero. Once you run out of free space then you delete the file ~/dummy. Then take your clonezilla image.

SAM

Last edited by sag47; 07-13-2011 at 08:01 PM.
 
Old 07-16-2011, 11:14 AM   #5
exoshwarze
LQ Newbie
 
Registered: Jul 2011
Location: Ontario, Canada
Distribution: I am an avid distro-hopper . I like Arch and Pardus .
Posts: 16

Original Poster
Rep: Reputation: Disabled
Yes, I know what dd is; I have used it for a while now .

And that's nifty . Thank you . ^^
 
Old 07-16-2011, 12:59 PM   #6
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Quote:
Originally Posted by exoshwarze View Post
Yes, I know what dd is; I have used it for a while now .

And that's nifty . Thank you . ^^
Likewise you can scramble hard drives with /dev/random.
 
  


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
Need solution to "failed to fork PTY" and "error creating the child process" problems Gnusboy Linux - Newbie 4 01-02-2010 07:54 AM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
"failed to execute child process" "Input/output error" fl.bratu Fedora 4 12-15-2008 04:03 AM
Measure "CPU load" and "memory consumption" of a process DaneelGiskard Programming 3 08-30-2007 11:43 AM
SSH "Connection Refused" problem when there is no firewall/router involved in Fedora4 d2army Linux - Networking 5 10-04-2005 05:01 PM

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

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