Home
You may like this!
51.
What does the following command accomplish?
# mkfs -t ext2 /dev/sda4
  • A.
    It sets the partition table type code for /dev/sda4 to ext2.
  • B.
    It converts a FAT partition into an ext2fs partition without damaging the partition’s existing files.
  • C.
    Nothing; the -t option isn’t valid, and so it causes mkfs to abort its operation.
  • D.
    It converts an ext2 filesystem to an ext4 filesystem.
  • E.
    It creates a new ext2 filesystem on /dev/sda4, overwriting any existing filesystem and data.
  • Answer & Explanation
  • Report
Answer : [E]
Explanation :
The mkfs command creates a new filesystem, overwriting any existing data and therefore making existing files inaccessible, as stated in option E. This command doesn’t set the partition type code in the partition table, so option A is incorrect. The mkfs command is destructive, contrary to option B. The -t ext2 option tells mkfs to create an ext2 filesystem; it’s a perfectly valid option, so option C is incorrect. Although mkfs could (destructively) convert ext2fs to ext4fs, the -t ext2 option clearly indicates that an ext2 filesystem is being created, so option D is incorrect.
Report
Name Email  
52.
Which of the following best summarizes the differences between DOS’s FDISK and Linux’s fdisk?
  • A.
    Linux’s fdisk is a simple clone of DOS’s FDISK but written to work from Linux rather than from DOS or Windows.
  • B.
    The two are completely independent programs that accomplish similar goals, although Linux’s fdisk is more flexible.
  • C.
    DOS’s FDISK uses GUI controls, whereas Linux’s fdisk uses a command-line interface, but they have similar functionality.
  • D.
    Despite their similar names, they’re completely different tools—DOS’s FDISK handles disk partitioning, whereas Linux’s fdisk formats floppy disks.
  • E.
    DOS’s FDISK manages GPT disks whereas Linux’s fdisk manages MBR disks.
  • Answer & Explanation
  • Report
Answer : [B]
Explanation :
Although they have similar names and purposes, Linux’s fdisk isn’t modeled after DOS’s FDISK, so option B is correct and option A is not. DOS’s FDISK does not have GUI controls, contrary to option C. Linux’s fdisk does not format floppy disks, contrary to option D. Both programs manage MBR disks, contrary to option E.
Report
Name Email  
53.
What mount point should you associate with swap partitions?
  • A.
    /
  • B.
    /swap
  • C.
    /boot
  • D.
    /mem
  • E.
    None of the above
  • Answer & Explanation
  • Report
Answer : [E]
Explanation :
Swap partitions aren’t mounted in the way filesystems are, so they have no associated mount points, making option E correct.
Report
Name Email  
54.
Which of the following options is used with fsck to force it to use a particular filesystem type?
  • A.
    -A
  • B.
    -N
  • C.
    -t
  • D.
    -C
  • E.
    -f
  • Answer & Explanation
  • Report
Answer : [C]
Explanation :
The –t option is used to tell fsck what filesystem to use, so option C is correct. (If this option isn’t used, fsck determines the filesystem type automatically.) The –A option (option A) causes fsck to check all the filesystems marked to be checked in /etc/fstab. The –N option (option B) tells fsck to take no action and to display what it would normally do without doing it. The –C option (option D) displays a text-mode progress indicator of the check process. The -f option (option E) is fictitious.
Report
Name Email  
55.
Which of the following pieces of information can df not report?
  • A.
    How long the filesystem has been mounted
  • B.
    The number of inodes used on an ext3fs partition
  • C.
    The filesystem type of a partition
  • D.
    The percentage of available disk space used on a partition
  • E.
    The mount point associated with a filesystem
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
A default use of df reports the percentage of disk space used (option D) and the mount point for each filesystem (option E). The number of inodes (option B) and filesystem types (option C) can both be obtained by passing parameters to df. This utility does not report how long a filesystem has been mounted (option A), so that option is correct.
Report
Name Email