With that dump you are sure, that you did not miss any important metadata (like ACLs) which tar won't capture. Do that with other partitions on the failing drive, too. GNU Parted is the utility to edit partition your drive in linux - Partimage is a copy of Ghost and Drive image for Linux - GParted is a Partition Magic. Where you had to adopt /dev/sda1 to the right device. However, you should (also) consider to make a dd dump of the failing drive's partitions: cd good_partition netcat -l -p 1234 > dd if=/dev/sda1 | netcat good_host.ip 1234 (especially the file representing your RAM in ( /proc/kcore) will add an unnecessary amount of data). I included some -exclude parameters, as /proc and /sys are virtual filesystems and hence useless on the new host. If the computer where windows is broken cannot boot from a cdrom disc, you can also Install SystemRescue on an USB stick and boot from that. Of course, you have GNU Parted (partition editor), Partimage or FSArchiver (drive image clone) for backing up partitions to an image file, File system tools (e2fsprogs for ext4, xfsprogs, reiserfsprogs for reiserFS, jfsutils, dosfstools for FAT, ntfsprogs for NTFS. Cloning allows you to boot from the second disk, which is great for migrating from one drive. Most important console system tools for Linux. The bad host sends the data to this port, also using tar and netcat. All you have to do is to download the latest ISO image of SystemRescue for x86, burn it onto a cdrom disc using any burning software. You have two main options: you can directly clone one disk to another, or create an image of a disk. Partimage: popular opensource disk image software which works at the disk block level ddrescue: Attempts to make a copy of a partition or floppy/Hard. Which opens a listening port 1234 on the good machine netcat -l -p 1234 and pipes the incoming data to tar to extract (preserving mtime and permissions). cd good_partition netcat -l -p 1234 | tar xvpmf tar -cv -f-exclude=/proc -exclude=/sys / | netcat good_host.ip 1234 This is usually much faster as it doesn't encrypt the data. If both computers are on the same (safe) LAN, I recommend a different approach using netcat.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |