On Tue Dec 01 1998 at 08:46, "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' .
That will only happen if you use a pre-2.0.35 kernel and/or mount the
FAT32 partition as type "msdos".
No problems if you mount the FAT32 partition as type "vfat" with a 2.0.35
(or later) kernel.
(Of course, the kernel must have vfat support compiled in or available as a
loadable module... so I don't know about that "rescue disk").
Cheers
Tony
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
Tony Nugent <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Computer Systems Officer Faculty of Science
University of Southern Queensland, Toowoomba Oueensland Australia
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-