Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Linux Support Linux - Operating Systems and Applications Support

Reply
 
LinkBack Thread Tools
Old 08-23-2008, 07:09 PM   #1 (permalink)
Registered User
 
dragonember's Avatar
 
Join Date: Jan 2006
Location: The voices in my head disagree...
Posts: 163
OS: Windows XP: Home Edition SP2/Ububtu 8.04

My System

Send a message via AIM to dragonember Send a message via MSN to dragonember Send a message via Yahoo to dragonember
dd questions

I need to copy a windows drive that is probably starting to fail. It is an old drive, probably 7-8 years old and certain files are randomly getting deleted and the computer is getting slower and slower. A system restore did not help. This to me suggests that the hard drive is beginning to fail. Unfortunately the computer is old and I don't believe the motherboard is equipped with S.M.A.RT. capabilities.

My questions:
1. can dd copy a windows partition from a live linux cd (i assume the answer to this is yes since it make a byte exact copy)

2. if I copy the 20GB hard drive to an image file then write that image using dd again to a 40GB hard drive, will the other 20GB be lost due to the new hard drive thinking it is a 20GB drive? The reason I ask this is because I was reading that since dd performs low level raw data manipulation that any new hard drive will be made to think it is the old one. Therefore, one would have to use the same type, model, and size hard drive. However, I do not know if the information I read was correct or not.

Thanks.
__________________
Extrico subjectio quod verum ero evidens

No one can make you feel inferior without your consent. -- Eleanor Roosevelt

"it may be alright to be content with what you have; never with what you are."--B.C. Forbes
dragonember is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 08-26-2008, 09:42 PM   #2 (permalink)
Registered User
 
Join Date: Oct 2007
Location: Littleton, Colorado USA
Posts: 470
OS: xp 64 sp2 Fedora Core 8 (vmware xp core 8 x32) Minix


Re: dd questions

Yes, dd does do device level reads and writes. I heard, a long time ago, that if a sector was bad on the read it was written as bad on the write. This had to do with copying CD's and DVD's. So bad sectors were written. This probably happens when you dd copy a hard drive. (I think dd will copy an unmounted disk, so the copied disk can be quiet when you copy it).

If you copy a 20 GB disk to a 40 GB disk, you will loose the 20 GB. I think you could partition the disk into 2 - 20GB parts and copy the bad disk to the second partition by: "dd if=/dev/sda1 of=/dev/sdb2".

Before you do the dd or cp, run fdisk on the drive so that all the inodes and files have a semblance of being OK.

Why don't you just mount the drive and use "tar" or "cp -pr" to copy the disk. At least then the disk drivers will try to read the "correct" bytes off the disk. I think you could even use "cp /dev/hda1 /dev/hdb1". Copy, cp, will copy the hard devices too. The only problem is that if your old disk was bootable, chances are it won't be bootable after the copy. I think lilo or grub need to know the exact sector to boot from. You will probably have to re-assign the boot address.

I hope this helps.
lensman3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 04:36 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85