Module 4 Flashcards

1
Q

How does the OS know how to organize files?

A

File system

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

What is used to keep track of files and file storage on a disk?

A

Filesystem

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

what needs to have a file system added to it?

A

a new disk or any type of storage device

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

what file system is used for Windows?

A

NTFS

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

What file system is used for Linux?

A

ext4

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

if you have a usb that is NTFS formatted, can both Windows and Ubuntu write to it?

A

yes.

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

if you have an ext4 formatted USB drive, can you use it on Windows and Ubuntu?

A

no. Only Ubuntu, unless you have 3rd party tools helping you.

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

what happens if you need a USB drive for multiple Operating systems? Windows, Linux, and MacOS.

A

You must reformat your USB drive so that it has a system that is compatible with all of them.

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

What is wiping the USB drive called?

A

reformatting it

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

What OS does FAT32 work on?

A

Windows, Linux, Mac. All three major OS.

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

what is the max file size for Fat32?

A

4GB

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

What is the max file system size for fat32?

A

32GB max file system size

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

what is Fat32 good for?

A

small usb drive, compatible across multiple systems.

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

Who made fat32?

A

microsoft

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

in fat32, what does fat stand for?

A

file allocation table

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

what determines characteristics of files like allowed length, characters allowed, file size?

A

File system

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

where are the details about allowed files stored?

A

the metadata, on a separate block on the device. also stores a directory.

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

What is a file broken down into in many situations?

A

multiple sections scattered across a hard drive.

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

what keeps track of the scattered sections of files?

A

a file management system, FAT is an example.

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

how many characters does the FAT file system support up to, ideally?

A

8

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

what should a FAT file name always begin with?

A

alphanumeric character

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

what is the advanced version of the FAT file system?

A

FAT32

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

Who is FAT32 targeted at?

A

Users using Windows 2000 and older.

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

What device size is suitable with FAT32?

A

512 megabytes to 2 tb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
how does FAT32 make disk utilization more effective?
it can access files more rapidly across different storage devices.
26
What file system was presented first with Windows XP?
NTFS
27
What file system can you convert your system to if you have FAT32?
NTFS, but backwards won't work.
28
what file system for Windows doesn't have a case-sensitive file name system?
NTFS
29
What is APFS?
The apple file system.
30
When was APFS developed?
2016
31
what devices is apfs supported on?
only Apple devices.
32
What file system was invented by the cupertino based company 1998?
HFS+
33
What file system replaced the hierarchical file system that used to be used by Apple computers?
HFS+
34
what character limits did hfs+ support?
255
35
what is the name of the file system before FAT32?
FAT16.
36
What form does FAT32 store information?
clusters
37
what is a unit that occupies a specified space on a disk called?
cluster
38
who developed FAT32?
Microsoft and Caldera
39
what did FAT32 upgrade?
increased file sizes, large partitions
40
what scheme did file systems follow that could fetch data from the directory stored on the disk, back in 1995
CHS schem
41
What is LBA, which Windows 95 introduced to hold the directory outside of the disk?
Logical Block Allocation
42
what does the FAT32 file system create an entry for?
each file in the system that comprises 32 bits
43
what allows for the creation of large disk partitions while still retaining high read/write speeds? FAT32. Also valuable for keeping track of additional file information, like icon size and color schemes.
it makes an entry for each file size of 32 bits rather than 16.
44
what can FAT32 represent clusters with without affecting allocation?
32 bit numbers
45
what are 28 bits of cluster-representing numbers reserved for in FAT32?
cluster number, making it suitable to store millions of files of the same type without sacrificing stability.
46
What is the only file system that can work natively with MS-DOS, Windows, and MacOS simultaneously?
FAT32
47
What does the longer string of cluster numbers in FAT32 result in?
faster data recovery
48
what does FAT32 store files in?
fixed clusters along the drive, and makes a directory containing the necessary information.
49
what information does the directory contain for FAT32?
file address, end pointer, sector allocation type
50
How can the FAT32 file directory be accessed?
the boot sector of the OS, which lets the user access the file if they have some reference of its location. don't need complete information if the partial information is unique to the file you want.
51
Why can a system with FAT32 find the file called video games rapidly?
it doesn't need to scan the whole drive, only specific clusters, so it can fetch the address quickly and display it on the screen.
52
if you have many files with the same name on a FAT32 system, how can you filter to narrow your search?
file type, size.
53
What file transfer speed does FAT32 support?
up to 5 MB/s
54
What does each cluster in a FAT32 system have?
a specific address, end of file pointer, and an identifier that denotes the type of file stored.
55
when you need to access a file, what does your query go through for FAT32?
the directory holding the cluster information, to locate the desired clusters with their specific entries.
56
What size of drive can you create with a default FAT32 system?
16TB drive with 64 KB clusters.
57
Since the amount of clusters remains the same, what must you determine before formatting the drive with FAT32?
how much storage space you will need.
58
What is the minimum size partition I can format with FAT32?
32 MB partition
59
What is the range of file sizes supported by FAT32?
16 bytes to 4GB, with LFS.
60
How large can your stored files be with FAT32+?
256 GB
61
How can you exercise basic encryption with FAT32?
limiting access to the files as read-only or archived. For better security, use an external program to encrypt pen drives or partitions.
62
What is FAT32 used for?
format portable drives like SD cards and pen drives to run on Windows and macOS, dual boot, use on hybrid drives, store digital camera files and mid-range phones, format server drives for access from multiple OS.
63
What is the earliest year a device that supports FAT32 would have come out?
1993
64
why can you access sectors of the same drive from different OS with FAT32?
because the directory is stored away from the drive partition. Makes it good for VM.
65
When does storage efficiency fall for FAT32? what drives?
when you use drives above 32 GB. Ex: 6 TB hd formatted for FAT32 will only give you a usable space of 5.45 TB.
66
Does FAT32 have native file encryption?
no
67
Why are drives formatted with FAT32 susceptible to data fragmentation?
the clusters might shift their location through malware or data corruption, making it impossible to access them through the directory.
68
what is the maximum read/write speed of FAT32?
5 MB/s
69
When was NTFS first introduced?
1993, new unveiled 2012
70
what does NTFS stand for?
new technology file system
71
What does exFAT stand for?
extended File Allocation Table
72
When was exFAT first introduced?
2006
73
What is the native encryption on NTFS?
EFS, also supports BitLocker
74
What is the native encryption on exFAT?
none
75
what is the max accessing speed on NTFS?
25 MB/s
76
what is the minimum file size for NTFS and exFAT?
512 bytes
77
What is the max file size for my NTFS?
8PB
78
What is a storage disk divided into?
partitions
79
what is a piece of a disk that you can manage?
partition
80
What gives the illusion that you are dividing a disk into separate disks?
making partitions
81
what do you need to do to add a file system to a disk?
create a partition
82
How many partitions do you normally have for your OS?
one.
83
can you add different file systems on different partitions?
yes
84
what do partitions act as?
sub disks using the same physical disk
85
What happens when you format a filesystem on a partition?
it becomes a volume.
86
What tells the OS how the disk is partitioned? which partitions you can boot from, how much space is allocated to partition, etc.
Partition table
87
What are the two main partition schemes that are used?
MBR (Master Boot Record) and GPT (GUID Partition Table)
88
What decide how to structure the information on partitions?
the partition schemes
89
what is a traditional partition table? Mostly used in the Windows OS. 2TB max volume size, uses primary partitions, only lets you have 4 primary partitions, which you must, if you want more, make into extended partition, then logical partition. Slow, fading out.
MBR
90
What is the new standard for disks, volume size over 2TB, one type of partition, unlimited partitions.
GPT
91
what is the new default BIOS?
UEFI
92
what partition table must your system use to use UEFI?
GPT
93
What is the Windows native tool for Disk partitioning and Formatting a filesystem?
the disk management utility
94
How do you get to disk management?
right click "this pc", manage, "Disk management" console under the storage grouping.
95
what will you see in the disk management console?
a display of the disks and disk partitions, along with information about what type of file system they're formatted with. free and total capacity of disks and partitions,
96
What can show up as an additional disk for you to play with in disk management?
a USB you plug in, which the computer automatically gets drivers for using plug and play.
97
Where can you see how a disk is formatted?
in disk management console, under the Type column
98
how do you reformat a usb in disk management so it uses NTFS instead of FAT32?
right click the drive, format, choose the volume label or name you want to give the disk, specify the file system,
99
In disk management, in Format disk window, what is allocation unit size?
the block size that will be used when you format the partition in NTFS. The size of the chunks the partition will be chopped into. Data that needs to be saved will be spread out across those chunks. If you store lots of small files, you'll waste less space with small block sizes. If you store large files, you'll need to read less block to assemble the file if you store them in large blocks.
100
what option for Allocation unit size is usually good?
default
101
in the format disk window, what is a quick format vs a full format?
a full format is where Windows will scan the drive for errors or bad sectors.
102
in format disk, what happens with enabling file or folder compression?
your files and folders will take up less space on the disk, but compressed files will need to be expanded when you open them. Thus, the computer's processor will need to do extra work.
103
what will Windows warn us about when we format a disk?
that formatting the volume will erase any data that might be on it.
104
what is the tool used to partition from the cli?
Diskpart
105
What is a terminal-based tool built for managing disks from the cli? command.exe
Diskpart
106
what is the command you run in command.exe to open Diskpart? opens another terminal window, where the prompt reads DISKPART
Diskpart
107
in Diskpart, how do you list the current disks in the system?
list disk
108
how do you know what disk you want to format in Diskpart?
look at the disk size, which if it is a usb, will be small.
109
how do you select the disk you want to work with in diskpart? select disk 1, the usb.
in the line, type: select disk 1
110
what does the clean command do in Diskpart?
remove all partition or volume formatting from the disk
111
what command creates a partition in a wiped disk in Diskpart?
create partition primary
112
how do you select a partition in Diskpart? select the partition you made from create partition primary, partition 1.
select partition 1
113
how do you mark a partition as active in Diskpart?
type: active
114
What command formats a partitioned disk from Diskpart? Call it my_thumb_drive
format FS=NTFS label my_thumb_drive quick quick is the format type. You can probably format alternatively.
115
what does disk partitioning enable?
more efficient management of hard disk space. Breaks or slices disk. allows each partition to be managed separately by reducing inefficient use of space.
116
What utility on Windows can manage partitions of hard disks including deleting, creating, merging, or expanding partitions and volumes? Can also be used to assign a file formatting system to a partition or volume
DiskPart
117
What are the three main divisions of storage on a drive?
cluster, volume, partition
118
What is the minimum amount of space a file can take up in a volume or drive?
cluster, allocation unit size
119
what is a single accessible storage area with a single file system, which can be across a single or multiple disks?
Volume
120
What is a logical division of a hard disk that can create unique spaces on a single drive? generally used for allowing multiple OS
Partition
121
DiskPart Commands
https://drive.google.com/file/d/1qDFyYB5uYLranPk9pZBz0heq0B5hmroH/view
122
why is cluster size important?
a file will take up the entire size of the cluster, regardless of how much space it actually requires in the cluster. ex: if the cluster size is 4kb, and the file is 4.1 KB, then you take up two clusters with it, and effectively lose 3.9 KB of space on the drive.
123
What should you base the specification of your cluster size on?
File sizes
124
What is a default cluster size based on?
the size of the partition
125
what can result in loss of usable storage space?
using partitions that are too big for your file sizes, or too small. Having too little overlap between clusters.
126
what is important to remember so you don't accidentally lose data when formatting a drive?
actions here are permanent.
127
What is making something accessible to the computer, like a filesystem or a hard disk, called?
Mounting
128
What OS does mounting automatically?
Windows. You can plug and play.
129
What does ejecting a drive do?
unmount
130
how do you unmount a drive?
right click and select Eject.
131
what tool in linux supports mbr and gpt partitioning?
parted tool
132
what two modes can the parted tool be used in?
interactive and command line
133
what does interactive mean?
launched into a separate program from the cli, like with less command.
134
what command can we run in the command line to show what disks are connected to the computer?
sudo parted -l
135
where can you see the disk size in linux?
command: sudo parted -l look to the second row down, and it'll show you after Disk /dev/sda. This'll show again later if you have other devices plugged in, like a usb. Look for model if you want to see where a new device description begins.
136
in sudo parted -l, what does the number field correspond to?
the number of partitions on the disk
137
if the disk is /dev/sda, and there are three partitions, what will the first partition correspond to?
/dev/sda1
138
what is the start field in Disk Flags?
where the partition starts on the disk
139
What does the size field show us in Disk Flags?
how large the partition size is
140
What does the File system field show us in Disk Flags?
what file system is on the partition
141
how do you run the interactive mode of parted? for the disk you want to work on, which is the thumb drive located in /dev/sdb
sudo parted /dev/sdb
142
what command do you run to exit parted?
quit
143
in parted, how do you see the disk you are working on's details?
print
144
if you have an unrecognized disk label, what do you need to do? linux.
set a disc label with the make label command.
145
what is the format for the command in parted to make a label for the filesystem?
mklabel (filesystem)
146
what tool do you use in parted to make partitions?
mkpart
147
what information does the mkpart command need to have?
what type of partition we want to make, what file system we want to format, start of the disk, end of the disk.
148
what is an example of the mkpart command in use? type of partition is primary, file system we want to format is ext4, start of disk is 1MiB, end of disk is 5GiB
mkpart primary ext4 1MiB 5GiB,,, essentially a 5 GiB partition, 5 gibibytes.
149
what is the partition type meaninful for?
mbr partition tables
150
what uses primary, extended, and logical partitions?
mbr
151
if you are formatting using gpt, what should you use as the partition type?
just primary
152
how many bytes per kibibyte?
1024
153
how many bytes in a kilobyte?
1000
154
what do we need to use when dealing with data storage?
precise measurements so we don't waste storage space
155
what is mkfs?
the command you use to format a partition.
156
where do you use mkfs?
in the shell. Exit parted.ho
157
how do you use mkfs to format the first partition in /dev/sdb, with the ext4 file system?
sudo mkfs -t ext4 /dev/sdb1
158
what happens if you format the wrong disk?
you wipe it and have to potentially redownload your OS.
159
what is the last step to get a usable disk in linux?
mount the file system to a directory so we can access it from the shell.
160
what do we need to do to interact with a disk in linux?
mount it to the file directory.
161
what happens if you just do cd /dev/sdb instead of mounting?
error, device is not a Directory.
162
how do you pull up where a partition is?
sudo parted -l
163
what do you have to do before you can mount a partition you have created?
make a directory to mount the disk onto.
164
what is the command to mount partition from disk in /dev/sdb1 to the directory, my_usb, which is under root?
sudo mount /dev/sdb1 /my_usb/
165
how can you write to and read from the new filesystem my_usb, which was just mounted the partition?
cd /my_usb/
166
why do filesystems need to be mounted?
we need to tell the OS how to interact with the device.
167
what does the umount command do?
unmount the filesystem
168
how can I unmount /my_usb/ ? or sudo umount /dev/sdb1
sudo umount /my_usb/ or sudo umount /dev/sdb1
169
when you shut down your computer, what happens to disks that were manually mounted?
they are unmounted.
170
what should you do before you physically disconnect a drive?
unmount it
171
what file system errors can occur if you don't unmount a usb drive?
data loss, corruption.
172
what happens to a mount point when we shut the computer off?
it disappears
173
when would you permanently mount a disk?
if you need it to load up automatically when the computer boots
174
what file do you modify to permanently mount a disk?
/etc/fstab
175
what do you see in the /etc/fstab file?
a list of unique device Ids, their mount points, type of file system,
176
what do you need to do so a computer adds a filesystem automatically when it boots?
add an entry for it in the /etc/fstab file
177
what is the first entry you need to add for etc/fstab?
the uuid of the disk
178
what command do you use to get the UUId of your disk/usb?
sudo blkid (sudo block id)
179
what does sudo blkid do?
show us the UUID for block device ID's, storage device ID.
180
what is fstab?
file system table, a linux configuration table that helps simplify mounting and unmounting file systems in Linux.
181
What do you call it when you mount a physical storage device to a location called a mount point in a file system table?
mounting
182
what makes mounting efficient by offering the option to automate the mounting of partitions or file systems during the boot process?
fstab configuration file
183
what allows for customized rules for mounting individual file systems?
fstab
184
What are the parameters in the fstab configuration table? in 6 columns.
Device, Mount point, file system type, options, backup operation or dump, file system check (fsck) order or Pass.
185
what in fstab is the universally unique identifier, UUID, or the name of the device to be mounted (/sda1, for example)
Device
186
in fstab, what names the directory location for mounting the device
mount point
187
in fstab, what are things like ext2, ext3, ext4, JFS, JFS2, VFAT, NTFS, ReiserFS, UDF, swap, and more examples of?
File system types
188
in fstab, what is a list of mounting options in use, delimited by commas?
Options, column 4
189
in fstab, what is an outdated method for making device or partition backups and command dumps? should not be used, and used to have a binary code.
backup operation or dump
190
in backup operation or dump, in fstab, what did the binary code signify for 1 and 0?
0: turns of backups 1: turns on backups
191
what is the order in which the mounted device should be checked by the fsck utility?
0: should not run a check on the file system 1: mounted device is the root file system and should be checked by the fsck command first 2: mounted device is a disk partition which should be checked by fsck comand after the root file system.
192
fstab option that sets reading and writing to the file system to occur synchronously or asynchronously
sync or async
193
what fstab option automatically mounts the file system when booting?
auto
194
what fstab option prevents the file system from mounting automatically when booting?
noauto
195
what fstab option allows or prohibits the use of the device driver to mount the device?
dev or nodev
196
what fstab option allows or prevents file system binaries from executing?
exec or noexec
197
what fstab option mounts file system as read only?
ro
198
what fstab option mounts file system for read-write operations?
rw
199
what fstab option allows any user to mount the filesystem but restricts which user can unmount the file system?
user
200
what fstab option makes it so the root user is the only role that can mount the file system (default setting)
nouser
201
what fstab option uses default settings, which include rw, suid, dev, exec, auto, nouser, and async?
defaults
202
what command do you use in fstab table to format a drive?
fdisk
203
what is the block device?
a storage device registered as a file in the /dev directory.
204
What provides an interface between the system and the attached device for read/write purposes?
the device file
205
what command do you use to find the list of block devices that are connected to the system?
lsblk
206
what are the seven columns in the output from the lsblk command?
name, MAJ:MIN, RM, size, RO, TYPE, Mountpoint
207
what lsblk column is the device names of the blocks? like sda, sda1, sdb, sdb1
NAME
208
what lsblk command column shows the major and minor code numbers for the device?
maj:min
209
what's the driver type used for device communication?
the major number
210
what major number means RAM?
1
211
what major number means IDE hard drive?
3
212
what major number means scsi hard drive?
8
213
what major number means RAID metadisk?
9
214
What is an ID number used by the device driver for the major number type?
The minor number
215
what can the minor numbers for the first hard drive range from?
0 to 15
216
what does the minor number 0 reperesent? for sda 8:0?
the physical drive for sda
217
what does the minor number 1 represent? sda1 8:1
the first partition on the sda drive
218
what can the range of represented numbers be for the second hard drive?
16-31
219
what does the 16 minor number value for sdb represent for sdb 8:16?
physical hard drive of sdb
220
220
what would the minor number for a third hard drive range as?
32 to 47, and so on.
221
What does RM indicate? 0 and 1?
if the device is, 0: not removable 1: removable
222
What column in lbslk is the amount of storage available on the device?
Size
223
what column in lbslk indicates file permissions?
RO, 0 is read write, and 1 is read only
224
what column in lbslk lists the type of device?
Type. examples: disk=hard drive, part=disk partition
225
what column in the ldslk indicates the location where the device is mounted. A blank entry in this column means it is not mounted?
Mountpoint
226
what is an example of an editor you can use to open the fstab file?
gedit
227
example fstab file:
/dev/sda1 / ext3 nouser 0 1 device, mount point, file system, options, dump, pass
228
what is the first step when you want to add a new file system partition?
in the first column, add the new file system device name.
229
what is the second step when you add a new file system partition?
in the second column, indicate the mount point for the new partition. Should be a directory that will be easy to find and identify if you are a user. ex: /mnt/mystorage
230
what is the third step when you add a new file system partition?
in the third column, enter the file system used on the new partition. ex: ext4
231
what is the fourth step when adding a new file system partition?
in the 4th column, enter any options you would like to use. ex: default
232
what is the 5th step when adding a new file system partition?
set the dump file to 0. Dump files are no longer configured in fstab, but the column still exists.
233
what is the 6th step when adding a new file system partition?
in the 6th column, the pass value should be 2 because it is not the root file system and it is a best practice to run a file system check on boot. Reboot the computer and check the mystorage directory for the new partition
234
What is how our OS provides the physical memory available in our computer, like RAM, to the applications that run on the computer?
Virtual memory
235
how does virtual memory provide physical memory to applications on the computer?
by creating a mapping of virtual to physical addresses.
236
what does a program not have to worry about due to virtual memory?
the portions of memory other programs use, where its data is in RAM.
237
what gives us the ability to use more memory than we physically have installed?
virtual memory
238
How does Virtual memory give us the ability to use more memory than we have installed?
dedicates an area of the hard drive to use a storage space for blocks of data called pages.
239
What happens when a page of data isn't being used by an application?
it gets evicted, which means it gets copied out of memory onto the hard drive.
240
Where does the OS want to keep the most commonly accessed data packages? why?
RAM. accessing data on RAM is fast.
241
where does the stuff that hasn't been used for a while get put?
hard drive
242
what program does the Windows OS use for virtual memory management scheme and paging mechanism? almost every OS has these, btw.
the memory manager
243
what does the memory manager do?
maps virtual to physical memory for programs and manages paging.
244
in windows, where are pages automatically saved to disks stored?
hidden file on the root partition of a volume called page file.sis
245
Windows automatically creates ____ _____ and it uses the memory manager to ____ _____ of ______ to be read as needed
page files, copy pages, memory
246
What does Windows provide as a way to modify the size, number, and location of paging files?
control panel applet called system properties, which you can get to by opening Control Panel
247
what does Windows use to copy pages of memory to be read as needed?
memory manager
248
system, advanced, settings, advanced, virtual memory, change
override the defaults Windows provides
249
what should the minimum paging file size be for 64 bit Windows 7?
1x the amount of RAM in the machine
250
What is a paging file?
a reserved space on your hard drive that Windows uses to store data from RAM that hasn't been used recently, which frees RAM for active processes, potentially improving system performance.
251
what are crucial for capturing system crash dumps, which are crucial for diagnosing system errors?
Pagin files
252
why would I want to add or maintain page files?
to improve system performance
253
what is an optional tool that uses hard drive space to supplement a RAM capacity?
paging file
254
what offloads data from RAM that has not been used recently by the system?
paging file
255
what is a system commit charge?
the total amount of virtual memory being promised to running processes on your system. both physical memory and any disk spcae reserved for paging files.
256
what can be used for system crash dumps or to extend the system commit charge when the computer is in peak usage?
paging files
257
when might paging files not be necessary?
in systems with a large amount of RAM
258
what is generated when a system crashes?
a system crash dump
259
what can be allocated to accept the memory.dmp?
page file
260
what does a page file need to be large enough to do with crash dump?
accept the size of it so the system can generate the crash dump file
261
what will the system do if it is configured to manage page dumps?
automatically size the page file based on the crash dump settings
262
what are two common crash dump options?
small memory dump and complete memory dump
263
what memory dump setting will save the minimum amount of info needed to troubleshoot a system crash? The paging file must have at least 2 MB of hard drive space allocated to it on the boot volume of the Windows system. It should also be configured to generate a new page file for each system crash to save a record of system problems.
Small memory dump
264
Where is the Small memory dump stored?
This history is stored in the Small Dump Directory which is located in the %SystemRoot%\Minidump file path.
265
how do you configure a small memory dump file?
run the cmd: Wmic recoveros set DebugInfoType=3
266
how can you configure the small memory dump option in the registry?
267
what is the Windows Registry?
a hierarchical database that stores settings and configurations for your OS and applications
268
what is a registry key?
a folder in the Windows Registry database. Organizes related settings
269
what do registry subkeys store?
actual configuration data
270
how can you navigate to the Windows Registry?
type regedit in search, and select registry Editor.
271
what can you set to enable small memory dump in the registry?
Set the CrashDumpEnabled DWORD value to 3
272
What command line do you use to set a folder as the Small Dump Directory?
Wmic recoverso set MiniDumpDirectory=
273
how can you set the directory folder option in the registry?
set the MinidumpDir Expandable String Value to
274
The option records the contents of system memory when the computer stops unexpectedly. This option isn't available on computers that have 2 or more GB of RAM. If you select this option, you must have a paging file on the boot volume that is sufficient to hold all the physical RAM plus 1 MB. The file is stored as specified in %SystemRoot%\Memory.dmp by default.
Complete memory dump
275
why does a complete memory dump require an extra MB?
Windows writes a header in addition to dumping the memory contents, which contains a crash dump signature and specifies the values of some kernel variables. the header info doesn't require the full MB, but Windows seizes your paging file in increments of MB.
276
what cmd utility do you use to configure a complete memory dump file?
wmic recoveros set DebugInfoType=1
277
how do you configure complete memory dump in the registry?
set the CrashDumpEnabled DWORD value to 1
278
how do you indicate that a system should not overwrite kernel memory dumps or other complete memory dumps?
wmic recoveros set OverwriteExistingDebugFile=0
279
how do you set the overwrite setting in the registry?
set the Overwrite DWORD value to 0
280
What do we call the total of RAM plus the amount of disk space reserved for paging files/
The system commit limit
281
What must be equal to or less than the system commit limit?
the system commit charge
282
what is the system commit limit less than if a page file is not in place?
the system's RAM amount
283
why the measurement guidelines for the system commit limit?
to prevent the system from overpromising available memory.
284
what happens if system commit limit is exceede?
Windows or the applications in use could stop working right
285
what do you assess for page files periodically to make sure there is enough space for the system peak needs?
amount of disk storage allocated to the page files
286
what should you do if disk space is low?
consider adding RAM, hard drive storage, or offloading non-system files to network or cloud
287
why might 128 GB for page files be a waste?
if the system only needs a small fraction of it.
288
what can store modified pages that are not in use?
page files
289
why are modified pages stored in page files?
to keep information easily accessible by the system without overburdening RAM.
290
Where are modified pages to be stored on the hard drive recorded?
\Memory\Modified Page List Bytes directory
291
What if the page file is not large enough?
some of the pages added to the Modified Page List Bytes might not be written to the page file.
292
What happens if the pages added to the Modified Page List Bytes are not written to the page file?
the page file either needs to be expanded or additional page files should be added to system.
293
When is the page file too small? assess if these are true:
\Memory\Available MBytes indicates more physical memory is needed A significant amount of memory exists n the modified page list \Paging Files(*)% Usage (existing page files) are almost full
294
In linux, the dedicated area of the hard drive used for virtual memory
swap space
295
what would you create swap space partitions on usually in practice?
main storage devices like hard drives and ssd
296
where can you make swap space? what tool?
parted
297
parted, select the drive you want to work on print (to see details) mkpart primary linux-swap 5GiB 100% quit (quit parted) sudo mkswap /dev/sdb2 sudo swapon /dev/sdb2
make a swap partition, format the linux-swap file system on it. 100% indicates we should use the rest of the free space on our drive. swap isn't a file system. We need to specify that we need to make it swap space with the mkswap command. and that does it to turn it into swap space. Now, just enable swap. with swapon
298
what do pages go into?
swap, not file data.
299
what command in linux enables swap?
swapon
300
what command in linux makes swap?
mkswap (filepath)
301
what do you do if you want to make the swap space mounted automatically?
add a swap entry tothe /etc/fstab file.
302
what is used when the RAM is full in LInux?
swap space
303
what can swap space in linux be?
a dedicated swap partition, a swap file, or a combination of swap partitions and swap files.
304
what does not support swap space?
Btrfs
305
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-swapspace#ch-swapspace
table of recommended swap space
306
when do attempts to modify swap fail?
if a system process or the kernel is using swap space. use the free and cat /proc/swaps commands to verify how much and where the swap space is in use.
307
when should you modify swap space?
when the system is booted in rescue mode.
308
when expanding swap space, what should you do?
first, turn swapoff.
309
RedHat swap space info
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-swapspace#swap-creating-lvm2
310
what manages the actual file data, file metadata, and file systems?
OS
311
what is file metadata?
information about a file, like owner, permissions, size, location on hard drive, etc
312
what is the native file system format of Windows?
NTFS
313
what does NTFS use to keep things straight?
master file table, MFT
314
What does every file on a volume have in the MFT? Including the MFT itself.
at least one entry
315
what corresponds with MFT record?
files
316
when can there be more than one record to represent a file?
if it has multiple attributes
317
what are file attributes?
name, creation timestamp, read only, compressed, location of data, etc.
318
where are entries added when you create files on an NTFS file system?
MFT
319
what happens when files get deleted? in the entries in the MFT
their entries in the MFT are marked as free so they can get reused.
320
what is the index of the file's entry in the MFT?
file record number
321
what kind of file has an entry in the MFT, but it has a reference to some destination so that when you open it it takes you there.
shortcut
322
how can you make a shortcut?
right click target file, create shortcut.
323
what ways are provided by NTFS to access files other than shortcuts?
hard and symbolic links.
324
what are like shortcuts at the file system level?
symbolic links
325
what happens when you make a symbolic link?
you make an entry in the mft that points to the name of another entry or file.
326
What is the difference between shortcut and symbolic links?
the operating system treats symbolic links like substitutes for the file they link to.
327
what happens if you use a command line to open up a shortcut file?
it will have different information than the file it links to.
328
what program in the command prompt can you use to make symbolic links?
mklink
329
what does the command in cmd.exe, mklink file_1_symlink file_1.txt do?
makes a symbolic link to file_1.txt called file_1_symlink
330
what happens if you make a symbolic link and open it in notepad?
it will open to show the contents of the original file.
331
what happens when you create a hard link in NTFS?
an entry is added to the MFT that points to the linked file record number, not the name of the file. The file name of the target can change and the hard link will still point to it.
332
what option is needed to create hard links/
/H
333
what does the command mklink /H file_1_hardlink file_1.txt do?
makes a hard link for file_1 called file_1_hardlink
334
what does a hard link point out?
the file record number, not the file name.
335