LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-07-2012, 03:10 PM   #1
concsk
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
Partitioned LINUX, need dd command to obtain image


I need to obtain an OS image (for recovery purposes). The Primary is as below:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 514048+ 83 Linux
/dev/sda2 65 956 7164990 83 Linux
/dev/sda3 957 1593 5116702+ 83 Linux
/dev/sda4 1594 4427 22764105 5 Extended
/dev/sda5 1594 1848 2048256 83 Linux
/dev/sda6 1849 2103 2048256 83 Linux
/dev/sda7 2104 2167 514048+ 83 Linux

/var is on another disk as below:
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1275 10241406 82 Linux swap
/dev/sdb2 1276 1912 5116702+ 83 Linux
/dev/sdb3 1913 2167 2048287+ 83 Linux

/dev/sdb3 on /var type ext3 (rw) <---mounted


This is the command I have been using on other servers ("of" is a mounted NFS disk:

dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /mnt/server/server.img.gz

Is there a way to structure the "dd" command using two sources? If not, then how can I get the full copy from sda and the partition from sdb in one image?

Thank you in advance for your help!

Connie
 
Old 05-07-2012, 04:35 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,381

Rep: Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382
I never like using the noerror option.

To do two tasks, you have to generally finish one then copy the next in some script.

Clonezilla, partimage or such may allow this task.

If you want you can try g4u. It is basically what you have there except it uses ftp account to store info. Still have to do one at a time.
 
  


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
How to obtain Image from zImage? Ho0ligaN Programming 8 11-30-2010 06:04 PM
Need to know the command which shows all non-partitioned & partitioned hard drive saidul Linux - Newbie 2 12-04-2007 04:02 PM
How to obtain .s files with make command? Azrai Programming 1 07-14-2006 07:50 PM
Is there a command to obtain uname info remotely sohos Linux - Newbie 2 01-12-2006 08:58 AM


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