LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2008, 01:07 AM   #1
kid_rizal
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Cloning Linux OS


How do i clone over Linux OS into an image file while the Eee PC is offline?

Thinking of installing Win XP and later on if need be, clone back the Linux into the system.

Is it possible in the 1st place?

Kindly reccommend any solutions...thanks in advance.

k|d_r|zal
 
Old 04-23-2008, 01:14 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You image a drive in linux with the dd command. I don't know what you mean by "offline". You need read access to the drive to image it, and someplace to put the image. To restore the image, reverse the dd process - you will also need to restore grub.

Have a look at:
http://wiki.eeeuser.com/
 
Old 04-23-2008, 01:52 AM   #3
kid_rizal
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Simon Bridge View Post
You image a drive in linux with the dd command. I don't know what you mean by "offline". You need read access to the drive to image it, and someplace to put the image. To restore the image, reverse the dd process - you will also need to restore grub.

Have a look at:
http://wiki.eeeuser.com/
Thanks for the tip, Sir.

If its not too much to ask, can someone give me the dd commend for this? and also the reverse dd command as well.

Thanks again.

Sorry newbie here.
 
Old 04-23-2008, 04:12 AM   #4
senramesh
LQ Newbie
 
Registered: May 2007
Posts: 21

Rep: Reputation: 15
You can try the clonezilla http://www.clonezilla.org/clonezilla-live/. You should have enough memory to hold your entire harddisk. The storage location can be a usb drive, external harddrive, network share. You can get to know more on the site.
 
Old 04-23-2008, 05:53 AM   #5
DOTT.EVARISTI
Member
 
Registered: Jan 2007
Location: La spezia ( Italia )
Distribution: Fedora 9 amd 64, Gnome,PCLOS 2007,OpenSuse 11 amd 64,Sabayon 3.4,Xp,Vista
Posts: 248

Rep: Reputation: 31
Red face

Quote:
Originally Posted by kid_rizal View Post
How do i clone over Linux OS into an image file while the Eee PC is offline?

Thinking of installing Win XP and later on if need be, clone back the Linux into the system.

Is it possible in the 1st place?

Kindly reccommend any solutions...thanks in advance.

k|d_r|zal
Other good imaging programs are Partimage and Ghost4Linux..but i usuallly use Clonezilla and suggest you to use it

Good Luck !

Let us know how it goes !
 
Old 04-23-2008, 07:48 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
partimage
Ghost4Linux
Clonezilla

These tools are intended for large scale cloning in commercial environments. Their main advantage is that they only clone the used part of the drive (and ability to re-image drives across a network... OK: their two main advantages are image size, network savvy, and they look cool... three... OK - their many advantages include ... ... I'll start again!)

Anyway - dd will copy every byte, including the zeros - so the image size will be the same size as your disk. Which on the Eee is what? 4 gig?

You will be erasing the main linux install after imaging - and the image restoring programs along with it. You will need to install linux to an external drive, so the Eee can boot off it when you want linux back. (Though this is a way to have dual boot.)

If you have a usb optical drive, a live disk is doable. What's important is that the Eee drive partitions are not mounted when you image the drive.

Assuming that the Eee internal drive is /dev/sda and the storage drive partition is /dev/sde5 then (and it is formatted with a filesystem which can handle 4GiB files) then:

mount /dev/sde5 /media/usbdrive
dd if=/dev/sda of=/media/usbdrive/eee.img

Of course you modify this for your situation. Read the dd manpage for other options to refine this. Many people also want to specify the block size.

If your storage media is the same drive you booted from, then you don't need the mount part.

To put the image back, you reverse the order of the if= and of= arguments

dd if=/media/usbdrive/eee.img of=/dev/sda

You'll need to do a grubinstall if you installed windows.
That wiki site I linked to has a lot of insight into the Eee - make sure you are familiar with how it is designed to work before fiddling.

If you have more that 4 gig it that thing, well done, you should stick the dd through the tar or gzip archiver.

If you stuff up, then you can always just install a full linux. Have fun.
 
Old 04-24-2008, 01:51 AM   #7
kid_rizal
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Hey everyone,

Thanks for all the input. Yupz, the eeePC only has 4GB. Will try out the clonezilla 1st and update if i can get it to work.

Thanks again to all.
 
  


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
Linux Cloning Utilities bostonthunder777 Linux - Software 5 01-24-2008 05:10 PM
cloning a linux user glopv2 Linux - Newbie 8 10-04-2007 04:24 AM
Cloning Linux System from PC->PC ALInux Linux - General 4 07-26-2006 06:09 PM
Linux server for disk cloning? lukeprog Linux - General 2 06-02-2006 03:25 PM
cloning a harddisk on Linux gsbarry Linux - Software 17 04-24-2003 09:36 PM


All times are GMT -5. The time now is 09:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration