On Mon, 30 Nov 1998, Tony Nugent wrote:
> 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 - )
> }
>
Wait ! How about the win95 longfilenames ?? Did dd will copy it too ??
Because when i use the slackware 3.6 (kernel 2.0.35) rescue disk to mount
the win95 partition, it only show up with 8.3 format . The longfilenames
become something like 'progra~1' .
-lz