ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 274 - XK0-005 discussion

Report
Export

A Linux administrator is troubleshooting a systemd mount unit file that is not working correctly. The file contains:

[root@system] # cat mydocs.mount

[Unit]

Description=Mount point for My Documents drive

[Mount]

What=/dev/drv/disk/by-uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34

Where=/home/user1/My Documents

Options=defaults

Type=xfs

[Install]

WantedBy=multi-user.target

The administrator verifies the drive UUID correct, and user1 confirms the drive should be mounted as My Documents in the home directory. Which of the following can the administrator do to fix the issues with mounting the drive? (Select two).

A.
Rename the mount file to home-user1-My\x20Documents.mount.
Answers
A.
Rename the mount file to home-user1-My\x20Documents.mount.
B.
Rename the mount file to home-user1-my-documents.mount.
Answers
B.
Rename the mount file to home-user1-my-documents.mount.
C.
Change the What entry to /dev/drv/disk/by-uuid/94afc9b2\-ac34\-ccff\-88ae\-297ab3c7ff34.
Answers
C.
Change the What entry to /dev/drv/disk/by-uuid/94afc9b2\-ac34\-ccff\-88ae\-297ab3c7ff34.
D.
Change the Where entry to Where=/home/user1/my\ documents.
Answers
D.
Change the Where entry to Where=/home/user1/my\ documents.
E.
Change the Where entry to Where=/home/user1/My\x20Documents.
Answers
E.
Change the Where entry to Where=/home/user1/My\x20Documents.
F.
Add quotes to the What and Where entries, such as What='/dev/drv/disk/by-uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34' and Where='/home/user1/My Documents'.
Answers
F.
Add quotes to the What and Where entries, such as What='/dev/drv/disk/by-uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34' and Where='/home/user1/My Documents'.
Suggested answer: A, E

Explanation:

The mount unit file name and the Where entry must be escaped to handle spaces in the path. Reference The mount unit file name must be named after the mount point directory, with spaces replaced by\x20. SeeHow to escape spaces in systemd unit files?andsystemd.mount. The Where entry must use\x20to escape spaces in the path. Seesystemd.mountandThe workaround is to use /usr/bin/env followed by the path in quotes..

asked 02/10/2024
Daniel Skow
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first