Create, Extend and Configure File Systems Flashcards

1
Q

How do you scan a filesystem for errors?

A

vfat: fsck.vfat {/block/device}
ext4: fsck {/block/device}
xfs: xfs_repair
* cannot run on mounted filesystem

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

How do you get advanced information on an ext4 filesystem?

A

dupme2fs {/block/device}

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

How do you get advanced information on an xfs filesystem?

A

xfs_info {/block/device}

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

How would you mount a samba share?

A

mount -t cifs -o username={name},password={pass} //{host}/{share} /mount/path

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

How would you mount an nfs share?

A

mount -t nfs {host}:/share /mount/path

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

What are the difference between an nfs and samba share?

A

samba share is just a share name

nfs share is references the actual directory location on the host

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