Sign in with
Sign up | Sign in
Your question

Copy Partition Directory to new harddrive

Last response: in Linux/Free BSD
Share
October 17, 2012 3:25:10 PM

Hello,

I have a harddrive that is formatted with a linux partition (the partition was my data partition). However, the main harddrive on the computer died...I want to copy my data onto a harddrive that is formatted with ntfs so that I can place this in a windows machine instead. I am using a live disc right now, but I cannot copy and paste all the folders/files over because of permission issues, so it seems that I will need to use the terminal to do this...but im not exactly sure how to go about doing this..

I have three harddrives connected to the computer running the live disc, and I would like to copy all the files/folders from my linux formatted disc(sda) to the ntfs disk(sdc)
It would also maybe be a good idea to reformat sdc (with ntfs of course) to make sure that there are no extra partitions/folders/files before copying the directory of sda??

the linux hd is "sda"
and the destination disc is "sdc"


any help is appreciated,
thanks
a b 5 Linux
October 17, 2012 6:44:26 PM

boot into the live disk and mount your drives.

then simply tell it to copy all contents recursively from the old drive to the new.
  1. $ cp -av /mnt/data/* /mnt/newdrive
!