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

Re: General method for copying a partition



On Wednesday 17 February 2010 11:18:38 Stephen Powell wrote:
> Then the files
> are copied between partitions by means of
> 
>    cp -a /media/* /mnt
> 
> This seems to work OK except if there are "dot files" (files with names
> beginning with a period) in the top directory of the source partition.

Use this instead:
cp -a /media/. /mnt
OR
cp -a /media/{.[!.],}* /mnt
-- 
Boyd Stephen Smith Jr.           	 ,= ,-_-. =.
bss@iguanasuicide.net            	((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy 	 `-'(. .)`-'
http://iguanasuicide.net/        	     \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: