Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Red Hat Certified System Administrator (RHCSA) · Red Hat
Hotspot Scenario
Select the appropriate option to complete the statement. Click Check Answer below to see the marked solution.
Hotspot Solution:
Another solution to this is to use fdisk utility so: #fdisk -l (to check for empty disk) #fdisk /dev/sdd (format disk in question) #n (new partition) #p (for primary) #Enter (use the first sector by default) #+size 512M (to specify the size) #Enter #w (to write the changes) #fdisk -l /dev/sdd1 (to verify partition has been created) #mkfs.ext4 /dev/sdd1 (to format the partition with ext4 file system) #mkdir /mnt/data (to create the mount point) #mount /dev/sdd1 (mount the partition) #vi /etc/fstab (to configure auto mount after each boot) Press Shift G to go to the last line and press O to start in new line in Insert mode. Enter the following (ensure you press TAB for each part of the entry): /dev/sdd1 /mnt/data /ext4 defaults 0 0 Exit out of the Insert mode and type: :wq! Job done!
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
also, if you prefer to use gdisk: lsblk gdisk /dev/sdb p - print n - new - 512M w -write sudo mkfs.ext4 /dev/sdb1 lsblk -f sudo mkdir /mnt/data sudo vim /etc/fstab -> /dev/sdb1 /mnt/data2 ext4 defaults 0 0 tail -n1 /etc/fstab /dev/sdb1 /mnt/data2 ext4 defaults 0 0 sudo systemctl daemon-reload sudo mount -a lsblk -f
#sudo su #lsblk -psf (to check for empty disk) #fdisk /dev/sd[] (format disk in question) #n (new partition) #p (for primary) #Enter (use the first sector by default) #+size 512M (to specify the size) #Enter #w (to write the changes) #lsblk -psf(to verify partition has been created) #mkfs.ext4 /dev/sd[]1 (to format the partition with ext4 file system) #mkdir /mnt/data (to create the mount point) #lsblk -psf (to show the UUID for the newly created file system) #echo 'UUID=XXX /mnt/data ext4 defaults 0 0' >> /etc/fstab #systemctl daemon-reload #mount -a
Another solution to this is to use fdisk utility so: #fdisk -l (to check for empty disk) #fdisk /dev/sdd (format disk in question) #n (new partition) #p (for primary) #Enter (use the first sector by default) #+size 512M (to specify the size) #Enter #w (to write the changes) #fdisk -l /dev/sdd1 (to verify partition has been created) #mkfs.ext4 /dev/sdd1 (to format the partition with ext4 file system) #mkdir /mnt/data (to create the mount point) #mount /dev/sdd1 (mount the partition) #vi /etc/fstab (to configure auto mount after each boot) Press Shift G to go to the last line and press O to start in new line in Insert mode. Enter the following (ensure you press TAB for each part of the entry): /dev/sdd1 /mnt/data /ext4 defaults 0 0 Exit out of the Insert mode and type: :wq! Job done!