CompTIA Linux+ Powered by LPI (LX0-103) — Question 32
Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)
Answer options
- A. /sbin/mke2fs -j /dev/sdb1
- B. /sbin/mkfs -t ext3 /dev/sdb1
- C. /sbin/mkfs -c ext3 /dev/sdb1
- D. /sbin/mke3fs -j /dev/sdb1
Correct answer: A, B
Explanation
The commands in options A and B correctly create an ext3 filesystem on /dev/sdb1. Option A uses /sbin/mke2fs with the -j flag for journaling, while option B specifies the type as ext3 using /sbin/mkfs. Options C and D are incorrect; C uses an invalid flag and D contains a typo in the command name.