Week 4 - Filesystem Types Flashcards

1
Q

What are the recommended default file systems for W/L?

A

NTFS for Windows
ext4 for Linux

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

What file system supports reading and writing to all 3 major OS?

A

FAT 32

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

What’s the downside of FAT 32? 2

A

Files can’t be larger than 4GB
File system can’t be larger than 32 GB

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

What file system is the successor of FAT 32? What does it stand for?

A

exFAT

Extensible File Allocation Table

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

What does FAT stand for?

A

File allocation table

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

What does ASCII stand for?

A

American Standard Code for Information Interchange

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

What does GPT stand for?

A

GUID partition table

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

What does GUID stand for?

A

Globally Unique Identifier

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

What does MBR stand for?

A

Master Boot Record

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

What is a partition?

A

a piece of a disk you can manage

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

A storage disk can be divided into _____

A

partitions

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

Why would someone want to have 2 partitions on their disk?

A

For different OS

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

Can you add different filesystems on different partitions of a disk?

A

Yes

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

When you format a filesystem on a partition, it becomes a ____

A

volume

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

What is a partition table? What are 2 things a table would tell you?

A

A partition table tells the OS how a disk is partitioned

  1. How much disk space is allocated on that partition
  2. Which partitions you can boot from
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the 2 main partition table schemes? L/W

A

MBR - Master Boot Record
GPT - GUID Partition Table

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

What are the 3 main characteristics of an MBR partition table?

A

MBR table:
1. 2TB max volume size
2. 4 primary partitions allowed
3. Uses Primary > Extended > Logical partitions

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

What are the 3 characteristics of a GPT?

A

GPT:
1. >2TB volume size
2. 1 single type of partition
3. Unlimited partitions

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

What partition table does the disk need to use to boot UEFI?

A

GUID partition table

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

What is the disk management utility? W

A

a great Windows native tool for disk partitioning

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

How to get to the disk management utility via GUI? W

A

Right Click “This PC” > Manage > Disk Management under Storage group

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

In disk partitioning, what is allocation unit size? KNIFE

A

The size of the chunks the partition will be chopped into
(small files = small chunks, large files = large blocks)

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

What’s the difference between quick and full format for disk partitioning?

A

A full format is when Windows will search for any errors or bad sectors and takes a little longer

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

What are the 8 steps to partition/reformat a disk on Windows?

A
  1. Diskpart
  2. list disk
  3. select disk 1
  4. clean
  5. create partition primary
  6. select partition 1
  7. active
  8. format FS=NTFS label=my-usb-drive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

_____ is a disk partitioning utility on the Windows operating system

A

Diskpart

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

What are the 3 main divisions of storage you’ll find on a drive?

A
  1. Cluster (allocation unit size) - minimum size a file can take up (size chunks)
  2. Volume - single file system in a single storage area (can be multi-disk)
  3. Partition - creates unique spaces on the hard disk
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

What is a cluster?

A

the minimum amount of space a file can take up in a volume or drive

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

What does it mean to mount something?

A

To make it accessible to the computer

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

What command do you use to partition a disk on Linux?

A

parted

(fdisk)

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

How do you see what disks are connected to a computer using Linux?

A

sudo parted -l

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

How do you select the /dev/sdb USB drive to start the partition? This also enters interactive mode

A

sudo parted /dev/sdb

enters interactive mode

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

How do you get out of interactive mode in parted?

A

quit

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

How do you set a disc label while partitioning on Linux?

A

mklabel (partition table name)

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

In Interactive Mode, how do you see disk information on Linux?

A

print

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

What 4 things does mkpart need to know?

A
  1. what type of partition we want
  2. what type of file system we want to format
  3. the start of the disk
  4. the end of the disk
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

What are the 8 steps to partition and format a FS on Linux? (Not mounted yet)

A

(sudo parted -l to see disks available)

  1. sudo parted /dev/sda
  2. print
  3. mklabel (partition table we want)
  4. print
  5. mkpart primary ext4 1MiB 5GiB (partition disk in 2)
  6. quit
  7. sudo mkfs -t ext4 /dev/sda1 to format partition with FS
  8. sudo parted -l
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

In Linux, how do we select the partition table we want in interactive mode?

A

mklabel (partition table)

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

In Linux, how do we partition a disk that’s already been assigned a partition table in interactive mode?

A

mkpart (partitiontype) (FS) (Start) (End)

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

In Linux, how do we format a filesystem on a disk that’s already been partitioned?

A

Out of interactive mode:

sudo mkfs -t (FS type) /dev/sda1

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

How do you unmount a filesystem in Linux?

A

sudo umount (directory name)
or
sudo umount /dev/(name)

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

What is UUID?

A

Universally unique ID

unique device IDs

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

What command shows us the UUID of block devices on Linux?

A

sudo blkid

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

What does the /etc/fstab directory show? 3

A
  1. UUIDs list of unique device IDs
  2. mount points
  3. what type of file system they are
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

What happens to the mount point we used to mount a file system to a directory when we turn off the computer?

A

it disappears (we have the option to permanently mount a disk though)

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

What command is used to mount/unmount file systems in Linux? Manually and Automatically

A

Unmount Manually:
sudo umount directory
sudo umount /dev/sdb1

Mount/Unmount automatically:
fstab

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

What is a mount point? Linux

A

The location in a file system table (fstab) where you connect a physical storage device to

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

What is mounting?

A

When you connect a physical storage device to a location

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

What does fstab mean? Linux

A

File system table

used to mount/unmount file systems (automation)

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

What are the 6 columns of the file system configuration table (fstab) for the automation of mounting/unmounting devices? Linux

A
  1. Device - UUID or name of device (sda1,etc)
  2. Mount Point - directory location
  3. File system type
  4. Options - mounting options separated by a comma
  5. Backup operation/dump - outdated, not used (1 backups on, 0 backups off)
  6. File system check (fsck) order or Pass - order mounted device to be checked (0 no fs check, 1 mounted device is root file system check first, 2 device is partition check after root)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

What are the different options for the file system check/Pass when automating mounting/unmounting devices? 3

A

0 = no file system check
1 = mounted device is a root file system check first
2 = mounted device is a partition check after the root file system

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

Command to check fstab manual page for the file system in use? Linux

A

man fstab

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

As an IT pro, what do you do when you install a new hard drive but the Linux server does not seem to recognize the drive? 5

A

Linux has detected the new hardware but doesn’t know how to display info about the drive

IT will need to add an entry in the fstab table so that Linux will know how to mount it and display its entry within the fs

  1. format the drive (fdisk) and/or create a partition same command
  2. find which block devices (storage device registered as a file in /dev) Linux assigned to the new drive (lsblk)
  3. use gedit to open fstab file
  4. add new fs partition
  5. reboot the computer and check the (/mnt/mystorage) directory for the new partition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

What does a device file provide? Linux

A

The device file provides an interface between the system and the attached device for read-write processes.

54
Q

When combined with fdisk, what command do you use to find the list of block devices connected to the system? Linux

A

lsblk

55
Q

What are the 7 columns in the output from the lsblk command?

A
  1. Name - of devices
  2. Maj/Min - major minor code numbers for device
  3. RM - removable?
  4. Size - storage available on device
  5. RO - file permissions read-write, read only?
  6. Type - of device
  7. Mountpoint - location of mounted device
56
Q

In a block device list, what does MAJ:MIN mean and what are the differences?

A

Major # is the driver type used for device communication (like RAM, SCSI hard drive, IDE hard drive, RAID metadisk)
Minor # is the ID number used to describe the Major # like partition number, if it’s the physical drive

57
Q

What are the 6 columns of a fstab file when opened using an editor like gedit? Linux

A
  1. device - add new fs device name (/dev/sdb1)
  2. mount point - for new partition (make easy to find for users)
  3. file system - enter fs used for the new partition
  4. options
  5. dump - set to 0
  6. pass - set to 2 for a partition, 1 for root file, 0 for off (it’s a 2 in this case)
58
Q

What are the 5 steps to add an entry in the fstab table so Linux can mount a drive and display it properly in the fs? (mounting error, drive not recognized but detected)

A
  1. format the drive (fdisk) select Linux fs, and/or create a partition same command
  2. find which block devices (storage device registered as a file in /dev) Linux assigned to the new drive (lsblk)
  3. use gedit to open fstab file
  4. add new fs partition
  5. reboot the computer and check the (/mnt/mystorage) directory for the new partition
59
Q

What is virtual memory? W

A

how our OS provides the physical memory available on our computer (RAM,etc) to the applications that run on the computer

60
Q

What 2 things does virtual memory help us with? W

A
  1. handles the logistics to aid applications in accessing memory by creating a mapping of virtual to physical addresses
  2. allows computer to use more memory than we physically have installed (with pages)
61
Q

What are pages? W 2

A

blocks of data that get copied and evicted out of memory to the hard drive when not in use to supplement a system’s RAM capacity

also used for system crash dumps/extend computer’s commit charge

62
Q

What does Windows use to handle virtual memory?

A

Windows OS uses a program called memory manager

63
Q

What does the memory manager in Windows do?

A

handles the mapping of virtual to physical memory and manages pages

64
Q

In Windows, where are pages saved to?

A

Pages are stored in a special hidden file on the root partition of a volume called pagefile.sis

65
Q

Where do we go if we want to modify page files? W

A

control panel > system and security > system > advanced system settings > advanced > settings in Performance > Advanced > Virtual Memory

66
Q

What is the system commit limit? W

A

total of RAM + the amount of disk space reserved for paging files

Helps to avoid overpromising on available RAM

67
Q

What are 3 things an IT specialist can do if disk space is low especially if needing space for paging files? W

A
  1. add more ram
  2. more hard drive storage
  3. offload non-system files to network or cloud
68
Q

What happens if the system commit limit is exceeded? W

A

Windows or applications may stop functioning properly

69
Q

The system commit charge must be ___ or ____ the system commit limit

W

A

must be = or < the system commit limit

70
Q

If there’s no page file, the system commit limit is ___ RAM amount

W

A

less than

71
Q

In what directory are modified page files stored? W

(to be stored on hard drive)

A

\Memory\Modified Page List Bytes

72
Q

3 ways to check if a page file is too small? W

A
  • \Memory\Available MBytes indicates more physical memory is needed.
  • A significant amount of memory exists in the modified page list.
  • \Paging Files(*)% Usage (existing page files) are almost full.
73
Q

What does a complete memory dump do? W

A

records system memory when computer stops randomly

requires paging file on boot volume, able to hold physical RAM +1MB for header

74
Q

What does a small memory dump do? W

A

saves the minimum amount of troubleshoot information of a crash

needs at least 2MB HD space allocated on boot volume

75
Q

Where is the small memory dump stored? W

A

%SystemRoot%\Minidump

76
Q

Where is the complete memory dump stored?

A

%SystemRoot%\Memory.dmp

by default

77
Q

Are paging files necessary in systems with a large amount of RAM?

A

No

78
Q

What are 3 ways paging files are used in Windows?

A
  1. Offloads data from RAM not being used to hard drive to be accessed later
  2. Used for system crash dumps
  3. Extends system commit charge when computer is in peak usage
79
Q

What is swap space?

A

the dedicated area of the hard drive used for virtual memory

80
Q

How do you make a swap space/swap partition? Linux 7 steps

A

How to make swap space/swap partition (manual)

  1. select target device with sudo parted /dev/sdb
  2. print
  3. mkpart primary linux-swap 5GiB 100%
  4. print
  5. quit
  6. specify it’s a swap space with sudo mkswap /dev/sdb2
  7. enable swap on device with sudo swapon /dev/sdb2
  • auto mount swap space will need an entry in the fs table
81
Q

Distributing ___ ___ over ___ ___ ___ also improves ___ performance
Linux

A

Distributing swap space over multiple storage devices also improves swap performance

82
Q

What is the master file table (MFT) used by? W

A

NTFS to organize files

83
Q

How does NTFS store and represent the files we’re working with? W

A

Uses the MFT (master file table) to organize

84
Q

What’s the index of a file’s entry in the MFT (master file table) called?

A

File Record Number (FRN)

85
Q

What are symbolic links? NTFS

A

A shortcut to an entry/file in the MFT but it’s treated as the original file not as a shortcut

(no scrambled words)

86
Q

How do you create a symbolic link for file_1.txt? What program do you use? W

A

mklink file_1_symlink file_1.txt

use command prompt cmd.exe

87
Q

What are hard links? NTFS

A

Hard links reference —> File Record Number (not by name)

file system representation of a file (more than one path references a single file in the same volume)

88
Q

What happens if a hard link file name changes? NTFS

A

The hard link will still point to the same file (the link will still work)

89
Q

What’s a soft link/junction? W

A

the (storage) objects it references are separate directories

90
Q

What is an inode? L

A

the structure used to organize files and metadata for a Linux system

(similar to Windows Master File Table)

91
Q

Where are inodes stored? L

A

stored in an inode table to help manage files (like MFT)

92
Q

What are sim links/soft links in Linux? Why can it be bad?

A

Similar to symbolic links for Windows, they point to another file as a shortcut but if something gets moved and a link is broken for one all other ones are broken

93
Q

What type of data does an inode store/organize? What does it not store? L

A

inodes store metadata but not the file name or file contents itself

94
Q

What are hard links on linux?

A

they point to a physical location on a file system (to an inode stored in an inode table)

hard links are the clones that don’t take up more space, point to the same location

95
Q

What happens when the hard link count of a file reaches zero? L

A

the file is completely removed from the computer

96
Q

How do you create a soft link/sim link on Linux?

A

ln -s important_file important_file_softlink

  • -s for soft link
97
Q

How do you create a hard link on Linux?

A

ln important_file important_file_hardlink

  • no -s this time
  • ls -l filename to check hard link count
98
Q

Why are hard links good to use?

A

If you need to store the same file in different places without taking up additional space on the volume

99
Q

What command on Windows allows us to print out disk usage, how many files it has?

A

disk usage

can also go to disk management
make sure to download DU tool sys internals

100
Q

How does defragmentation make life easier for rotating hard drives?

A

the actuator arm has to travel less to read data

101
Q

What is defragmentation?

A

reorganizes all files on a disk into neighboring locations

102
Q

What does trim do for SSDs? How?

Windows

A

reclaims unused portions of the SSD by erasing unused data blocks

(disk cleanup for SSDs)

103
Q

Is defragmentation done manually or automatically?

A

every so often the OS defragments the drive automatically on a schedule

you can manually do it if needed

104
Q

How to run disk cleanup from command line? W

A

c:\windows\SYSTEM32\cleanmgr.exe /dDrive

Drive = enter drive here

105
Q

How to view disk usage on Linux?

A

du -h

  • if no directory is specified, it defaults to the current one
  • -h means in human-readable form
106
Q

How to view free disk space with command on Linux?

A

df -h

shows you the free space available in your entire machine

107
Q

What’s a data buffer? W Where is it located?

A

A region of the RAM used to temporarily store data while it’s being moved around

(since RAM is faster than hard drives, data needs to sit somewhere for drives to catch up)

108
Q

What are 3 causes of data corruption? W

A
  1. Power outages
  2. System failures, software bugs
  3. Removing a drive without ejecting it
109
Q

What is journaling? NTFS

Windows

A

NTFS logs are kept on changes made to a file’s metadata

110
Q

What is the self-healing NTFS feature? What does it do? W

A

Makes changes to minor problems/corruption on the disk in the background automatically

111
Q

How to run the check disk utility tool (serious disk corruption)

A

chkdsk /F D:
in the command prompt

  • by default runs in read-only mode, no changes made
  • can tell it to fix any problems it finds with /F flag
112
Q

How to check the status of NTFS self-healing feature?

A

command prompt

fsutil repair query C:

113
Q

How does the check disk utility on Windows repair corruption automatically?

A

If it detects corruption/bad sectors, it sets a bit in the metadata file to indicate that. On system boot, chkdsk utility will check for this bit and will execute to try to repair the broken bits in the file system from the NTFS log

114
Q

To repair a file system, make sure the file system isn’t ____

Linux

A

make sure the file system isn’t mounted (it’ll damage it)

115
Q

On Linux, what command to repair a file system?

A

make sure the file system isn’t mounted (it’ll damage the file system)

sudo fsck /dev/sda

116
Q

What does i-nodes stand for? Linux

A

index nodes

(every file in Linux has its i-node identifier)

117
Q

What does the i-node store?

A

stores metadata about the storage block and fragment locations where each file is stored

118
Q

What are 5 symptoms of data corruption? L

A
  1. system suddenly shuts down
  2. software won’t launch or crashes when opening corrupted file (or gives errors file not recognized)
  3. corrupted files/folders no longer appear in the file system
  4. OS reports bad sectors when it fails to execute commands
  5. Hard drives with platters are damaged and make clicking sounds/unusual vibrations
119
Q

What are 3 causes of data corruption? L, Part B

A
  1. Software errors (viruses, malware, antivirus damages files, interferes with r/w HD operations)
  2. Hardware malfunctions (larger files more likely to have a bad sector, hard drives with moving parts wear out/get damaged like damaged heads or platters)
  3. Electrical damage (power failure while writing data to hard drive)
120
Q

What’s the critical first step when you have identified or suspected data corruption? L

A

shut down the affected hard drives to prevent data recovery from becoming more difficult from the corruption activity continuing

121
Q

What’s the second step in data corruption repair? L 2 options

A

Minimize read/write operations on the disk other than those produced by data recovery tools

  1. corrupted Linux boots from external device or network (PXE boot)
  2. or attach corrupted HD to a healthy Linux as an external drive using an adapter or docking station*

*automount must be disabled

122
Q

What’s the third step in data corruption repair? L

A

disable the automount service if connecting a corrupted drive to a healthy system as fsck won’t repair corruption on a mounted file system

123
Q

2 instances where the fsck command must NOT be used? L

A
  1. on a hard drive that was a member of a RAID array
  2. on a mounted file system (must be unmounted)
124
Q

What command displays disk volume, and can be paired with other tools for disk repair? W

A

chkdsk

125
Q

How do you create a symbolic link called “almond” to a file named “nuts.txt”? W

A

mklink almond nuts.txt

126
Q

What are blocks?

A

Blocks are a layer of storage devices that allow individual access to each independently.

They allow programs to access storage without worrying about whether the underlying hardware device is a hard drive, solid state drive, flash drive, etc.

127
Q

How to display an output in human-readable format? Linux

A

-h flag

128
Q

What are two ways to see disks mounted on a system? Linux commands

A
  1. df -h
    - disk free, usually used to see how much free space in the file system. -h for human readable format.
  2. lsblk
    - lists block devices
129
Q

What minor numbers in the MAJ:MIN column are used to indicate the physical drives? 3 hard drives

Linux

A

1st physical hard drive: 0 MIN #

2nd physical hard drive: 16 MIN #

3rd physical hard drive: 32 MIN #

130
Q

What are the 4 MAJOR numbers used to identify the driver type in the MAJ:MIN column? Linux

A

1 = RAM
3 = IDE Hard Drive
8 = SCSI Hard Drive
9 = RAID metadisk