exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 65 discussion

Actual exam question from CompTIA's XK0-005
Question #: 65
Topic #: 1
[All XK0-005 Questions]

A Linux administrator cloned an existing Linux server and built a new server from that clone. The administrator encountered the following error after booting the cloned server:

The administrator performed the commands listed below to further troubleshoot and mount the missing filesystem:

Which of the following should administrator use to resolve the device mismatch issue and mount the disk?

  • A. mount disk by device-id
  • B. fsck -A
  • C. mount disk by-label
  • D. mount disk by-blkid
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Nvoid
Highly Voted 2 years, 4 months ago
Selected Answer: C
Changed yet again, but i'm serious this time. IT's C!!
upvoted 8 times
...
Mistermiyagi
Most Recent 3 days, 13 hours ago
Selected Answer: D
I think I'm going with D here. Label can always change whereas blkid (yes a command) but retrieves the UUID and the UUID are unique to each filesystem.
upvoted 1 times
Mistermiyagi
1 day, 10 hours ago
plus blkid shows label as well, its an all-in-one
upvoted 1 times
...
...
insanegrizly
5 months, 2 weeks ago
Selected Answer: D
It's clear it's either C or D.... The best option is to mount to UUID which blkid would display, that's how you figure out the UUID, therefor I think that's why you you mount it to bklid....but it's entirely how you interpret the question for which answer you come up with.
upvoted 1 times
...
zionjr
10 months, 3 weeks ago
D blkid: This command displays block device information, including a unique identifier called the block device ID. This ID remains constant for a specific disk regardless of device name assignment.
upvoted 1 times
...
IFBBPROSALCEDO
11 months ago
Selected Answer: D
To resolve the device mismatch issue and mount the disk correctly, the administrator should mount the disk using its UUID (Universally Unique Identifier). UUIDs are unique to each filesystem and do not change even if the device name (e.g., /dev/sdb, /dev/sdc) changes, making them ideal for consistent identification of disks. C. mount disk by-label: Disk labels can be useful but are not as unique and reliable as UUIDs. If labels are not unique, they can cause conflicts.
upvoted 1 times
...
e418137
1 year, 2 months ago
Selected Answer: C
C. By lable. Why? (A) There is no "device-id." (B) The 'fsck' command repairs file systems. (D) The 'blkid' command shows block device attributes. (The sane choice is UUID because the UUID is embedded in the file system of the block device, but that's not an option to choose.)
upvoted 2 times
...
DRVision
1 year, 4 months ago
Selected Answer: D
Option D, mount disk by-blkid, is generally better than option C, mount disk by-label, for a few reasons: Uniqueness: The block ID (blkid) is a unique identifier for each block device, which is guaranteed to be the same across reboots and even if the disk is moved to a different machine. On the other hand, disk labels are not guaranteed to be unique and can be changed by the user, leading to potential conflicts. Presence: Not all filesystems support labels, and even when they do, labels are not always set by default. This means that you might not be able to mount a disk by label if the label has not been set. In contrast, all block devices have a blkid. Consistency: The blkid remains consistent even if the device name (e.g., /dev/sda, /dev/sdb) changes due to hardware changes or reconfiguration. Disk labels do not have this issue, but combined with the points above, using blkid is generally more reliable. Therefore, while both methods can be used to mount a disk, using the blkid (option D) is typically more reliable and less prone to errors or conflicts.
upvoted 2 times
e418137
1 year, 2 months ago
There is no block id.
upvoted 1 times
...
DRVision
1 year, 4 months ago
When a server is cloned, the filesystem labels (mount disk by-label) are also cloned. This means that if both the original and cloned servers are on the same network, there could be two disks with the same label, leading to confusion and potential errors. On the other hand, the block ID (blkid) is unique for each block device, even across clones. This means that even if a disk is cloned, the clone will have a different blkid. Therefore, mounting by blkid avoids the potential conflicts that can arise when cloning servers. So, even in the case of server cloning, using the blkid (option D) is typically more reliable and less prone to errors or conflicts. It ensures that the correct disk is mounted, regardless of any changes in the hardware configuration or cloning of disks.
upvoted 1 times
e418137
1 year, 2 months ago
There is no block id.
upvoted 1 times
...
...
...
wait4thebus
1 year, 5 months ago
Selected Answer: C
See comment below. Can someone present a clearer argument on why block ID would be correct and not mount disk by-label?
upvoted 1 times
e418137
1 year, 2 months ago
There is no block id.
upvoted 1 times
...
...
wait4thebus
1 year, 5 months ago
I am going with mount disk by-label because the question states that the IDs were from a clone and the UUIDs are tied to the source device of the cloning. Since the UUIDs of the source of the clone are unique to just that source device and mean nothing to anything else, it would make sense to use the more generic mount disk by-label method. So, C would be the answer.
upvoted 2 times
...
linux_admin
2 years, 2 months ago
Selected Answer: D
The "mount disk by-blkid" option allows the administrator to mount the disk using a unique identifier (the block ID) instead of the device name. This is particularly useful when cloning a server and the device names have changed, as it helps to ensure that the correct disk is being mounted. The "mount disk by device-id" option is not correct because it does not exist in the standard Linux mount command. The "fsck -A" option is used to check and repair file systems, but it does not mount the disk. The "mount disk by-label" option is also incorrect as it mounts the disk based on the disk label, but if the disk label has changed as a result of the clone, this option will not work.
upvoted 1 times
linux_admin
2 years, 1 month ago
***Discard***
upvoted 2 times
...
e418137
1 year, 2 months ago
There is no block id.
upvoted 1 times
...
...
lo_01234_ol
2 years, 4 months ago
Selected Answer: C
Here ya' go: https://unix.stackexchange.com/questions/644708/how-can-i-prevent-disk-uuid-mismatch-when-cloning-a-machine
upvoted 3 times
Nvoid
2 years, 4 months ago
Device label better, i'm actually going to have to do this once i start my job doing this. lol
upvoted 2 times
...
...
Nvoid
2 years, 4 months ago
Selected Answer: A
I changed by vote to A - Device ID is better, Ref: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_file_systems/assembly_overview-of-persistent-naming-attributes_managing-file-systems
upvoted 1 times
TheRealManish
2 years, 4 months ago
I don't know man, your link talks about UUID. selection A is referring to "device-id" which is not in your link, and doesnt really show up on google as anything meaningful in regards to linux.
upvoted 1 times
...
...
TheRealManish
2 years, 4 months ago
Selected Answer: C
According to this link the answer should be C: https://unix.stackexchange.com/questions/644708/how-can-i-prevent-disk-uuid-mismatch-when-cloning-a-machine
upvoted 4 times
TheRealManish
2 years, 4 months ago
not feeling super confident here, does anyone else have thoughts?
upvoted 1 times
...
Nvoid
2 years, 4 months ago
blkid is a command, i'm choosing C, i remember from the class i took Label is more reliable and easier to work with.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago