Can anyone show me how to copy and paste the UUID in a test user interface or multi-user .target interface at the exams when the you are not provided with a pen and paper to write the UUID , this is because the UUID is too long to memorize and if you make an error in the /etc/fstab your system can not reboot.
Is it that you can switch target to graphical.target and then copy and paste the UUID?
Are student allowed to switch user interface to graphical.target during RHCSA EX200K individual exams?
Can anyone help me with thses questions.
Thank you.
You could also do (using the appropriate block device, of course):
echo $(blkid /dev/sda1) >> /etc/fstab
Make certain to use >>
Then edit fstab to your liking.
As an aside, and I truly do not mean to be rude: If you did know how to get the information you wanted into the file you wanted, I'll suggest that you probably aren't ready for the RHCSA exam; more studying is in order.
That doesn't mean that you should ask question - in fact, you absolutely should.
I simply mean that this should be a knowledge check for yourself, to determine if you think you are ready for the exam.
My answer, for example, is a RH134 (RHEL 7) solution to the problem. RH134 makes up part of the RCHSA.
You can switch target to graphical.target and then copy and paste the UUID, but you don't need it. You could:
1. Open the file in vim
2. Place the cursor where you want to insert the UUID
3. In command mode, write
:r!blkid /dev/vdXY
(X,Y depend on the file system)
5. The output of this command will be insert in the fstab, and you can delete the part you don't want.
6. Voilà
You could aslo grep the output and append to file. Just don't forget to go back and correct the format. Reboot, and check your work.
Thanks
You could also do (using the appropriate block device, of course):
echo $(blkid /dev/sda1) >> /etc/fstab
Make certain to use >>
Then edit fstab to your liking.
As an aside, and I truly do not mean to be rude: If you did know how to get the information you wanted into the file you wanted, I'll suggest that you probably aren't ready for the RHCSA exam; more studying is in order.
That doesn't mean that you should ask question - in fact, you absolutely should.
I simply mean that this should be a knowledge check for yourself, to determine if you think you are ready for the exam.
My answer, for example, is a RH134 (RHEL 7) solution to the problem. RH134 makes up part of the RCHSA.
Thank you so much
You could also run following command which will redirect out put to the file.
blkid -p <device> | tee -a /etc/fstab
Run systemctl isolate graphical.target and this will open up the GUI, in this interface you can copy and paste.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.