Operating System - Linux
1829598 Members
1578 Online
109992 Solutions
New Discussion

can I copy the whole hard disk using Knoppix Live Evaluation ?

 
SOLVED
Go to solution
'chris'
Super Advisor

can I copy the whole hard disk using Knoppix Live Evaluation ?

hi

can I copy the whole hard disk over LAN with nfs using Knoppix Live Evaluation ?

I tried today, but it doesn't work.

has someone any EXPERIENCE in this case ?

kind regards
chris
2 REPLIES 2
Dave Falloon
Trusted Contributor
Solution

Re: can I copy the whole hard disk using Knoppix Live Evaluation ?

Ya this should be no problem. I have copied lots of stuff off of hard drives using knoppix and nfs.

Here are the steps.

you start as users knoppix but you need to be root for most of this so"

sudo su

first things first mount the local harddrive that you want to copy to the nfs drive:

mount -t ntfs -o ro /dev/hda1 /mnt/hda

This mounts the filesystem on the first partition of the first harddrive as ntfs on /mnt/hda. The reason I used -t ntfs is because I remember you had posted about copying win2k images earlier. You can just as easily do this with a linux partition. The -o ro is important because you do not want a typo to accidentally remove all the data on a drive.

Once mounted you will want to mount the nfs drive on your machine. find a good mount point for this, ie. /tmp/nfs-drive, it doesn't really matter where. Use a command such as this:

mount -t nfs -o rw,rsize=32768,wsize=32768,hard hostname:/path/to/nfs/directory /path/to/mount/point

The reason for all the options in the nfs mount is to increase the performance and reliability somewhat. They are not strictly necessary so if you get a problem because of it just remove them, all of them except for rw of course ;)

Now you can use whatever method you want to copy the files, cp -a, cpio, tar, star, dd. I have used cp -a before and it worked fine, here is the command I would use:

cp -a /mnt/hda /mnt/nfs

and then I would go for coffee or maybe a hair cut or something cause it could take a while to complete.

I hope that helps,

Dave
Clothes make the man, Naked people have little to no effect on society
Caesar_3
Esteemed Contributor

Re: can I copy the whole hard disk using Knoppix Live Evaluation ?

Hello!

Just like Dave wrote just check
when you mount local disk that you specify
the wright filesystem that the HD is.
Because if your HD is not ntfs then it
would work.

Caesar