How to access the hard disk DOS partition, floppy disk and disc in Linux

xiaoxiao2021-03-06  67

Under normal circumstances, the user can only use the Linux itself default EXT-2 file system. There are often multiple operating systems in our machines that can also be able to use hard drive DOS partitions, floppy disks and discs in Linux? In the process of using Linux, I gradually explored the method of implementing the above requirements, and now summarizes the following.

Linux's file system When you log in to the Linux system as root (System Administrator), in the system # prompt, use the CD / command to return to the root directory of the system. Use the LS-L command to see the directory structure of the Linux system. In the Linux system, the file structure seen by the user is a tree structure. Like DOS, it is also the root at the top, each directory, and file extending from the root of the tree root. One way to DOS is the root directory in Linux is expressed as "/", not "/" in DOS. For users, such a directory structure is like a complete entity, and users can only see directory and files. But in fact, many of the directorys in such a directory tree are placed in different partitions of different disks, different disks or even different computers. When one of these disk partitions is connected to the directory tree known as the mounting point, the mounting point and all of the following directories are referred to as a file system. When you view a directory in the root directory of the Linux system, you will see some directories, which make up the contents of the root directory, which also provides installation points for other file systems. That is, we can put another hard disk, floppy disk, or even CDs to install it into Linux by selecting a mounting point, which provides great convenience for users. Enter the / mnt directory in the root directory (MNT is Mount Abbreviation, MOUNT "Install" means), with the LS command to see what system default installation points currently have. Simply put, the installation point is some directories. By installing the command, you can install some different file systems to the Linux system, access these directorys to access these additional file systems. The use of various devices in Linux Linux system is the same as the UNIX system, which is not as simple as in the DOS system. In Linux, various devices are in the form of system device files in the system device directory / dev. These files are used to access all different types of hardware in the system. For example, the / dev / mouse file corresponds to the mouse device file, which is used to read the mouse input; / dev / fd0 file corresponds to the floppy device file for handling the floppy disk read and written. Tissue access to hardware devices can enhance the flexibility of the system through this method. If you add a new device, the user only needs to create a corresponding device file, and write the corresponding driver, thereby enhancement of the maintenanceability of the system. You can see a lot of files in the / dev directory, which is the device file of all devices in the system. For example, / dev / hda1 corresponds to the DOS partition of the hard disk on my 486 machine, / dev / fd0 corresponding to the floppy drive on the machine, / dev / cdrom corresponds to the optical drive on the machine. If you don't know which devices are available, you may want to use the Edit Program VI to view the / etc / fstab file, which is a list of system devices. From it you can understand which main devices in the system and its device identity. I know this, we can install these devices to any directory in the system - ie on the installation point to access in the Linux system. The following is an object as an object, indicating how the disc is used in the Linux system. First insert this MP3 disc in an optical disk drive, be careful to close the door of the drive.

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

New Post(0)