![]() |
DISCUSSION: How To Do Eveything With DD
This thread is to discuss the article titled: How To Do Eveything With DD
|
wow, excellent.
|
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?
|
This is very helpful... thanks for your effort
Bill |
Amazing
Wow is right ! But I had a tough time locating this article again .
|
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? |
Quote:
Heck, it might be as easy as $ dd if=/somefile | tar -czvf /compresed_image |
Quote:
|
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 |
I am trying to mirror partitions from one harddisk to another.
At first I tried to mirror the whole harddisk to one of similar size and model. Code:
dd if=/dev/sda of=/dev/sdb bs=4k conv=noerror 2Code:
dd if=/dev/sda7 of=/dev/sdb7 bs=4k conv=noerror 2I do this all the time without any problem on Debian Etch. On this Debian Lenny box, mirroring other partitions seems fine except for /var. Is there anything that I can trobleshoot? Logging the output showed no error encountered. |
image remote disk
if remote share is connected as
smb://ipnumber/share could you use just one dd piped to another and do you need root privilleges on local and remote machine for that? |
Yep, should work
Yeah, if you booted up from a live CD, mounted a samba share to a NAS or some such, you shouldn't have any problem dding over an image of the local hard drive or a partition on the local hard drive to the NAS.
Just bare in mind it may take a good while, even over gig-E. There was one dd-like app, irrc for Linux, but perhaps unix, that has a nice transfer status. But really all you have to do is have a rough idea of how big the backup file should be and just check out the file properties on the shamba share, occasionally refreshing, to see its progress. jasontn, just to verify, you do have the /dev/sda7 and /dev/sdb7 unmounted, correct? Most of var is temp stuff, but iirc at least some of it sticks between boots e.g. iirc there's an Apache file in www that is used as the default webpage for an Apache install. HTH |
Quote:
I have done this before on live servers, running Debian Etch, flawlessly. It is only now that I'm doing this on Deban Lenny. I don't know if this problem is OS related. Unfortunately, I don't have another machine to reproduce this. |
Quote:
|
Quote:
|
| All times are GMT -5. The time now is 08:21 PM. |