Re: dd
Allan <[email protected]>
| Newsgroups | gmane.user-groups.linux.ottawa.general |
|---|---|
| Message-ID | <[email protected]> |
On 12-05-12 08:34 PM, Allan wrote: > I'd like to know if the following commands will > work. > > dd if=/dev/sda1 of=/dev/sda5 or > > dd if=/dev/sda1 of=/dev/sdc9. > > Can someone give me some guidance on this? Thanks in advance. > > Allan Yes, both commands will work, providing the partitions exist, are of proper type, the block size matches and the target is of adequate size. dd copies everything, including errors so you should perform fsck.ext3 -f -c -y -v /dev/sda1 on the infile prior to copying and on the outfile after copying to verify the integrity of the filesystem, superblocks etc. Your do have to match the filesystem type to the filesystem check program you are using, so fsck is for ext2/ext3 systems. I've used GNU ddrescue quite happily on dead or dying disks - it is worth reading and trying. I prefer it to dd on disks where errors start to become noticed. -- Bill Strosberg -- OCLUG general discussion list [email protected] http://oclug.on.ca/mailman/listinfo/oclug Thanks, I was hopint that was the case. Allan -- OCLUG general discussion list [email protected] http://oclug.on.ca/mailman/listinfo/oclug