Ubuntu :: Use Ddrescue To Clone A Dying Disk To A Remote Machine Using Ssh?
Sep 16, 2010
im trying to use ddrescue to clone a dying disk to a remote machine using ssh. this is my command:
Quote:
sudo ddrescue --block-size=4KiB /dev/sda1 - | ssh user@address 'cat /data/backup.img'
it returns the error "cat: can't open '/data/backup.img': No such file or directory"
View 3 Replies
ADVERTISEMENT
Apr 16, 2011
I am trying to pinpoint which component of my machine is dying. Here's what I get when I try to install Windows 7: The specified I/O operation on DeviceHarddisk0DRO was not completed before the time-out period. I have tried changing hard drives, swapping memories (running them in single and parallel), changing BIOS settings, etc. When I run a live CD with Fedora, it will come up fine but when I try to install it runs like a snail. It will never complete.
View 4 Replies
View Related
Mar 10, 2011
I'm pretty sure the hard disk on my FC5 system (tells you how old it is!) is failing. It's a 500GB drive and I have a second hard disk that's 1.5TB (if I remember right) as a secondary.I would like to (ideally) just migrate everything -- settings, MBR, OS, home dirs, etc., everything -- to a different drive, take out the one that's on the fritz, and reboot the system with everything as it was...just a new hard drive.
Alternatively, I figure I could remove the old drive, move the secondary one into place as the primary, reformat it (assuming there's no data I need), and then install a fresh FC version and from there, migrate data from the old one as needed. I've done this latter method before and assuming the hard drive doesn't totally go, it should work. But I'd really RATHER have somehow a "mirror copy" of the 500GB drive that just seamlessly replaces what's currently there.
View 11 Replies
View Related
May 11, 2010
SITUATION/411: Trying to avoid some ultimate data loss here. - Bad superblock reported by fsck.
SIZE-UP:
Make & Model=Maxtor DiamondMax Plus 9 80g
USB at /dev/sdg - external.
Host Operating System version=F11
Running Kernel=Linux **********.*** 2.6.30.10-105.2.23.fc11.x86_64 #1 SMP Thu Feb 11 07:06:34 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
MITIGATING FACTORS:
Was a dual boot drive.
Partitions as follows:
[Code]...
View 13 Replies
View Related
Apr 16, 2009
Can this be done and to restore the disk with a similar cat command.
View 3 Replies
View Related
Jan 25, 2011
I was thinking about make a clone machine. I was thinking about use a old computer that have some SATA connection. One disk is source and then I add some other disk to destination. I going to have Linux on USB stick. I have look at dd and it look nice but what I can see it only use one disk to another.
Code:
dd if=/dev/hdx of=/dev/hdy
is it possible to add more then one destination?
View 7 Replies
View Related
Jun 9, 2011
I know about things such as clonezilla and partimage but what I really want is the ability to make an iso from the current installation so that I can use it in a virtual machine. That wayI can develop freely without worrying that Ill crash my pc.
Also when I tried cloneziila it only chose the partitions on the local hard drive, is there software that can clone the HDD of a remote pc?
View 2 Replies
View Related
Jun 11, 2011
I have a 160Gb Hard drive with 3 partitions. sda1, sda2, sda3. sda1 & 2 are just under 20 GB each. the other 120 GB is free space. I have so many 40GB hard drives! I would like to copy (with dd) the MBR, sda1 & 2 to a 40GB hard drive and be able to just use that so I can free up my 160GB hard drives. Typically when I want to clone something, the drives are equal or larger than the original. I'm not too sure about this, and if I use code (show below), will I also get the MBR? #where sda is the 160gb with 3 partitions and drive sdb is a 40GB drive with 2 partitions.
Code:
dd if=/dev/sda1 of=sdb1
dd if=/dev/sda1 of=sdb1
Also, is there a way I can do this with 1 line, or have both dd operations running simultaneously?
View 2 Replies
View Related
Dec 11, 2010
I'm trying to clone a 2GB USB memory stick to another stick just like it (same size and brand). The src drive has three partitions, one fat, one ext2 and one encrypted (in that order). It also has an mbr. I create the clone using the following command:
dd if=/dev/xxx of=/dev/xxx bs=512k conv=noerror,notrunc
Once it's done the mbr, the ext2 and the encrypted partitions seem fine, but the fat one is slightly modified on the clone. Here is a hex dump of the (broken) clones fat partition followed by a dump of the original partition.
"Clone":
0000000 3ceb 6d90 646b 736f 7366 0000 0402 0001
0000010 0002 0002 f800 00bc 003e 0040 0000 0000
[code]....
View 3 Replies
View Related
Apr 19, 2011
I often run various computers from my Ubuntu 10.04 USB startup disk. Every now and then, people get interested and want a copy of their own. Since I have installed a few extras (VLC, codecs, flash etc) on the disk, not just the out of the box 10.04, I would like to create a clone of the USB startup disk, to give away. How can it be done?
View 2 Replies
View Related
Sep 9, 2011
I used opensuse three years ago. Then I moved to ubuntu, because it was easier for me to use ubuntu at that time. Now, I move back to opensuse again. But I want to know how to clone the opensuse system to another hard disk. I mean I have my opensuse well, I do backup to my opensuse system and restore it to another harddisk with the same partition.
When I used ubuntu, I used a very good small open-source software, named 'Ucloner'. You can find it at ucloner - Backup/restore/clone your Ubuntu, and make Live-Ubuntu. - Google Project Hosting . It is very handy to backup the ubuntu system and restore or clone it to a new harddisk. Especially, when restoring the system, the grub can be installed to the new harddisc automatically with the UUID of the new harddisc (very amazing). But it is only for ubuntu. I am looking for a software with the similar function.
I have tried Clonezilla. No problem to do backup and restore. But I failed to boot the restored system even with the same harddisc. I know it is the problem of GRUB. Even reinstalling the grub, I still can not boot into the system.
My question is
1. is there any software that allows me to backup the opensuse and restore it to another harddisc with the grub installed to the new harddisc automatically?
2. If no software for question 1, what software or application is good to backup and restore the opensuse and how to reinstalled the grub to the new harddisc with different UUID?
3. Since the Ucloner is open-source, is there anybody having interest in change the ucloner code to fit for opensuse? I guess there should be much change, because ubuntu and opensuse are linux both?
View 9 Replies
View Related
Apr 30, 2011
I have win7 and ubuntu on a 250gb hard drive. I would like to move this to a 1tb drive. Is it possible to clone the entire hard drive, including the MBR? Thought about doing a disk image but unsure if this is the answer. I am using win7 64 pro and ubuntu 10.10.
View 3 Replies
View Related
Nov 30, 2010
How do you transfer files on a Linux machine with ftp,sftp and scp disabled onto a remote machine
View 2 Replies
View Related
Jul 18, 2011
Whenever I put ssh into remote machine am getting the following messages. Write Failed: Broken Pipe (After logged into that machine ) Read Socket Failed: Connection reset by peer (While trying to log in ) Also known_hosts file is changed frequently.
View 1 Replies
View Related
Dec 26, 2009
Is there any way to redirect a remote Linux machine mplayer output audio to local one?
View 2 Replies
View Related
Jul 10, 2010
I need to clone a 160GB hard drive with Linux Mint 9 (not more than 10GB used) to a 30GB SSD that is partitioned carefully (aligned to cylinder boundaries) and is currently running Ubuntu (which I wish to overwrite with Linux Mint 9). The SSD has a /boot partition, / and swap. The source (160 GB) does not have a separate boot partition. Can anyone help me fill in the steps below? /dev/sdc will be the source (160GB) and /dev/sda is the target (with partitions 1,2 and swap on 5).
make a copy of /etc/fstab from the target drive before proceeding. Ready the target partitions. Can I reuse the existing destination partitions on the SSD? Ready the filesystems on each of the target partitions. /boot is ext2, / is ext4 and swap is already set up too. As I said, all contain data (Ubuntu) that I wish to overwrite. So what steps are needed here? Do I need to erase anything (files, etc.) before the copy/clone? next, use dd to copy MBR (right?) And exclude partition table:
Code:
dd if=/dev/sdc1 of=/dev/sda1 count=1 bs=446
Mount the source and destination drives:
Code:
mount -t ext4 /dev/sdc1 /mnt/source
mount -t ext2 /dev/sda1 /mnt/boot_target
mount -t ext4 /dev/sda2 /mnt/root_target
I suppose I can leave the swap partition on the target untouched. Copy the files from the source partition to the destination
Code:
cp -a /mnt/source/boot /mnt/boot_target
cp -a /mnt/source/ /mnt/root_target
then I assume I go to /mnt/root_target and delete the /boot directory, right? Change /etc/fstab to reflect the new partitions. I mount by label. Will my partition labels be intact after this? Do I have to make any changes to GRUB? Anything else?
View 14 Replies
View Related
Jan 17, 2011
I use clonezilla cd live to backup my Debain Squeese O.S.,
there is the possibility to create a warm backup (clone disk) of O.S. without restart the computer ?
View 2 Replies
View Related
Feb 24, 2011
I have installed Ubuntu on a friends laptop. He lives in a different city, and needs to move files from one somewhat quirky 1tb drive to a new 1tb drive. He needs something that reads slowly on purpose or something like that. He also needs a gui tool. He asked me, but I haven't been able to find something for Ubuntu. maybe a custom script for ddrescue would work, but i don't even think he would like that. He is very nervous when it comes to the terminal.
View 5 Replies
View Related
Mar 23, 2010
I have just clone from my previous IDE hard disk to a bigger IDE hard disk with clonezilla. However, when I boot my system with the new hard disk using the installation disk, it says an error that "no linux partition found on hard disk".
View 4 Replies
View Related
Jun 2, 2010
I tried to clone my laptop ubuntu partition (9.10) using ddrescue into my portable harddisk.I run command "ddrescue r3 /dev/sda6 /dev/sdb6" sdb6 is my portable harddisk partition with lots of data. In my head I was thinking that it will create image file (like iso or img)that can be restored to another disk.Suddenly I relize that it delete my existing data (in sdb6) then I interrupted ddrescue.Is there a way that I could get back my data in sdb6?Partition in sdb6 is FAT32m, now when I try to open sdb6 using Windows OS, it always aks me to format
View 6 Replies
View Related
Nov 28, 2010
extract some data off a failing drive the other day. I plugged it in, but got no response in windows or linux (partition is ntfs), but it does appear in the bios and /dev (though the hdd hung most linux liveCDs except rescue remix 9.04). I tried to analyze the drive, and found good smart data, so I figured there were just a few bad blocks in critical places. I ran spinrite against it in level 2 mode. the process crawled (40MB after 2 hours) and it updated the smart data to reflect many many reallocated sectors, putting the drive into a failing state as far as smart is concerned. so, now, in a last ditch effort I am turning to ddrescue to try to get an image of the drive. it's been running about 17 hours now, and has done several complete passes through "Splitting error areas".
here is my current output:
Code:
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[code]....
have I done all I can? can I in good conscious declare this a lost cause? I do have an image from a prior run of ddrescue, with 826 MB of data.
edit: I resumed the task from log, and now it is reporting the err size as 9223 PB. since the drive is a 320GB, I find that a bit odd.
View 1 Replies
View Related
Dec 8, 2010
I'm trying to mount a .img file with a HFS+ partiton on it. I can't seem to get it working. I don't want to overwrite a whole partition. Just mount the filesystem to /media/directory.
sudo mount -t hfs -o loop /path/file.img /media/directory/ gives me wrong fs type, bad option, bad superblock on /dev/loop0,
Output: dmesg | tail
[665583.878826] hfs: unable to find HFS+ superblock
[690232.956830] hfs: can't find a HFS filesystem on dev loop0.
View 3 Replies
View Related
Aug 5, 2010
What is the best software to clone a hard disk with Fedora
View 3 Replies
View Related
Apr 22, 2010
I'm trying to make an image of my whole hard drive (320 GB) to save on an external hard drive. I'm using Ubuntu Jaunty Live CD to do it, with this command
Code:
sudo dd if=/dev/sda | gzip -c > /media/ExpansionDrive/imagedd.img
At the beginning everything is going fine, but after few hours the transfer rate is incredibly low. After 1/2 hour, 20 Gb have been copied.
After 1 hour, 27 GB
After 2 hours, 40 GB
After 4 hours, 54 GB
After 8 hours, 71 GB
Is it normal? I've also tried to use ddrescue, but I have the same problem. Is there any other tool to clone hard drive with a constant transfer rate?
View 1 Replies
View Related
Jan 8, 2010
I have made a shortcut on desktop and want that one to ssh from machineA to machineB and run a command.I have fixed the .pub file so I can ssh without password.This is what I want to doPHP Code:ssh -X user@machineB && start-the-program ..but it seems to not run the command after "&&".How can I do to make it automaticly run a command after it has connected over ssh?
View 5 Replies
View Related
Jun 19, 2011
I'm wondering if it's possible to control a TTY on a remote machine via SSH. I'm aware of ssh's -t option, but it doesn't seem to do what I want. Basically, I'm thinking in terms of VNC-like operation, where the remote user and local user see the same thing, only instead of a GUI, they both see TTY1 (or 2, or etc). Is that doable, or no?
View 3 Replies
View Related
Jul 10, 2011
I have SSH -X working fine, displaying stuff that's running on the remote machine on my local machine. But how do I display on the remote machine? I did this many years ago on unix and seem to recall that this was either default or a simple case of setting DISPLAY....
View 3 Replies
View Related
Feb 23, 2010
Can't mount or read ddrescue result file
View 1 Replies
View Related
Jun 14, 2010
I am trying to recover some important data from a 273 gig NTFS partition that was used in windows 7. The laptop was dropped and would not boot the next day. As an external drive I could see 2 smaller partitions (30 gig and 500 meg), but the main partition was RAW and requesting to be formatted... so I came to learn about Knoppix 6.2.1 as my live boot cd and ran ddrescue to recover an almost complete image of the bad partitionddrescue -n /dev/sdc1 /media/sda1/image.img /media/sda1/logfile.logI then ran it one more time:ddrescue -r 1 /dev/sdc1 /media/sda1/image.img /media/sda1/logfile.logthe image was made with 741 errors (amounting to 160 megabytes)So Now I have my partition as image.img which I want to mount.
First I tried
sudo mount -t ntfs -o loop /media/sda1/image.img /mnt/recovered
sudo mount -t ntfs -o loop,force /media/sda1/image.img /mnt/recovered
[code]....
View 1 Replies
View Related
Nov 19, 2010
I can ssh from my local machine (Ubuntu 10.4 64bit) to a remote Linux server. When I try to copy a file back to my machine (or just ssh to my machine) I get the following error - "port 22: No route to host".ifconfig on my local machine gives one ip address for "lo Link encap:Local Loopback" and one for "wlan0 Link encap:Ethernet"; I tried ssh both.I work on a laptop with a wireless router (which is also the modem)
View 6 Replies
View Related