LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 10-23-2005, 10:44 PM   #1
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA
Distribution: Debian Squeeze, SuSE 11.0, F8, F10, F11 x86_64
Posts: 1,130
Thanked: 16
Post DISCUSSION: How To Do Eveything With DD


[Log in to get rid of this advertisement]
This thread is to discuss the article titled: How To Do Eveything With DD
AwesomeMachine is offline  
Tag This Post
Reply With Quote
Old 10-28-2005, 01:04 PM   #2
sk545
Member
 
Registered: Aug 2002
Posts: 309
Thanked: 0
wow, excellent.
sk545 is offline     Reply With Quote
Old 03-12-2006, 07:29 PM   #3
Rich309
LQ Newbie
 
Registered: Feb 2006
Location: Iowa
Posts: 4
Thanked: 0
Do you mean to say BS= can not be less than 512? I have run it at 2 and it seem to work. Am I being decieved?
Rich309 is offline     Reply With Quote
Old 03-24-2006, 11:55 AM   #4
w_r_cromwell
Member
 
Registered: Feb 2006
Location: Michigan
Distribution: RedHat9, Core6, Ubuntu5.1
Posts: 31
Thanked: 4
This is very helpful... thanks for your effort

Bill
w_r_cromwell is offline     Reply With Quote
Old 12-13-2006, 07:56 AM   #5
anilbh
Member
 
Registered: Oct 2005
Location: India
Distribution: Proud User Fedora FC5/ Fedora 7 /Ubunt 7.10
Posts: 186
Thanked: 0
Lightbulb Amazing

Wow is right ! But I had a tough time locating this article again .
anilbh is offline     Reply With Quote
Old 06-01-2007, 12:19 PM   #6
harryhaller
Member
 
Registered: Sep 2004
Location: Brussels, Belgium
Distribution: Slackware 12.1
Posts: 173
Thanked: 1
when dd copies a partition, does it also copy the super-block?

In other words, if I copied my windows partition and then restored it, could I then boot from it, assuming, of course, that my boot manager was set up correctly?

Also, could I gezip the file of the partition to make it smaller, or does that cause problems when restoring?
harryhaller is offline  
Tag This Post , ,
Reply With Quote
Old 06-01-2007, 12:51 PM   #7
kav
Member
 
Registered: May 2006
Location: USA
Distribution: Debian Sid, RHEL5
Posts: 122
Thanked: 0
Quote:
Also, could I gezip the file of the partition to make it smaller, or does that cause problems when restoring?
I know there's got to be a way to do that manually, maybe even piped into one line. Clonezilla has that kind of functionality except with an easy to follow menu to get it all done. Wonderfull tool.

Heck, it might be as easy as $ dd if=/somefile | tar -czvf /compresed_image
kav is offline     Reply With Quote
Old 10-05-2007, 01:50 PM   #8
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Ubuntu 7.10 64 bit, CentOS, GNU FreeDOS, Haiku, Plan 9 in qemu, gOS, Backtrack 3
Posts: 1,041
Thanked: 0
Quote:
Copy a disk partition to a file on a different partition. Do not copy a partition to the same partition.

dd if=/dev/sdb2 of=/home/sam/partition.image bs=4096 conv=notrunc,noerror

This will make a file that is an exact duplicate of the sdb2 partition. You can substitue hdb, sda, hda, or whatever the disk is called.

Restore a disk partition from an image file.

dd if=/home/sam/partition.image of=/dev/sdb2 bs=4096 conv=notrunc,noerror
Could someone please explain why bs=4096 and conv=notrunc,noerror is used?
fakie_flip is offline     Reply With Quote
Old 12-21-2007, 02:49 PM   #9
DrCR
LQ Newbie
 
Registered: Aug 2006
Distribution: VectorLinux 5.1.1SOHO
Posts: 8
Thanked: 0
bs=446 count=1 is way to backup the MBR, but not the partition table, so yes, it can be less than 512.
bs=4096 - When copying large amounts, say, backing up a partition, bs=4096 tends to be the best choice for faster, more modern machines so I hear.

You can indeed compress on the fly, via piping. For example, here's the command I recently used to backup one of my partitions:
dd if=/dev/sda1 bs=4096 | bzip2 > OSXsda1_ddbackup.bz2

I don't know anything about conv= stuff...I haven't read the review yet, but still wanted to answer so of your questions.

DrCR

_______________
A5N8X, 3500+ single-core Manchester, 2x512MB Corsair XMS, MSI 7600GT
S-12 430W, HR-05, Scythe Mime, VF900 modded with Scythe 80x25mm. Dual D12SL-12 Yate Loons
WD1200JB, WD3200JB, HD501LJ
Dual, independant WinXP installs via Grub hiding, VectorLinux 5.1.1SOHO, 5.8SOHO.
- - -
MacBook Pro Santa Rosa, 2.2GHz, 250GB Scorpio, Ceramique compound, Pending Appled-Tux Logo mod
MBRed Hard Drive with: OSX, WinXP, Vista (MSDN, pending), Sidux 2007-03
Pending Fusion "bootcamp" VMs pointing to native OS installs
DrCR is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
DISCUSSION: Becoming Unplugged jeremy LinuxAnswers Discussion 3 02-14-2007 06:54 AM
Fedora 3 fogets eveything Ian_Hawdon Linux - Software 6 05-18-2005 05:36 PM
Discussion akshatyadav General 5 08-24-2004 07:58 AM
Discussion: Why use C/C++? Strike Programming 106 08-21-2004 03:09 AM
Serious Discussion nbjayme Linux - Newbie 2 09-24-2003 11:49 AM


All times are GMT -5. The time now is 05:27 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration