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.

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

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

What is the difference between dynamic and static wear levelling

25
Q

What is

26
Q

If you remove power from primary storage what happens

A

the data disappears

27
Q

if you remove the power for secondary storage what happens

A

nothing will happen - the data will still be there

28
Q

What is the identifier of the file

A

a name given by the computer for the file rather than the user

29
Q

What does the protection mode of the file contain

A

who is allowed to read this file, write and execute

30
Q

What could the file times help with

A

seeing what files need to be backed up due to be modified, accessed or created

31
Q

What is every file stored on a disk associated with

32
Q

What does the inode store

A

all the file attributes associated with that file

33
Q

What does the inode not store

A

the file name, that is already known

34
Q

What is the advantage of the everything is a file approach

A

lots of functionality from a lot of small operations

35
Q

What does the head read

A

the change in magnetism in the platter which in one direction will represent a 1 and the other a 0

36
Q

What can tracks allow for

A

allows for certain files to be stored on one cylinder which mean fast reading without having to move the heads. Retrieves data much faster

37
Q

Why does erasion have to be done on a block level SSD

A

as the erase procedure requires a lot of power and thus is very risky that you could effect the nearby pages

38
Q

When you want to overwrite data in a block, what needs to be included

A

an erase operation

39
Q

What do solid state disks do with every read and write operation to a block

A

the deteriorate and eventually the cells can no longer hold the charge that is used to store the data