Lect05-06 - Disks / Partitions / File Systems / Mounting Flashcards
How can you show the current system log?
dmesg
How can you view the live output of the system log?
tail -f /var/log/messages
How can you obtain detailed information about device?
hdparm -I /dev/sdX
With what commands can you see the disks and partitions that are attached to your system?
lsblk
lsblk -f (file system)
lsscsi
Wich command can be used to create or list partitions on a supported device?
fdisk -l /dev/sdx
gdisk
What is a mount point?
The mount point is the location on the file system where the contents of a volume will be accessed.
How does the mounting command looks like?
mount -t <fstype> -o <options> <device> <mountpoint></mountpoint></device></options></fstype>
mount -t ntfs -o ro /dev/sdb1 /mnt/analysis
What is fstab?
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).
Explain Userspace Mounting?
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.