Linux use an external device

       In the Linux system, the hardware devices in the form of a file, so different hardware devices have
different file types, we have the hardware and system file corresponding to the file called a device. Device
file provides a separate warranty connected between the external device and the operating system so that the user extrinsic provided
apparatus is equivalent to using the same as an ordinary file

       In the Linux system device files stored in the named / dev below, the main file device is provided

Reserved plus minor number, device type described major number, minor device number which refers to a specific set described
apparatus. Examples are as follows

Common file system

External device needs to be mounted in the Linux system, the format

      mount -t type device name file system mount point (that is, Linux system directory)

Mount a floppy

     mount -t msdos /dev/fd0 /mnt/floppy

Mount U disk

      mount -t vfat /dev/sda1 /mnt/usb

Mount CD

       mount -t iso9660 /dev/hda /mnt/cdrom 或者 mount /dev/cdrom /mnt/cdrom

Note: In the command line, type "dmesg | more" to see the device name, device replacement, first uninstall, then mount

 

Guess you like

Origin www.cnblogs.com/myworld5218/p/11275831.html