File Management Flashcards

1
Q

What is a file?

A

A named collection of related information that is recorded on secondary storage (non-volatile memory).

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

What are typical file attributes (meta data)?

A
  • The name of the file
  • The identifier of the file
  • The location of the file on a storage device
  • The size of the file
  • The protection mode of the file, giving permissions
  • The times that the file was created/accessed/modified
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are two distinctive features of the Linux file system?

A
  • Everything is a file approach
  • Tree-like inode pointer structure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the six types of files in Linux?

A
  • Regular files
  • Directories
  • Special files
  • Pipes
  • Links
  • Symbolic links
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a hard link in Linux?

A

A link that points to an inode of a specific file
If the file is moved/deleted the link will still work

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

What happens to a hard link if the file is moved or deleted?

A

The link will still work.

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

What is a symbolic (soft) link in Linux?

A

points to a specific file path, A pointer to a filename at a particular location in the file system.

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

What happens to a symbolic link if the file is moved or deleted?

A

The link will not work.

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

How is file allocation done in Linux?

A

In blocks, with each block typically being 4096 bytes.

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

What are the two types of mass-storage structures discussed?

A
  • Magnetic Disks
  • Solid-State Disks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a magnetic disk composed of?

A

A number of spinning circular platters (placed on top of each other) with heads attached to a movable arm.

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

What is the smallest unit of data that can be transferred to or from a magnetic disk?

A

A sector, traditionally 512 bytes.

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

What constitutes a cylinder in a magnetic disk?

A

The set of tracks across different platters at a given arm position.

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

What technology do solid-state disks use to store data?

A

Flash memory, specifically transistors that store data as electrical charges.

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

What is the typical page size and block size in a solid-state disk?

A

4KB pages and a 512KB block size.

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

How can reading or writing to an empty solid-state drive be done?

A

On a page level.

17
Q

What is required for erasing flash memory in solid-state disks?

A

A high amount of voltage, which can only be done on block level.

18
Q

How do solid-state disks compare to magnetic disks?

A
  • Faster
  • More reliable
  • More expensive
  • More power-efficient
19
Q

What is wear-levelling in solid-state disks?

A

A technique used to increase the lifetime of a solid-state disk by spreading writes evenly among the blocks.

20
Q

What is dynamic wear-levelling?

A

New data is written to the least-recently-used block. longest amount of time passed since the last write

21
Q

What is the remaining problem with dynamic wear-levelling?

A

‘Cold’ data is not moved.

22
Q

What is static wear-levelling?

A

Writes dazta to the least recently used block and It periodically moves existing data to the least-recently-used block.

23
Q

What is the benefit of wear-levelling?

A

It spreads the writes evenly among the blocks to avoid block failure.

24
Q

If you remove power from primary storage what happens

A

the data disappears

25
if you remove the power for secondary storage what happens
nothing will happen - the data will still be there
26
What is the identifier of the file
a name given by the computer for the file rather than the user
27
What does the protection mode of the file contain
who is allowed to read this file, write and execute
28
What could the file times help with
seeing what files need to be backed up due to be modified, accessed or created
29
What is every file stored on a disk associated with
an inode
30
What does the inode store
all the file attributes associated with that file
31
What does the inode not store
the file name, that is already known
32
What is the advantage of the everything is a file approach
lots of functionality from a lot of small operations
33
What does the head read
the change in magnetism in the platter which in one direction will represent a 1 and the other a 0
34
What can tracks allow for
allows for certain files to be stored on one cylinder which mean fast reading without having to move the heads. Retrieves data much faster
35
Why does erasion have to be done on a block level SSD
as the erase procedure requires a lot of power and thus is very risky that you could effect the nearby pages
36
When you want to overwrite data in a block, what needs to be included
an erase operation
37
What do solid state disks do with every read and write operation to a block
the deteriorate and eventually the cells can no longer hold the charge that is used to store the data