In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail the four methods of identifying USB device names in the Linux system. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
For beginners, one of the techniques you must master in a Linux system is to identify the various devices plugged into the system. This may be your system hard drive, external storage device, or removable device, such as a USB device or SD flash memory card.
Nowadays, it is very common to use USB devices to transfer files, and for beginners who like to use the command line, it is important to learn to use different methods to identify USB device names when you need to format USB devices.
If you insert a device into the system, especially in a desktop environment, such as a USB device, it will automatically mount to a specified directory, usually in the / media/username/device-label directory, and then you can go to that directory to access those files. However, this is not the case on the server, you must mount the device manually and specify a mount point.
The Linux system uses a specific device file in the / dev directory to identify the inserted device. You will find some files in this directory, including / dev/sda or / dev/hda for your master devices, with each partition represented by a number, such as / dev/sda1 or / dev/hda1 for * * partitions of the master device, and so on.
$ls / dev/sda*
List all device names under the Linux system
Now let's use some special command-line tools to find out the device name:
Use the df command to find out the inserted USB device name
Check every device plugged into your system and the corresponding mount point. You can use the df command in the following figure to check the disk space usage of the Linux system:
$df-h
Use the df command to find the USB device name
Use the lsblk command to find the USB device name
You can also use the following lsblk command (list block devices) to list all block devices plugged into your system:
$lsblk
List the block devices in the Linux system
Use the fdisk tool to identify the USB device name
Fdisk is a powerful tool for viewing all partition tables on your system, including all USB devices, and execute the following commands with root permissions:
$sudo fdisk-l
List the partition tables for block devices
Use the dmesg command to identify the USB device name
Dmesg is an important command for printing or controlling the kernel ring buffer (kernel ring buffer). A ring buffer is a data structure that stores information about kernel operation data.
Run the following command to view the kernel operation information, which also prints out the information about the USB device:
$dmesg
Dmesg-print the USB device name
On the Linux system to identify USB device names of the four methods are shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.