Chapter 2 Flashcards
Which of the following filesystems is usually associated with compact disks?
iso9660
Which of the following commands could be used to create an ext3 filesystem?
mkfs.ext3
mkfs -t ext3
mke2fs -j
mkfs.ext2 -j
Which of the following command lines could be used to create an ext2 filesystem with a blocksize of 2048 bytes?
mke2fs -b 2048 /dev/sda4
Use the following transcript to answer the next 2 questions.
[root@station root]# dumpe2fs /dev/sdb5 dumpe2fs 1.39 (29-May-2006) Filesystem volume name: /home Last mounted on: Filesystem UUID: 4a26ac4a-fcd9-4231-bf3a-e5e5fb2456b5 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal filetype needs_recovery sparse_super Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 3842720 Block count: 7681070 Reserved block count: 384053 Free blocks: 1150544 Free inodes: 3597708 First block: 0 Block size: 4096 Fragment size: 4096 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 16352 Inode blocks per group: 511 Last mount time: Sun Oct 5 13:59:31 2003 Last write time: Sun Oct 5 13:59:31 2003 Mount count: 74 Maximum mount count: -1 Last checked: Fri Sep 19 09:16:20 2003 Check interval: 15552000 (6 months) Next check after: Wed Mar 17 08:16:20 2004 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal UUID: Journal inode: 8 Journal device: 0x0000 First orphan inode: 0
-
Which of the following command lines could have created this filesystem? (Assume that the filesystem has not been modified with tune2fs since it was created.)
mke2fs -j -L /home -b 4096 -N 3842720 /dev/sdb5
When creating this filesystem, which of the following would be the appropriate argument to the -i command line switch to the mke2fs command to generate the appropriate number of inodes?
-i 8192
When formatting a floppy with the mke2fs command, why might one be tempted to include the -m 0 command line switch?
The command line switch would prevent any blocks being reserved for only the root user.
Which of the following command lines would create a filesystem with a volume label of data?
mkfs -t ext2 -L data /dev/sda1
Which of the following command lines would create an ext4 filesystem with a block size of 4096?
None of the above
Which of the following command line switches causes the mke2fs command to check the disk for bad blocks before creating a filesystem?
-c
Your friend has just run the dumpe2fs command on his /home filesystem, and noticed that the flag needs_recovery was set. What advice would you give him?
He should not be concerned, as the flag is always set on mounted filesystems.