On Wed, 1 Mar 2000, Jon Pennington wrote: jp> On Wed, 01 Mar 2000, George Zeigler wrote: jp> > Hello, jp> > I need to DiskCopy my SuSE 6.2 Bootdisk. Got a command for this? jp> > jp> > I'm looking at 'dd' but the "Linux in a nutshell" does not give an example nor jp> > does the man. SuSE manual seems silent on DiskCopy. jp> > And what format does the new diskette need. minix or ext2fs? jp> jp> man dd ;) jp> jp> <with bootdisk inserted> jp> # dd if=/dev/fd0 of=/tmp/bootdisk.img jp> <swap floppies> jp> # dd if=/tmp/bootdisk.img of=/dev/fd0 jp> Or, if your really board, you could do something like the following within your .alias file: function diskcopy { DEST1=${1-0} DEST2=${2-$DEST1} if [ -n "$DEST1" ]; then echo diskcopy: insert 1st floppy into drive fd$DEST1 if [ "$DEST1" != "$DEST2" ]; then echo diskcopy: insert 2nd floppy into drive fd$DEST2 echo contents of fd$DEST2 will be destroyed echo " < press any key >" dd if=/dev/fd$DEST1 of=/dev/fd$DEST2 else echo " < press any key >" read keypress dd if=/dev/fd$DEST1 of=/tmp/floppy.img echo diskcopy: insert 2nd floppy into drive fd$DEST2 echo contents of fd$DEST2 will be destroyed echo " < press any key >" read keypress dd if=/tmp/floppy.img of=/dev/fd$DEST2 rm -f /tmp/floppy.img fi fi } Or convert it to a seperate shell routine if you like. For those of you who don't know what it does, it will take from 0 to 2 parameters, you can either run diskcopy which, will default to fd0 or you can select your drives on the command line by entering the drives numerical value, (0 for fd0, 1 for fd1, etc..) ie: diskcopy (copies fd0 to fd0) diskcopy 0 (copies fd0 to fd0) diskcopy 0 2 (copies fd0 to fd2) diskcopy 2 0 (copies fd2 to fd0) etc.. Anyway, I was board at the moment, so I quickly wrote it up and tested it. jp> (--or--) jp> jp> <with CD1 inserted and mounted and a floppy inserted> jp> # dd if=/cdrom/disks/bootdisk of=/dev/fd0 jp> jp> The /disks directory on CD1 has a lot of usefull stuff in there...check the jp> SuSE manual for more. jp> jp> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v6.3+ - Kernel 2.2.14 "That boy's about as sharp as a pound of wet liver" -- Foghorn Leghorn -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/