1, start a Linux, open the terminal, with FDISK-L to detect disk information
2. Add a disk and click on the virtual machine settings as
At this point you can see a new disk, and the actual use of this disk requires a reboot of the Linux system
3, restart complete, again with fdisk-l detection disk information, you can see more than the original disk SDB
4, hard disk storage location
5. Plan the newly added hard drive
6. View partition information
7, similarly create two primary partitions
8. Create an extended partition
9. View partition information
10. Establish two logical partitions on the basis of the extended partition
11. Change the partition type
12. Save Exit to view disk information
13, the end of the partition can not be used directly, you need to format and mount
①EXT4 File type formatting
Create a new empty folder/abc and mount the SDB1 to this folder to use
②fat File type formatting
Create a new empty folder/abcd and mount the SDB2 to this folder to use
③swap type formatting
Adding virtual memory and shutting down virtual memory
④ logical partition formatting in an extended partition, as with the default ext4 type formatting
Create a new empty folder/ab1 and mount the SDB5 to this folder to use
Create a new empty folder/ab2 and mount the SDB6 to this folder to use
View all previous Mount information
Logical volume management and disk quotas
Dynamic reel Management
1. Add two new disks, add the same method as above, restart Linux after adding complete
2, the two newly added disks are divided into a primary partition, the same way, as in the case of SDC
3, see the disk information with Fdisk-l, you can see the SDC and SDD two pieces of disk information
4. Change the partition type to 8e: physical volume type
5. Physical volume creation
6. Set up a volume group of two physical volumes Yun
7, on the basis of the volume group to establish a logical volume YUN01
8. Format Yun01 and mount it to an empty folder Yun01
Disk quota Management Quota
1. vi Editor Enter/ETC/FSTAB, add user quotas and group quotas at folder permissions for quotas
2. Turn off the security feature and create a quota profile
3, go to mount directory, you can see the presence of Aquota.group and aquota.user two quota profiles, be sure to turn off the security features, or not enough permissions to see, if the security function is still not visible, you need to restart
4. Create user Zhangsan, set quotas on Zhangsan
5. Enable Quota function
6, here because Zhangsan to Yun01 folder Modify permissions insufficient, so need to give Zhangsan to increase permissions
7. Switch to Zhangsan user for verification
8. Verify the number of folders that can be created
This experiment is done
RedHat Linux disk and quota management