Tags
webcam vindaloo vim version vegan unix unicef trojan todo tmux thinkpad textmate testing tagging syntax svn sugar subversion stubbing sphinx spam spaces solaris sitemap site sinatra shoulda sheet set security search schema_info SchemaInfo ruby rinari restaurant relationships refresh rdiff-backup ramaze railsconf08 railsconf07 rails protools production power placeboeffect pink floyd PIC perl overheat outbreak osx os x NYHS NYC nginx netbeans nested nanophotonics mysql music MPEG-4 mongrel model migration microvolunteer macbook mac logrotate logic log linux less leopard keynote JAX javascript java jacksonville iterm2 iterm imunizator highlighting hanna Handbrake haml hacks google geocoding genghistron gem gaming gabrielle's funny functional fun friends food fixesThe Fixer said over 4 years ago permalink Comment? (0)
Tagged: linux datarecovery
Hard drive recovery
My home server’s hard drive and the backup drive failed on the same day, so I’m trying to extract whatever I can from the bad disk. Here are my notes so far:
Boot the dead machine with a Linux live CD; the failed drive won’t mount because the main superblock is one of the sectors that failed.
Make a disk image on a remote machine:
$sudo dd if=/dev/hda bs=512 conv=noerror,sync | ssh user@othermachine:server_hd_backup
conv=noerror tells dd to skip over bad sectors; conv=sync tells it to pad the holes with zeros, so that the resulting disk image will still have everything that it can read in the right place.