|
From: | andrew zajac |
Subject: | Re: [Bug-ddrescue] gddrescue puts logfile into ubuntu home folder not 2nd hard drive |
Date: | Sat, 1 Jan 2011 12:52:46 -0800 (PST) |
Hi Jason. The command you ran does the following: It will read the sda2 partition and write it to the sda3 partition. You did not specify where you want to the log file to be saved other than the same working directory from where you are running the command. By default, a shell opens up in the /home/ubuntu folder when you run from the live cd. This is why it is writing it there. In your case, the sdb3 partition must be the same size or larger than the sda2 partition here. If it is not, you will run out of space. The filesystem on sdb3 is irrelevant since you are imaging the sda2 partition (therefore copying the filesystem) onto it. You imply that the log file should go there, but how can a file be written to a filesystem that is in the process of being copied? What you would need to do it create another partition on the destination drive, format it to any filesystem you like, mount it and write the log file there. For example, let's say you created a 100 meg partition /dev/sdb9. sudo mkfs.msdos /dev/sdb9 mkdir mountpoint sudo mount /dev/sdb9 mountpoint sudo ddrescue -r3 -v /dev/sda2 /dev/sdb3 mountpoint/logfile (same as sudo ddrescue -r3 -v /dev/sda2 /dev/sdb3 /home/ubuntu/mountpoint/logfile or cd mountpoint sudo ddrescue -r3 -v /dev/sda2 /dev/sdb3 logfile) I must point out that I doubt that the logfile size is what is causing you to run out of space. It would take longer than 20 minutes to fill up the ramdisk on a modern computer. Just sayin'. Are you sure the destination partition (/dev/sdb3) is larger than sda2? If you cannot play around with the partitions on the destination drive, I can show you how to image the source partition to a file and then mount that file as if it were a real hard drive. I hope this helps. Andrew Zajac AndrewZajac.ca --- On Sat, 1/1/11, Jason Hemminger <address@hidden> wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |