When mounting the second hard disk under Linux, you need to check whether the hard disk can be recognized, and then mount the hard disk. The following small series will introduce you to the next. Linux mounts the second hard disk method, interested friends may wish to understand.
a, test drive can be identified
# fdisk -l
Disk /dev /sda: 36.7 GB, 36703934464 bytes
255 heads, 63 sectors/track, 4462 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 261 2096451 83 Linux
/dev/sda2 262 783 4192965 83 Linux
/dev/sda3 784 1305 4192965 83 Linux
/dev/sda4 1306 4462 25358602+ 5 Extended
/dev/sda5 1306 1827 4192933+ 83 Linux
/dev/sda6 1828 2088 2096451 82 Linux swap
/dev/sda7 2089 4462 19069123+ 83 Linux< Br>
Disk /dev/sdb: 36.7 GB, 36748945408 bytes
255 heads, 63 sectors/track, 4467 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 509 4088511 83 Linux
/dev/sdb2 510 2430 15430432+ 83 Linux
/dev/sdb3 2431 2557 1020127+ 82 Linux swap
/dev/sdb4 2558 4467 15342075 f W95 Ext‘d (LBA)
/dev/sdb5 2558 2811 2040223+ 83 Linux
/dev/sdb6 2812 3830 8185086 83 Linux
/dev/sdb7 3831 4467 5116671 83 Linux
/dev/sdb Description has identified the second Block hard disk
Second, mount the hard disk
1. Temporarily create a directory on the local hard disk
#mkdir /opt/data/tmp1
2 Mount one partition /dev/sdb1 in the second hard disk to tmp1
#mount /dev/sdb1 /opt/data/tmp1
3. Check whether it is mounted. >
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 2.0G 141M 1.8G 8% /
none 1014M 0 1014M 0% /dev/shm
/dev/sda2 4.0G 1.8G 2.0G 47% /opt
/dev/sda7 18G 168M 17G 1% /opt/data
/dev/sda5 4.0G 1.4G 2.4G 37% /usr
/dev/sda3 4.0G 2.1G 1.8G 55% /var
/dev/sdb1 3.9 G 1.4G 2.3G 38% /opt/tmp/tmp1
Third, unmount the hard disk
#umount /dev/sdb1
The above is the second hard disk mounted by Linux. The method is introduced. In addition to the identification and mounting of the second hard disk, this article also explains the uninstallation of the hard disk.
The at command in the Linux system can be executed periodically, while the crontab command is execut
Every user who has certain mastery of Linux system must start to learn some common commands of Linux
Multiple shells can be opened at the same time in Linux, but there can only be one running shell. So
Some enterprise users have dual servers. Sometimes they need to switch the IP of th
How to use the sleep command on Linux
Linux installation and deployment of LXC method details
Linux system uses commands to print files
Ubuntu install Texmaker FAQ summary
Application of mkdir command in Linux
Linux command shutdown restart command usage summary
Linux system lsof command use instance summary
Little-known Unix command inventory
Linux installation of PCNS software
Modify the IP address under Linux
Ubuntu system to change the terminal user name to red skills
Win10 set task view button to show or hide method
Error loading XX.dll can not find the general solution of the specified module
How to install network printer in Windows 8
Teach you how to build a Web server with Win7
Win7 easy to clean up the record tips 4
What should I do if the WinXP system CHM file cannot be opened?
Win8 background automatic update driver how to block
Microsoft promises to solve Win8.1 Update installation error