Lect05-06 - Disks / Partitions / File Systems / Mounting Flashcards

1
Q

How can you show the current system log?

A

dmesg

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

How can you view the live output of the system log?

A

tail -f /var/log/messages

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

How can you obtain detailed information about device?

A

hdparm -I /dev/sdX

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

With what commands can you see the disks and partitions that are attached to your system?

A

lsblk

lsblk -f (file system)

lsscsi

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

Wich command can be used to create or list partitions on a supported device?

A

fdisk -l /dev/sdx

gdisk

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

What is a mount point?

A

The mount point is the location on the file system where the contents of a volume will be accessed.

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

How does the mounting command looks like?

A

mount -t <fstype> -o <options> <device> <mountpoint></mountpoint></device></options></fstype>

mount -t ntfs -o ro /dev/sdb1 /mnt/analysis

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

What is fstab?

A

File System Table. If we have a file system that will be regularly mounted, we can use /etc/fstab to “register” that file system and abbreviate the mount command. If information is missing for a mount command, the system can look to /etc/fstab to “fill in the blanks”. This is most usually done with persistent file systems (like those mounted when the system is booted).

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

Explain Userspace Mounting?

A

Userspace mounting on most Linux systems is handled by the udisks package. There are two versions of this: udisks and udisks2 (the newer version). For the sake of simplification, we’ll say that if your system is using udisks (version 1), it will normally mount to /media. If your system is using udisks2, it will normally mount to /run/media/USER. As we’ve seen, this userspace mounting can be done via the desktop using the mouse.

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