Linux下动态加载硬盘,不用重启系统(linux不重启加硬盘)

The Linux system has many advantages such as stability, strong execution ability and so on. With the development of the Internet, Linux has been widely used by people. Recently, many people have encountered the problem of dynamic loading hard disk. This paper mainly introduces the steps of using Linux system to dynamically load hard disks without restarting the system.

1. First of all, enter the Linux system and press the “Ctrl+Alt+T” shortcut to open the terminal. Enter the command line “sudo dmseg” to learn the connection information of the hard disk, including the manufacturer and model;

2. Use the command line “sudo apt-get install sdparm”, install the command line “sdparm” from the network;

3. Execute the command line “sudo sdparm –inquiry /dev/sdx”,where “sdx” stands for the connection information obtained in the first step. Replace the hard disk inquiry information obtained in the previous steps to execute the command, so that the hard disk can be dynamically loaded;

4. Input the command line of “sudo partprobe” to make the loading of the hard disk take effect;

5. Finally, check whether the hard disk is successfully loaded through the command line of “sudo fdisk -l”.

It can be seen from the above that using Linux system to dynamically load hard disk without restarting the system is very easy. People only need to enter a few command lines to make their hard disk take effect without restarting the system. Therefore, the loading of Linux system hard disk does not need to restart.


数据运维技术 » Linux下动态加载硬盘,不用重启系统(linux不重启加硬盘)