Chapter 2 Flashcards

1
Q

Which of the following filesystems is usually associated with compact disks?

A

iso9660

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following commands could be used to create an ext3 filesystem?

A

mkfs.ext3
mkfs -t ext3
mke2fs -j
mkfs.ext2 -j

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following command lines could be used to create an ext2 filesystem with a blocksize of 2048 bytes?

A

mke2fs -b 2048 /dev/sda4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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
A

-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.)

A

mke2fs -j -L /home -b 4096 -N 3842720 /dev/sdb5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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?

A

-i 8192

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When formatting a floppy with the mke2fs command, why might one be tempted to include the -m 0 command line switch?

A

The command line switch would prevent any blocks being reserved for only the root user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following command lines would create a filesystem with a volume label of data?

A

mkfs -t ext2 -L data /dev/sda1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following command lines would create an ext4 filesystem with a block size of 4096?

A

None of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following command line switches causes the mke2fs command to check the disk for bad blocks before creating a filesystem?

A

-c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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?

A

He should not be concerned, as the flag is always set on mounted filesystems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly