bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ddrescue] How to Copy from Partition to Partition?


From: Lucy Van Tassel
Subject: Re: [Bug-ddrescue] How to Copy from Partition to Partition?
Date: Mon, 16 Jun 2008 15:23:53 -0700 (PDT)



andrew zajac-2 wrote:
> 
> 
> 
> How do I safely copy the partition from the source hard disk to the target
> hard disk? Do I have to create a partition on the target hard disk first?
> Can it be of arbitrary size -- for instance, if I create a 1 Mb partition
> and direct ddrescue to write to it, will it write off the end and will it
> still work? Which Linux tool and syntax should I use to create this
> partition, and then copy to it using ddrescue?
> 
> Thanks.
> 
> It depends what you want to do.  If you simply want to access the
> filesystem, then create a partition (or grow the small partition on the
> destination drive) and image the faulty drive to a file.
> 
> Then, mount the file as a loop filesystem in linux.:
> 
> example:
> 
> Assuming you imaged the drive to a file named "file", you would mount the
> file like this:
> 
> mkdir mnt
> 
> sudo mount -t ntfs -o loop,offset=32256 file mnt
> 
> Then the mnt directory will contain the contents of the faulty drive (or
> at least what you were able to image from it)
> 
> See here for more details:
> https://help.ubuntu.com/community/DataRecovery
> 
> Depending on what created the partition table on the faulty drive, you may
> need to change the offset to mount the partition.  If you are able to
> image the partition (use ddrescue to read from sda1 instead from sda, for
> example), then you don't need to specify an offset in the above command.
> 
> If you are not used to the linux command line shell, feel free to post
> more detailed questions.  
> 
> The commands I posted can be run from an Ubuntu live cd.  You can use the
> partition tool included on it to create a new partition on your
> destination drive.  Gnu ddrescue is not included on the Ubuntu cd, but if
> you are connected to the internet, you can install it inside the live
> session.
> 
> Andrew.
> 
> 
> 
> 
> 
> 
>       __________________________________________________________________
> Looking for the perfect gift? Give the gift of Flickr! 
> 
> http://www.flickr.com/gift/
> _______________________________________________
> Bug-ddrescue mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-ddrescue
> 
> 

Thanks for the timely response. No, I do not want to copy the source
partition to a file and then mount it. I prefer to copy the source partition
to an identically sized partition on the target drive so that it comes after
the boot partition. I imagine I would have to create a fresh partition on
the target drive first, but I do not know how to do this using Linux tools,
and I do not know what size it should be and how to find out the size. (I
would be using a Linux live CD to do it.) Once I have created the target
partition, I know how to copy from the source partition to the target
partition using ddrescue. I have studied its syntax. So I just need help for
the first part of the process.

Thanks again.
-- 
View this message in context: 
http://www.nabble.com/How-to-Copy-from-Partition-to-Partition--tp17844048p17874478.html
Sent from the Gnu - ddrescue mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]