- Home
- Server Administration
- LPIC-2 Linux Engineer 201
21.
What mount point should you associate with swap partitions?
- A./
- B./swap
- C./boot
- D.None
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
Swap partitions aren't mounted in the way filesystems are, so they have no associated mount points. |
22.
To access files on a USB pen drive, you type mount /dev/sdc1 /media/pen as root . Which types
of filesystems will this command mount, provided the filesystem support exists in the kernel?
- A.Ext2fs
- B.FAT
- C.HFS
- D.All of the above
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
When typed without a filesystem type specification, mount attempts to auto - detect the filesystem type. If the media contains any of the specified filesystems, it should be detected and the disk mounted. |
23.
Which of the following /etc/fstab entries will mount /dev/sdb2 as the /home directory
at boot time?
- A./dev/sdb2 reiserfs /home defaults 0 0
- B./dev/sdb2 /home reiserfs defaults 0 0
- C./home reiserfs /dev/sdb2 noauto 0 0
- D./home /dev/sdb2 reiserfs noauto 0 0
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
The /etc/fstab file consists of lines that contain the device identifier, the mount point, the filesystem type code, filesystem mount options, the dump fl ag, and the filesystem check frequency, in that order. Option B provides this information in the correct order and so will work. Option A reverses the second and third fields but is otherwise correct. Options C and D both scramble the order of the first three fields and also specify the noauto mount option, which causes the filesystem to not mount automatically at boot time. |
24.
What filesystem options might you specify in /etc/fstab to make a removable disk (USB
pen drive, Zip disk, floppy disk, and so on) user - mountable? (Select all that apply.)
- A.user
- B.users
- C.owner
- D.owners
- Answer & Explanation
- Report
Answer : [A, B, C]
Explanation :
Explanation :
The user , users , and owner options in /etc/fstab all enable ordinary users to mount a filesystem, but with slightly different implications: user enables anybody to mount a filesystem, and only that user may unmount it; users enables anybody to mount a filesystem, and anybody may unmount it; and owner enables only the owner of the mount point to mount or unmount a filesystem. Any of these is likely to be accompanied by noauto , which prevents Linux from attempting to mount the filesystem at boot time. The owners parameter of option D doesn't exist. |
25.
Your /etc/fstab file contains the following entry:
/dev/sdc5 / ext4 defaults 1 1
Unfortunately, the order in which your three hard disks is detected varies randomly from one boot to another, which makes this entry problematic. How might you change the entry to fix this problem?
/dev/sdc5 / ext4 defaults 1 1
Unfortunately, the order in which your three hard disks is detected varies randomly from one boot to another, which makes this entry problematic. How might you change the entry to fix this problem?
- A.Replace /dev/sdc5 with a drive letter specification, such as DRIVE=D: , obtaining the drive letter from GNOME's file browser, Nautilus.
- B.Replace /dev/sdc5 with a UUID specification, such as UUID=8b4cdbdd - b9b3 - 404a - 9a54 - c1691f1f1483 , obtaining the UUID value using blkid .
- C.Replace the mount point, / , with the drive - independent mount point specification of //rootdevice// ; and change defaults to rootdrive .
- D.Replace the mount point, / , with an appropriate LABEL= specification, such as LABEL=root , obtaining the LABEL value using dumpe2fs .
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
The UUID method of specifying a filesystem can protect against changes in device node names such as those described in the question. Option B correctly describes an appropriate change, although of course the exact UUID value you use will depend on your system. Linux doesn't recognize drive letters as described in option A; those are DOS and Windows constructs. Thus, option A is incorrect. Option C is a completely fictitious solution with no correct elements. Option D is a distortion of a possible correct solution; however, to be correct you would need to replace the device specification ( /dev/sdc5 ), not the mount point. Thus, option D is incorrect. |