On Mon Nov 30 1998 at 23:35, "Eng ler ...(admin)" wrote:
> how to do hardisk to hardisk copy via linux ? I want to copy the entire
> DOS/win98 partition to another hardisk (B). Both hdd are different size .
There has already been mention of the `dd' command.
However, this bash function also handy:
bigcp() {
[ ! -d $1 ] && echo "$1 is not a directory\!" && return 1
[ ! -d $2 ] && mkdir $2 || ( echo "Cannot make directory $2" ; return 1 )
( cd $1 && tar cfps - . ) | ( cd $2 && tar xvvvpf - )
}
Warning... it's been a long time since I last used this, so test it
first.
Cheers
Tony