Hardware Configuration Flashcards

1
Q

Common hard disk interfaces

A

PATA - Parallel Advanced Technology
SATA - Serial Advanced Technology Attachment
SCSI - Small Computer System Interface

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

external disk interfaces

A
  • USB
  • IEEE-1394 (firewire)
  • Variants of SATA and SCSI
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

scsi disks

A
  • support up to 8 or 16 devices per bus
  • one device is the scsi host adapter (controller)
  • serial attached scsi SAS brings advances in speed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

scsi hard drive names are created within which directory?

A

/dev

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

scsi hard drive nomenclature

A

/dev/sdx where x is any letter from a-z

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

scsi tape nomenclature

A

/dev/stx (where x is any number from 0-i)

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

scsi cd-rom and dvd-rom nomenclature

A

/dev/scdx or /dev/srx (where x is any number from 0-i)

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

method of scsi id assignment

A

increasing order based on scsi id

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

hotpluggable external disks

A
  • usb

- IEEE-1394 (firewire)

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

True or False: Always unmount external drive before unplugging it.

A

True

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

drive partition

A

data structure written to specified part of a hard disk

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

partitioning systems

A
  • Master Boot Record (MBR)
  • GUID Partition Table (GPT)
  • Berkeley Standard Distribution (BSD)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

MBR primary partition limit

A

four primary partitions or three primary and one extended

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

MBR partition type codes

A

one-byte (two-digit hexadecimal) numbers

  • 0x0c (FAT)
  • 0x07 (NTFS)
  • 0x0f (newer type of extended partition)
  • 0x82 (Linux swap)
  • 0x83 (Linux filesystem)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

GPT Datastructure - Protective MBR

A
  • MBR exists on GPT partitioned disk to deterr creation of ordinary MBR partitions
  • type code 0xee (EFI GPT)
  • may also hold a boot loader in its code area
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

GPT Datastructure - header

A
  • defines various GPT metadata
  • defines size of the partition table
  • defines locations of partition tables
  • provides CRC (cyclical redundancy check) checksums to help system software detect data corruption
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

GPT Datastructure - partition table

A
  • defines actual partitions

- can define up to 128 partitions on most disks

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

GPT partition scheme

A

partitions are numbered starting at 1 and need not be consecutive

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

MBR partition scheme

A

primary/extended/logical

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

LVM - Logical Volume Management

A

It is a system of managing logical volumes, or filesystems, that is much more advanced and flexible than the traditional method of partitioning a disk into one or more segments and formatting that partition with a filesystem

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

directory containing logical volume names

A

/dev/mapper

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

mount point

A

directory used as a way to access the filesystem on the partition, and mounting a filesystem is to link the filesystem to a mount point
- i.e. /home mount point would allow access to any subdirectory regardless of where subdirectory exists on a variety of physical drives

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

unified directory tree

A

directory structure which houses mount points

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

critical system directories to avoid splitting between partitions (without these Linux can’t function)

A
/etc
/bin
/sbin
/lib
/dev
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
low-level formatting
- creates a structure of sectors and tracks on the disk media - should not be required after factory formats this upon production
26
high-level formatting
creates a filesystem
27
_____ disks can be low- and high-level formatted
- floppy | - fdformat /dev/fd0
28
common filesystem types
- ext2fs - ext3fs - ext4fs - reiserfs - btrfs - non-native filesystems
29
ext2fs
- traditional linux native filesystem | - can be good for small /boot partitions
30
ext3fs
- adds journal (for recovery)
31
ext4fs
- adds ability to work with very large disks (over 32TB) and very large files (over 2TB)
32
reiserfs
- good with large amounts of small files | - designed as a journaling system
33
btrfs
- fast performer for handling very large disks and files (considered experimental as of kernel 2.6.34
34
FAT (file allocation table)
- old primitive but ubiquitous
35
ntfs
as of 2.6.x kernel, linux can reliable read and overwrite ntfs but not create new files
36
hfs and hfs+
apple - linux provides full read/write hfs support
37
non-native filesystems
- fat - ntfs - hfs/+ - iso-9660 (cd roms) - joliet as part of iso-9660 (window's implementation) - udf (universal disc format) dvd - bitlocker encryption
38
command to create a filesystem
- mkfs | - use -t option to pass the filesystem type code to mkfs
39
command often used to create ext2 and ext3 filesystems
mke2fs
40
bad-block check
analyzes disk for bad sectors
41
common causes of bad sectors on a hard disk
- bad disk | - bad cables or SCSI terminations
42
following command does what...mkfs -t ext3 /dev/hda6
create an ext3 filesystem on /dev/hda6
43
swap space command
mkswap [drive] | - i.e. mkswap /dev/hda1
44
swap space
- a partition or file that linux treats as an extension of memory - requires preparation similar to that of a filesystem but doesn't hold a filesystem and is not mounted like a filesystem
45
identifying swap space
linux uses /etc/fstab to define which partitions to use as swap space
46
command activate a swap space
swapon [drive] | i.e. swapon /dev/sdd1
47
tuning filesystems
- looking for journaling mechanism | - ext2fs should be backed up more often bc fs can't correct itself
48
dump2fs [options] device
- command to display filesystem information | - i.e. dump2fs /dev/sdb7
49
command to change filesystem parameters reported by dump2fs
tune2fs [options] device
50
command to investigate issues with filesystem
debugfs [drive] | - i.e. debugfs /dev/hda11
51
major ext2fs limitation
journaling (data structure describing pending operations) - fs could be in an inconsistent state if not shut down properly which results in a necessary check of the filesystem before use
52
common journaling filesystems on linux
- ext3fs - ext4fs - reiserfs - xfs - jfs
53
command to check a filesystem for errors
- fsck [options] [filesystem] | - run only on unmounted filesystems or on filesystems in read-only mode
54
fsck switches
- a to check all files - v to produce verbose output - n to display what would happen without performing the action
55
command for disk monitoring by partition
- df [option] [file] | i. e. df -h
56
command for disk monitoring by directory
- du [options] [directories] | - reports how much disk space each directory consumes
57
df switches
- a include all filesystems - B use scaled units - i summarize inodes - l local filesystems only - display filesystem type - t limit by filesystem type
58
du switches
- a all - d print the total for a directory or file only if it is N or fewer levels (max depth) - c produce a grand total
59
command to mount a filesystem
mount [-alrsvw] [-t fstype] [-o options] device dir
60
command to unmount a filesystem
umount [directory]
61
file used to perisistently mount
/etc/fstab
62
mount switches
- a mount all the filesystems listed in /etc/fstab - r mount in read-only mode - v produce verbose output - w read/write - t specify fs type - L and -U mount fs with specified label or UUID respectively
63
BIOS
- firmware that initiates process of booting an operating system on a computer - resides on mobo in rom, typically an electronicaly erasable programmable read-only memory (i.e. flash mem) - mostly only usable physically (stripped down in VMs)
64
POST
- power-on self-test - inits hardware to a known operational state (checks attached devices) - loads boot loader from boot device - passes control to the boot loader, which loads the OS
65
option to disable for booting w/o keyboard
something similar to "halt-on"
66
IRQs
interrupt request - a signal sent to the cpu to suspend current activity and handle some external event such as a keyboard input
67
IRQ numbering
IRQs are numbered 0 to 15
68
IRQ file
/proc/interrupts
69
/proc filesystem
virtual filesystem - no actual files just kernel data represented using a filesystem
70
I/O addresses
unique locations in memory reserved for comms between cpu and physical hardware devices
71
I/O addresses file
/proc/ioports
72
DMA
- direct memory addressing is an alternative method of communication to I/O ports where devices directly communicate without cpu
73
DMA file
/proc/dma
74
coldplug device
device intended to be disconnected only when computer has no power
75
PCI access mode
- BIOS - Mmconfig, uses protocol of same name to detect pci devices - Direct, uses linux specific direct-detection system - any, tries mmconfig followed by Direct followed by BIOS - most of the time pci is configured 'any' and walks up this tree
76
expansion cards
- most require configuration by OS to reserve resources for these
77
command to display pci information
lspci
78
lspci switches
- v produce verbose output - n display info in numeric codes - nn display both manufacturer and device name and associated codes - x displays pci configuration space for each device as a hexadecimal dump - b shows IRQ numbers and other data as seen by devices - t displays a tree view depicting relationship b/w devices - s displays only devices which match the listed specs (used to trim results)
79
kernel modules
stand-alone driver files
80
directory for kernel modules
/lib/modules
81
responsible for loading kernel modules
lsmod (no options)
82
command to display info about kernel modules
modinfo or modprobe
83
command to see memory consumed by kernel modules
lsmod
84
command to insert a module
insmod (use modprobe instead)
85
pros for modprobe
- automatically loads dependency modules - add kernel options to the end of the command line - specify module by name rather than filename
86
configure file for modprobe
/etc/modprobe.conf
87
modprobe switches
- v verbose output - r remove mod - l list modules - f force even if kernel version isn't a match - n dry run
88
USB 2.0 speeds
up to 480Mbps
89
USB 3.0 speeds
up to 4.8Gbps
90
usb filesystem
/proc/bus/usb
91
command for usb management
lsusb
92
lsusb switches
lsusb utility displays basic info - v verbose output about each product - s restricts output to specified bus and device number - d vendor and product codes - t displays device list as a tree to more easily see connected controllers - -version displays version of the lsusb utility and exits