Hook up Command (Mount)First of all, describe the use of the Mount command, the Mount command parameters are very many, here is the main talk about what we are going to use today.Command format: Mount [-t vfstype] [-O options] Device dirwhich1.-t vfstype Specifies the type of file system that is not normally specified.
the Super userFirst Data block=0Maximum filesystem blocks=4294967296Groups block32768 blocks per group, 32768 fragments per group8192 inodes per groupSuperblock backups stored on blocks:32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,4096000, 7962624, 11239424, 20480000, 23887872Writing Inode Tables:doneCreating Journal (32768 blocks): DoneWriting superblocks and filesystem accounting Information:doneThis filesystem'll be automatically checked every mounts orWhichever com
01. Automatically Mount =>vi/etc/fstab files1th field: Partition device file name or UUID (hard disk universal unique identification code)2nd field: mount point3rd field: File system name4th field: Mount parameters5th field: Specifies whether the partition is backed by a dump, 0 means no backup, 1 represents a daily ba
ArticleDirectory
More about loop device
An ISO image is an archive file (disk image) of an Optical DiscUsing a conventional ISO (International OrganizationStandardization) format. ISO image files typically have a fileExtension of. ISO. The name "ISO" is taken from the ISO 9660 FileSystem Used with CD-ROM media, but an ISO image can also contain UDFFile System because UDF is backward-compatible to ISO 9660.
You can mount an ISO images
Http://www.jb51.net/os/RedHat/1109.htmlLinux is an excellent open-source operating system, can run in large-to-small to the palm of a variety of computer systems, with the growing maturity and stability of Linux systems and its unique advantages of open source code, Linux in the world has been more and more widely used. Nowadays, many enterprises ' computer systems are mixed systems composed of UNIX system,
UUID-unique identifier of a device in linux-Linux Enterprise Application-Linux server application information. For more information, see the following section. In linux, everything is a file. All hardware devices are also considered as files by the system, and these hardware
Today, as you organize your pictures, found that the root directory hard disk space has been left, and the site and all related files are mainly placed in the root of the data directory (/data), but the/home is there is room, and do not want to put the file under/home, only add a new hard drive, for later/ The file management of the data directory is also better.
Then turn off the host, plus a new hard drive (other computer used 500G hard disk), plug in and then start the computer.
Next, we st
Article Title: view the UUID method in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. sudo blkid
/Dev/sda1: UUID = "9ADAAB4DD
urandom的数据是非常多,不能直接通过cat读取,这里取前200行,其实整个数据都是变化的,取多少也一样是唯一的。#cksum 将读取文件内容,生成唯一的表示整型数据,只有文件内容不变,生成结果就不会变化,与php crc函数[[emailprotected] shell]$ head-200 /dev/urandom| cksum | cut-f1 -d" "484750180#cut 以” “分割,然后得到分割的第一个字段数据
Get the integer data, and then a method like one can get to the random number. Digression: In the program, we often MD5 get unique values, and then the string, if you want to represent an integer mode, you can pass the CRC function. CRC is cyclic redundancy check
Linux hard disk partition, partition, delete partition, format, mount, detach, linux Mount1. Create a partition
Check whether the disk is not partitioned.
fdisk -l
The first and second boxes are the disks that have been divided into different zones.
Start partitioning
# Enter the name of the disk to be partitionedFdisk/dev/sdb
Enter m to view the operations
Linux shows that all directories are under a single directory tree, regardless of which drive or hardware they are located in.
Disk content under Linux appears as a subdirectory, and the contents of removable media do not automatically appear in these subdirectories, so we need to mount the drive to implement it.
For example:
Command format: Mount [-t vfstype] [-O options] Device dirwhich1.-t vfstype Specifies the type of file system that is not normally specified. Mount will automatically select the correct type. Common types are:Disc or disc Image: iso9660DOS FAT16 file system: MSDOSWindows 9x FAT32 file system: VFATWindows NT NTFS file system: NTFSMount Windows file network share: SMBFSUNIX (
device is mounted;-T Fstype (file type): Specifies the type of file system that is being mounted on the device; When you do not use this option, mountCall the Blkid command to obtain the type of the corresponding file system;-R: Read-only Mount-W: Read-write mount, if the mounted device does not support write operation, mount directly as read.-O: Specifies the a
programme I :Linux is not like Windows, after the new hardware can be automatically recognized, in Linux cannot automatically identify new hardware, need to manually identify. USB Mobile storage devices are usually identified as SDA1, which can be queried by fdisk-l command.
Before using a U disk, we have to create a new subdirectory for the plug-in point, the general point of the subdirectory is built in t
In Linux, there are commands dedicated to UUID generation:Uuidgen [-r] [-t].A 32-bit string can be generated. This is obtained in the command line. There is a/uuid. h in/usr/include/lib, which defines the data uuid and the unsigned character pointer. Uuid_generate (uuid_t uu) is a function dedicated to
In Linux, there are commands dedicated to UUID generation:
Uuidgen [-r] [-t].
A 32-bit string can be generated. This is obtained in the command line. There is a/uuid. h in/usr/include/lib, which defines the data uuid and the unsigned character pointer. Uuid_generate (uuid_t uu) is a function dedicated to
One, Linux disk mount and mount sharing
For Linux Server disk mount mount and share to do a simple operation description:
1. View the disks that have been used
Df–h
2. View all disks
Fdisk–l
3. View the partition of the spec
the file system mount, uninstall (Mount, Umount) will be introduced this time
How to mount the use of a file system, mount a common parameter, Mount automatic mounting (/etc/fstab) 1 mount Operation (
GUID (Global unique identifier) isMicrosoftName of UUID.UUID (universal unique identifier)
Uuidgen can be used on HP and RedHat for generation,SolarisCommand: makeuuid
How to use C ++ProgrammingObtain UUID?1. Install the libuuid library. libuuid. so.1 is included in e2fsprogs.SystemFor redhat7.3, downloadFTP: // 194.199.20.114/Linux/RedHat/7.3/en/OS/i386/RedHat/RPMS/e2fsprogs-1.27-3.i386.rpm
2. EditFi
Linux under Installation using Libuuid (uuid-generate)
Linux under Installation using Libuuid (uuid-generate)
Introduction to UUID
Installing the Libuuid Library
Write a program try it
Code
Compile run
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.