Linux hard disk

Source: Internet
Author: User

Df-ht

View formats for various files

The mount command can mount those
Block device: Disc, disk partition, USB flash drive

Disc: File system: iso9660 ISO file system: iso9660


ISO files can be mounted on the

Mount Centos7.iso/media/cdrom #挂载iso文件到/media/cdrom directory, and the contents of the/media/cdrom directory are the contents of the ISO file.

The details of the implementation
1. Connect the file to the local loopback block device file Losetup/dev/loop1 Centos7.iso
2. Mount: Mount/dev/loop1/media/cdrom # #可以使用-T iso9660 join instructions


Production of ISO documents:

Mkisofs command to make an ISO file
Mkisofs-v "Label"-O name.iso dir/

##########################################################################
Partition of the disk:
25G
#########################################
A partition was created:/DEV/SDB1 5G
Mkfs.xfs/dev/sdb1
Mount/dev/sdb1/opt


LVM Management:
1, first convert the physical equipment into PV (physical volumes)
Pvcreate/dev/sdb
Pvcreate/dev/sdc

Multiple PV can be composed of VG (volumes group)
PVs can view all PV in the system


2, the definition of VG, each VG has a name
Vgcreate VGNAME/DEV/SDB/DEV/SDC
#创建一个vg, named Vgname, which contains/DEV/SDB/DEV/SDC
VGS can view all the VG in the system

3. Create a logical partition: that is, LV
Lvcreate-l 10G Vgname
#
LVS View all LV in the system

##########################################
Disk and partition identification

/dev/sda1

/DEV/SDA---> Representative disk
1--> represents the first partition on SDA

Based on LVM
/dev/mapper/vgname-lvol0
Disk: vgname--represents VG Volume group
Partition: Lvol0

/dev/vgname/lvol0
Partition:

/dev/dm-Digital

Linux hard disk

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.