DOS User Study UNIX Guide [3] - Floppy Dish

xiaoxiao2021-03-06  39

Section III: Soft disc, hard disk, and similar devices

3.1. Use soft disk

Maybe you never thought, but DOS's Format A: made more things than it looks more. In fact, when you type

Format When this command, it will:

1) The actual formatted disk;

2) Establish a: / this directory (= establish a file system);

3) Make this disk can be used by the user (= mount a disk).

These three steps are separated in Linux. We can create and use MS-DOS format in Linux.

dish,

But of course there are other formats available. The most commonly used EXT2. The following is the party preparing a available disk.

law

(Please first su for root):

- - Format a 1,44 meg flop (A :)

# fdformat / dev / fd0h1440

- - Establish a file system:

# MKFS -T EXT2 -C / DEV / FD0H1440

or

# mformat A:

Create a file system for MS-DOS.

Before using this magnetic sheet, you need to connect this magnetic with the disk machine Mount.

- - Mount a disk:

# mount -t ext2 / dev / fd0 / mnt

oral

# mount -t MSDoS / DEV / FD0 / MNT

Now you can use this magnetic piece. When you end your work, you have to take out the magnetic sheet, please * must * you want

Umount. (Important!)

# umount / mnt

Ok, you can take the magnetic piece. It is obvious, fdformat and mkfs as long as the unformatted magnetic

The line can be, it is not necessary. If you want to use the B disk machine, please refer to the examples mentioned in the foregoing.

FD1H1440 and FD1 replace FD0H1440 and FD0.

Now you have been moved from A:, B: from A:, B:

Dos Linux

C: / Guido> DIR A: $ LS / MNT

C: / Guido> Copy A: *. * / DOCS / TEMP $ CP / MNT / * / DOCS / TEMP

C: / Guido> Copy * .zip A: / zip $ c * .zip / mnt / zip

C: / Guido> A: $ CD / MNT

A: /> / mnt $

Do not tell, the method of establishing a floppy disk is true as other devices. For example, you can mount another

A hard drive or a disc machine. Take a little bit / device under the Device. Below is the example of a mount:

# mount -t ISO9660 / dev / cdrom / cdrom

转载请注明原文地址:https://www.9cbs.com/read-61274.html

New Post(0)