Mike Turcotte wrote:
> Hello!
> 
> I would like to move a partition from one disk to the other, so I can make 
> use of more space. What I have done is create a new partition on the other 
> disk, and just copied all files over. Problem is, my htdocs folder is in this 
> partition, and contain a lot of hidden .* files. How do I copy those over 
> along with everything else? I don't use the copy command all that much, what 
> do I add to "cp -gR"?
> 

Copiyng files is not good when you move a partition: you get bad files
ownership/permissions.
You could have used the tar command with the -p option (especially if
you have different file systems on each partition), but the best in this
case would have been dd:

dd if=<input_file> of=<output_file>

for instance:

dd if=/dev/hda1 of=/dev/hdb1

> TIA,
> 
> Michael Turcotte
> Information Systems
> City of North Bay
> 200 McIntyre St. E
> PO Box 360
> North Bay, Ontario
> P1B 8H8
>  
> [EMAIL PROTECTED]
> http://www.cityofnorthbay.ca 
> 
> 
> --
> gentoo-user@gentoo.org mailing list
> 
> 
> 

--
gentoo-user@gentoo.org mailing list

Reply via email to