1. Use vmware and other tools to add a hard disk (1 GB) to the system and create partitions as follows: two primary partitions and three logical partitions. The size of the five partitions is 200 MB. Format the five partitions. The partition type of the last partition is set to FAT32, And the other partition types are set to Linux.
1. First add a 1 GB hard disk to the system using the VM
2. Run the fdisk-l command to list the number of disks and basic information of the system. Highlight the disk. hdb is the newly added 1G hard drive.
3. Use the fdisk/dev/hdb command to partition the disk.
4. Enter 'n' to add the first partition.
5. Add the second primary Partition
6. Add an extended partition
7. Enter 'P' to list the partition tables we just partitioned.
8. Input 'n' again, and we will find that the option of extended partition is gone, which is changed to the option of logical partition. This is because at most one partition can be extended during partitioning.
Enter 'l' to add a logical partition.
9. Similarly, add another two logical partitions.
10. Enter 'P' to view the partition information.
11. Set the partition type of the last partition to FAT32. Enter 'I to list the partition types.
12. Enter 'T' to modify the hdb7 partition type.
13. Enter 'w' to write the Partition Table to the hard disk and exit. Enter the fdisk-l command to list the number and basic information of the system disk.
14. Run The mkfs command to format hdb1, hdb2, hdb5, hdb6, and hdb7 respectively.
Save formatting for other partitions
2. Create an ordinary user abc1 (abc represents your name in pinyin ). Implement disk quota allocation for this user. The user's soft quota of abc1 is 5 M, the hard quota is 7 M, and the number of available index files is 5. Verify that quota management is effective after configuration, that is, to verify that users are allowed to use ultra-large hard disk space and index nodes.
1. Create a user, jerry1
2. Use the vi editing tool to edit the/etc/fstab file and add the Command Option usrquota on the highlighted line.
3. restart the system and re-mount the file system in RHEL Server 5 According to the modified/etc/fstab file. After the restart, log on to the system as root.
Use the quotacheck-avu command to create aquota. user. Now you can view the/home directory and find the new user-level Configuration Management file aquto. user.
4. Use the edquota command to edit the quota. user File, configure user jerry1, and modify highlighted data.
5. Run quotaon-avu to start quota management.
6. Test the user quota. Log On With jerry1 and copy the file to/home/jerry1. When only the soft quota is exceeded,
The screen prompts highlighted information, but the file can still be saved.
7. If you continue copying files, the system automatically terminates the copy process when the hard quota is exceeded.
3. Use vmware and other tools to add two hard disks to the system (the size is set by yourself) and set two primary partitions for the two hard disks respectively. Create a volume group vg0 and vg1. vg0 uses the first partition of the two hard disks as the physical volume, and vg1 uses the second partition of the two hard disks as the physical volume. Create logical volume data for vg0. The size is 100 MB. Finally, transfer one of the physical volumes in vg1 to vg0.
1. Add a hard disk and partition. Refer to Question 1. Use fdisk-l to confirm the partition.
2. Create a volume group vg0 and vg1. In vg0, the first partition of the two hard disks is the physical volume, and in vg1, the second partition of the two hard disks is the physical volume.
3. Create logical volume data for vg0. The size is 100 MB.
4. Finally, transfer one of the physical volumes in vg1 to vg0.