LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 03-22-2005, 06:54 PM   #1
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 322

Rep: Reputation: 31
happy with my system wanna make an image?


Ive got my system exactly how i like it, is it possible to make an image of it if things went wrong in the future? So i could just re-image my laptop if it did?
 
Old 03-22-2005, 07:03 PM   #2
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I tend to dd or cp -a the partitions to another drive on the desktop machines... Not sure how best to do this on a laptop tho... It depends on the HD size and whether you have it networked and where you want to store the image...
 
Old 03-22-2005, 07:12 PM   #3
SirGertrude
Member
 
Registered: May 2004
Location: Missouri
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
To make an image of your system EXACTLY as it is now, you may want to use a program like Symantec Ghost or Acronis True Image.

When I create a system backup I create a tarball of the entire system with the exception of a few folders. This is how I do it:

First make a directory called backup in the root directory
Code:
mkdir /backup
If you have a Windows machine on your network and Samba on your laptop you could mount a network share at /backup and put the backup on another machine (Optional)
Code:
smbmount //winclient/path /backup -o username=username
Then create a compressed tarball of all relevant files/folders in the root directory
Code:
tar --exclude=/backup/* --exclude=/dev/* --exclude=/mnt/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* -cvzf /backup/backup.tar.gz /
This will create the file "backup.tar.gz" in the /backup folder without unnecessary files contained in the /dev, /proc, /sys, and /tmp folders.

This is a very simple yet effective way to create a backup of your system.
 
Old 03-22-2005, 07:55 PM   #4
windowsrefugeeX
Member
 
Registered: Apr 2004
Posts: 272

Rep: Reputation: 30
would mkisofs work on it? then just transfer the iso 2 another device say dvd or hdd?
 
Old 03-23-2005, 12:44 AM   #5
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
ghost4unix is the way to go for something like this, all you need is another system running an ftp server that you can connect to that has enough disk space to store a compressed image file http://www.feyrer.de/g4u/
 
Old 03-23-2005, 10:15 AM   #6
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 322

Original Poster
Rep: Reputation: 31
Cool good stuff guys...

Ill try the ghost one as ive always sued ghost on windows environments. I if did do it the mkdir then tar way how would i re-image the machine exactly how it was before a major messup????
 
Old 03-23-2005, 03:39 PM   #7
SirGertrude
Member
 
Registered: May 2004
Location: Missouri
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
If you need to restore the system using the tarball, there are several ways to do it. If you have the tarball on a networked PC, you could boot to a live CD (knoppix is great) and restore it. To do this you would need to:

1. Boot live CD. When using Knoppix it would be preferable to use runlevel 2: "knoppix26 2" at the prompt would boot knoppix with the 2.6 kernel in runlevel 2

2. Format the partition that needs to be restored. ex: mkfs.reiserfs /dev/hda2

3. Make a directory for A. The network share, and B. The local hard drive partition to restore
Code:
mkdir /mnt/network
mkdir /mnt/harddrive
4. Mount the Network drive and local partition to restore:
Code:
smbmount //192.168.1.2/path /mnt/network -o username=username
mount /dev/hda2 /mnt/harddrive
5. cd /mnt/harddrive

6. tar -xzvf /mnt/network/backup.tar.gz

7. cd / ;umount /dev/hda2 ;reboot

Note: 1. Be careful that your partitioning scheme allows you to do this, if you have a different partition for /usr, /home, etc you will need to tweak it a little bit. 2. Depending on your partitioning scheme, you may need to restore the MBR with lilo... /sbin/lilo

There are many conditions to worry about when using this method, therefore you may not want to do this if you have sensitive data on your system unless you are very farmilliar with the process.

I have used Symantec Ghost with Reiserfs 3.6, but I do not know if it works with other filesystems.
 
Old 04-15-2005, 08:21 PM   #8
alejandroye
Member
 
Registered: May 2004
Location: SOUTH FLORIDA USA
Distribution: MANDRIVA / CENTOS
Posts: 132

Rep: Reputation: 15
ok, let me ask, what going to be better if I just want to upgrade a bigger hard drive in the computer and I want to keep the same information and system that I already have. I hear about PARTIMAGE, is good? or there is a GHOST for linux or linux for windows will work as same making the linux image?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hint: Wanna try Linux, so wanna rig your Windows system to dual-boot? sundialsvcs Linux - Newbie 2 08-16-2005 02:56 PM
how to make an image of your system? Lleb_KCir Linux - General 8 10-25-2004 03:47 PM
Install succeeded!! Very happy, wanna share with you guys! bruno buys Debian 5 07-12-2004 10:18 AM
How to make a image file for my disk( Including win2000&Redhat Linux system)? teradyne Linux - Software 3 06-02-2004 04:25 AM
Make your hardware happy. itsjustme Linux - Hardware 4 11-02-2003 07:09 PM


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