cancel
Showing results for 
Search instead for 
Did you mean: 
Vincent10
Mission Specialist
Mission Specialist
  • 6,457 Views

RHCSA EX200K Individual exams

Jump to solution

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.

0 Kudos
1 Solution

Accepted Solutions
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 6,376 Views

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.

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College

View solution in original post

7 Replies
Montse
Mission Specialist
Mission Specialist
  • 6,452 Views

 

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à

 

Trevor1
Cadet
Cadet
  • 6,440 Views

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.

Vincent10
Mission Specialist
Mission Specialist
  • 6,388 Views

Thanks 

0 Kudos
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 6,377 Views

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.

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Vincent10
Mission Specialist
Mission Specialist
  • 6,322 Views

Thank you so much

0 Kudos
  • 5,743 Views

You could also run following command which will redirect out put to the file. 

blkid -p <device> | tee -a /etc/fstab 

 

 

0 Kudos
Mala
Cadet
Cadet
  • 5,517 Views

Run systemctl isolate graphical.target and this will open up the GUI, in this interface you can copy and paste.

 

Join the discussion
You must log in to join this conversation.