UNIX / Linux Shell Script To Copy Disk (DOS Like DISKCOPY Command)

in Categories Diskadmin last updated June 28, 2008

Write a shell script to implement the DISKCOPY command of DOS command, which allows a user to copy the complete contents of a diskette to another diskette. Under UNIX / Linux we can use dd command to copy disk.

dd is use to copy a file, converting and formatting according to the options. Since everything is considered as a file under Linux / UNIX you can write files to a diskette with dd command itself. Linux disk copy done using /dev/fd0 (first floppy drive). You can easily make Linux disk backup with dd command.


Share this on: