Maintain the integrity of filesystems Flashcards

1
Q

What command will check the configutation of ext2 or ext3 partitions?

A

dumpe2fs /dev/sda1

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

What command will show the configuration of a xfs partition?

A

xfs_info /dev/sda1

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

What command could be used to send xfs data for debugging to the xfs devs?

A

xfs_metadump

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

What command is used to change the parameters that are output in dumpe2fs?

A

tune2fs

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

What command and switch will change the mount count needed before a check on ext2 and ext3?

A

tune2fs /dev/sdb1 -c 100

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

What command and switch will change the mount count on ext2 and ext3?

A

tune2fs /dev/sdb1 -C 100

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

What command and switch will add jounaling on ext2?

A

tune2fs /dev/sdb1 -j

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

What command and switch will change the reserved blocks percentage on ext2 and ext3?

A

tune2fs /dev/sdb1 -m 10

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

Before using tune2fs, what should you do?

A

Unmount the disk

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

What xfs command will set the 2 jounal format?

A

xfs_admin /dev/sdb2/ -j

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

What xfs_admin command will show the UUID?

A

xfs_admin -u /dev/sda1

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

What xfs_admin command will show the label?

A

xfs_admin -l /dev/sda1

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

What xfs_admin command will change the UUID?

A

xfs_admin -U xxxx /dev/sda1

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

What xfs_admin command will change the label?

A

xfs_admin -L xxxx /dev/sda1

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

What should be done to an xfs partition before editing its atttributes?

A

unmount

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

Which command is all the file system admins and more in one command?

A

debugfs

17
Q

What two debugfs commands show super block stats?

A

stats, show_super_stats

18
Q

What debugfs command will show detailed information about a file?

A

stat

19
Q

What two commands will list deleted files?

A

lsdel, list_deleted_inodes

20
Q

What debugfs command will copy a file from an unmounted partition?

A

write internal_file external_file

21
Q

What is the main tool for checking filesystems?

A

fsck

22
Q

What fsck switch checks all files?

A

A

23
Q

What fsck switch indicates progress?

A

I

24
Q

Can fsck be run on a mounted file system?

A

No

25
Q

What command will show a summary of all disk space across a system’s partitions?

A

df

26
Q

What df switch will show inodes information?

A

-i –inodes

27
Q

What df switch will show local filesystems only?

A

-l –local

28
Q

What df switch will show the filesystem type?

A

-T –print-type

29
Q

Which command will show space used by directories?

A

du

30
Q

Which du switch will summarise files as well?

A

-a -all

31
Q

Which du switch will compute a grand total?

A

-c -total

32
Q

Which du switch will count the hard links?

A

-l –count-links

33
Q

Which du switch will limit the depth of the report?

A

–max-depth

34
Q

Which du switch will summarise the output?

A

–summarize