Exam LFCS All QuestionsBrowse all questions from this exam
Question 101

Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

    Correct Answer: A, B

    To create an ext3 filesystem on /dev/sdb1, you can use either the mke2fs command with the -j option or the mkfs command with the -t option. The command '/sbin/mke2fs -j /dev/sdb1' uses mke2fs with the journaling option to format the device as ext3. The command '/sbin/mkfs -t ext3 /dev/sdb1' uses mkfs with the type specified as ext3 to format the device. The other options are incorrect because they either use non-existent commands or incorrect options.

Discussion
rona962Options: AB

The correct commands to create an ext3 filesystem on /dev/sdb1 are: A. /sbin/mke2fs -j /dev/sdb1 B. /sbin/mkfs -t ext3 /dev/sdb1 Option A runs the mke2fs command with the -j option to create an ext3 filesystem with a journal on the /dev/sdb1 device. Option B runs the mkfs command with the -t option to specify the filesystem type as ext3 and the device to create the filesystem on as /dev/sdb1. Option C is incorrect because the -c option is used to perform a bad blocks scan on the device, not to specify the filesystem type. Option D is incorrect because there is no mke3fs command; it should be mke2fs.