Linux Cloud Automation Operations Basics 14 (device mount)

Source: Internet
Author: User


# # # #1. Device Access # # #
1. Equipment identification
/DEV/XDXN # #硬盘设备/DEV/SDA1
/dev/cdrom # #光驱
/dev/mapper/* # #虚拟设备

2. Use of the device
# # "Discovery of Equipment" # #
Fdisk-l # #查看真实存在的设备
Cat/proc/partitions # #系统能够识别的设备
Blkid # #系统能够挂载使用的设备id
DF # #查看设备被系统使用的情况

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9D/46/wKiom1l9UoiSEv7mAAHr34N2yP0539.png "title=" Screenshot from 2017-07-30 11-24-45.png "alt=" Wkiom1l9uoisev7maahr34n2yp0539.png "/>


650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9D/46/wKiom1l9UsuRiQWBAACPA5GwDYQ202.png "style=" float : none; "title=" screenshot from 2017-07-30 11-25-13.png "alt=" Wkiom1l9usuriqwbaacpa5gwdyq202.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9D/46/wKioL1l9Uszw-AZ5AADqntb2T14618.png "style=" float : none; "title=" screenshot from 2017-07-30 11-25-42.png "alt=" Wkiol1l9uszw-az5aadqntb2t14618.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9D/46/wKiom1l9Us3hycjcAACa6vSJnsA515.png "style=" float : none; "title=" screenshot from 2017-07-30 11-25-55.png "alt=" Wkiom1l9us3hycjcaaca6vsjnsa515.png "/>












# # "Use of equipment" # #
1. Mounting of the device
Mount Device mount point
Mount/dev/sdb1/mnt #把系统中第二块硬盘的第一个分区挂载到 the/mnt directory


650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9D/46/wKiom1l9UxTyEmrpAAGKLhfgE08359.png "style=" float : none; "title=" screenshot from 2017-07-29 14-36-44.png "alt=" Wkiom1l9uxtyemrpaagklhfge08359.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9D/46/wKioL1l9UxWhe_aDAAEQbhg5Aco053.png "style=" float : none; "title=" screenshot from 2017-07-29 14-51-09.png "alt=" Wkiol1l9uxwhe_adaaeqbhg5aco053.png "/>



2. Uninstalling the device
Umout Equipment | mount point

If the following conditions occur:
[Email protected] ~]# UMOUNT/DEV/SDB1
Umount:/home/kiosk/desktop/photo:target is busy.
(In some cases useful info about processes
The device is found by lsof (8) or fuser (1))
Solve:
FUSER-KVM Device | mount point-K kill,-V show details,-m scan device


# # # #2. Soft and Hard Links # # #
Ls-i # #查看文件节点号

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9D/46/wKioL1l9U2bCcXJ5AAA5Ecu35Lw285.png "title=" Screenshot from 2017-07-30 11-26-50.png "alt=" Wkiol1l9u2bccxj5aaa5ecu35lw285.png "/>ln-s/file/file1 # #软链接
Ln/file/file1 # #硬链接

# # # #3. File Search # # #
1.locate filename # #在文件数据库中搜索filename信息, updatedb update file database
2.find

Find Lookup Location-condition condition value-exec action {} \;
-name
-not conditions
-user
-group
-size
-perm
--maxdepth
--mindepth
-A
-O
-type F File
Catalog D
C-Character device
B-Block Equipment
s set of section words
L Link

Find/mnt-user Student
Find/mnt-group Linux
Find/mnt-user student-a-group Linux
Find/mnt-user Student-o-group Linux
Find/mnt-user student-a-group Linux
Find/mnt-user Student
Find/mnt-user student-a-not-group Linux

DD If=/dev/zero of=/mnt/file1 bs=1024 count=10
DD If=/dev/zero of=/mnt/file2 bs=1024 count=20
DD If=/dev/zero of=/mnt/file3 bs=1024 count=30

Find/mnt-size 10k
find/mnt-size-10k
Find/mnt-size +10k

This article is from the "13122425" blog, please be sure to keep this source http://13132425.blog.51cto.com/13122425/1952067

Linux Cloud Automation Operations Basics 14 (device mount)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.