Go Back   Technibble Forums > Operating Systems > Linux

  Technibble Sponsor

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2011, 11:13 PM
quinnlaup quinnlaup is offline
 
Join Date: Feb 2011
Location: N. Ireland
Posts: 114
quinnlaup is an unknown quantity at this point
Default drive mounting ddrescue

hey folks,

I've got a quick question about running ddrescue, does the source drive have to be mounted? Ubuntu labels the drive as /dev/sdc/ but i cannot mount the windows partition or either of the other two partitions on the disc. Will ddrescue be able to copy the whole disc?

kind regards

quinnlaup
Reply With Quote
  #2  
Old 09-02-2011, 12:05 AM
iisjman07's Avatar
iisjman07 iisjman07 is offline
 
Join Date: Jul 2009
Location: South End Of The UK
Posts: 3,049
iisjman07 has a spectacular aura aboutiisjman07 has a spectacular aura about
Default

No it doesn't have to mount a drive to be able to use it (necessarily). If you wanted to do A direct disk-to-disk clone then you can use the syntax
Code:
ddrescue /dev/sda /dev/sdb
- that will copy the disk at sda to the disk at sdb; neither needs to be mounted. If you wanted to do a disk to image clone (I believe you can do this in ddrescue) then you can use the following commands to copy /dev/sda to a file on /dev/sdb:

Code:
mkdir /mnt/sdb1

Mount /dev/sdb1 /mnt/sdb1

Ddrescue /dev/sda /mnt/sdb1/clonedimage.img
That will make a directory to mount the first partition on /dev/sdb in the /mnt directory, mount the partition at /dev/sdb1 to /mnt/sdb1, and then clone /dev/sda (entire disk) to a file in the mounted file system of /mnt/sdb1. When you're finished you should use the following command to unmount the file system to prevent data loss:
Code:
umount /mnt/sdb1
(point that to whatever mount point you mounted to earlier).

If you want anymore help just ask

Last edited by iisjman07; 09-03-2011 at 04:05 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:00 PM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Technibble.com is based out of MELBOURNE, AUSTRALIA.