In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to load u disk, CD, floppy disk in linux system". The content in the article is simple and clear, and it is easy to learn and understand. next, please follow the editor's train of thought to study and learn how to load u disk, CD-ROM and floppy disk in linux system.
1. Linux load u disk
How to load (excellent) USB flash drive in Linux
The first step is to log in as root user
Load the USB module modprobe usb-storage first
Look at the disk device with fdisk-l
If the USB flash drive is sda
The second step is to make sure that the folder / usb is established under the directory / mnt. If not, type the command: mkdir / mnt/usb
Third, to load the u disk, type the following command:
How to load (excellent) USB flash drive in Linux
The first step is to log in as root user
Load the USB module modprobe usb-storage first
Look at the device of USB disk with fdisk-l
If the USB flash drive is sda1
The second step is to make sure that the folder / usb is established under the directory / mnt. If not, type the command: md / mnt/usb
After success, proceed to the next step.
Third, to load the u disk, type the following command:
Mount-t vfat / dev/sda / mnt/usb_disk
After success, you can use the u disk, and the files are in the directory / mnt/usb.
Step 4: uninstall the u disk
After using the U disk, you need to type the command to uninstall the U disk before unplugging it.
Commands are as follows: umount / mnt/usb
Guide to the use of Linux mount
In Linux, if you want to use a storage device (Mo, hard disk, optical drive, etc.), you have to Mount it first, and when the storage device is hung up, you can access it as a directory. Hang up a device and use the mount command.
When using the mount directive, you must know at least the following three kinds of information:
1. The file system type of Mount object? (File system type)
two。 Want the device name of the Mount object? (/ dev/????)
3. Which directory do you want to Mount the device to?
I. the types of file systems supported by the system
On the first point, the user can execute the
Cat / proc/filesystems
To get the file system types supported on the machine. If the system does not support the file system type to which you want to attach the device, you may need to recompile the kernel to add support for this file type. For more information about how to compile the kernel, please refer to the related articles in the online training section of LinuxAid.
Common file systems are:
FAT 32 file system commonly used in Win95/98: vfat
File system for Win NT: ntfs
File system for OS2: hpfs
File system for Linux: ext2
File system for optical disk: iso9660
Although vfat refers to the FAT 32 system, in fact it is also compatible with the file system type of FAT 16.
2. Determine the name of the equipment
In Linux, the device name is usually in / dev. The naming of these device names is regular, and we can use "reasoning" to find out the device name.
For example, / dev/hda1 this IDE device. Hd means Hard Disk, and sd means SCSI Device,fd and Floppy Device (or Floppy Disk?). A represents the first device, and usually the IDE interface can be connected to four IDE devices (such as four hard drives). So the ways to identify IDE hard drives are
Yes: hda, hdb, hdc, hdd. In addition, the "1" in hda1 represents the first hard disk partition of hda
(partition), hda2 represents the second partition of hda, and so on.
In addition, you can directly check the / var/log/messages file, in which you can find the device code that has been recognized by the department after the computer is powered on.
Third, find the connection point
Finally, we have to decide where to connect the device, and first check to see if your computer has an empty directory for / mnt. This directory is a directory specifically used as a mount point (Mount Point). It is recommended that you create more of these directories in / mnt: / mnt/ cdrom, / mnt/floppy, / mnt/mo, etc., as dedicated mount points for directories.
For example, if you want to mount the following five devices, the execution instruction may be (assuming that they are all ext2 systems of Linux, if it is Win XX, change ext2 to vfat):
1. Floppy disk = > mount-t ext2 / dev/fd0 / mnt/floppy
2. MO = = > mount-t ext2 / dev/sda / mnt/mo
3. Cdrom = = > mount-t ext2 / dev/hdc / mnt/cdrom
4. SCSI cdrom = = > mount-t iso9660 / dev/sdb / mnt/scdrom
5. SCSI cdr = = > mount-t iso9660 / dev/sdc / mnt/scdr
This is hypothetical, if the name of your device is different from this one, please modify it yourself.
Finally, it is important to note that:
1. When performing the mount action, type pwd to see if the current directory is at the mount point. If the directory is now at the mount point, mount (or umount) will not succeed (device busy will be displayed).
two。 The syntax for uninstalling a device is the umount directory name, such as umount / mnt/cdrom, and so on.
Thank you for your reading, the above is the content of "how to load u disk, CD, floppy disk in linux system". After the study of this article, I believe you have a deeper understanding of how to load u disk, CD and floppy disk in linux system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.