Difference between FORMAT command between Linux and DOS

Difference between FORMAT command between Linux and DOS
DOS's FORMAT A: Actually did the following work: (1) Physically format the disk; (2) Create the A:\ directory (= create a file system in Linux); (3) Make the disk available to users use (= mount a drive in Linux). These three steps are separated in Linux. In Linux, MS-DOS formatted disks can be created and used, and other formats (such as the most commonly used ext2) can also be used. The following are the methods for making a usable disk: (1) First su for root (2) Format a 1.44M floppy disk (A # fdformat /dev/fd0H1440 (3) Create a file system: # mkfs -t ext2 -c /dev/fd0H1440 (create an ext2 file system) Or # mformat a: (create an MS-DOS file system) Before using this disk, you need to connect this disk to a drive mount, mount a drive: # mount -t ext2 /dev/fd0 /mnt or # mount - t msdos /dev/fd0 /mnt can now use this disk, be sure to umount before taking out the disk! # umount /mnt can take out the disk now. fdformat and mkfs are best only for unformatted overformat If you want to use the B drive, replace the fd0H1440 and fd0 in the previous section with fd1H1440 and fd1. In this way, the previous work on A:, B: is now moved. Go to /mnt, for example: DOS Linux C:\GUIDO>dir a: $ ls /mnt C:\GUIDO>copy a:*.* \docs\temp $ cp /mnt/* /docs/temp C: \GUIDO>copy *.zip a:\zip $ cp *.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326437433&siteId=291194637