Topic 15 – Disk management Flashcards
what is formatting known as within:
- windows
- linux
the “terminology” for this is
- windows
- formatting the disk
- linux
- building a file system
what gain is there for a file system by loading its intermeditae tables into memory
a file system will typically use these to hold the physcal address of eah block for the file
loading this into memory instead of leaving it on disk significantly increases performance
what is the basic syntax to mount a drive using the linux command
mount
for this:
mount -t file-system-type drive-name mount-directory
- -t file-system-type - specifies the file system type (if -t is ommited linux will inspect the partition for the file system type)
- drive-name - specifies the drive name (located in the /dev directory)
- mount-directory - specifies the directory upon which you wish to mount the file system
this disk operation would:
- directory
- same filesystem: A new filename entry is created and the original deleted
- different file system: a copy will be needed if moving to a new file system such as a separate disk drive and then a delete)
- intermediate data structures
- no change
- data blocks
- no change
what effect would a
MOVE disk operation
have on each each of the following
- directory
- intermediate data structures
- data blocks
- directory
- this will hold a file name and a reference to its inode
- inode
- this will hold metadata of the file such as:
- permissions
- ownership
- access time
- will also hold a reference to each block that the file is physically located in
- this will hold metadata of the file such as:

describe the data structure of linux
inodes
describe the linux directory
/dev/block
this linux directory will display all block devices that are currently attached.
The contents will display the block device as its major:minor device id that is used internally by linux.
These files in turn point to there associated file in the /dev directory
to deliver this an OS can use:
- Storing multiple copies of data structures on a disk
- Periodically flushing changes to the data structures held in disk
- i.e updating the data structures before the buffer is ready to make an I/O operation
- Journaling
name 3 methods upon which operating systems implement in order to
deliver a robust file system
explain the difference between a
partition table and a file system on a disk
- partition table
- is created by a partition scheme such as MBR and will reference any created partitions and where they are located
- file system
- this will occupy the disk and partitions it will include its own data structures that are used to reference the location of files
what is
GUID Partition Table (GPT)
a formatting scheme that allows for more flexibility such as a wider range of partition types
what effect would a
RENAME disk operation
have on each each of the following
- directory
- intermediate data structures
- data blocks
this disk operation:
- directory
- The filename entry is updated
- intermediate data structures
- no change
- data blocks
- no change
this is a file that contains details and options for any drives and partitions.
There are many options but a primary use is to configure drives here so they can be mounted on demand or on every boot
note
the option default is configured with many “default” options already set such as auto that means it will be mounted at boot time automatically
describe the linux directory
/etc/fstab
this linux command is used to mount a file system to the root directory hierarchy
describe the linux command
mount
what is the size of an
inode
this has the size of 1 block
(typically 512 bytes)
before taking this action you must create a new directory upon which to perform this on
the reason is that once this action is performed any files or directories within said directory will become inaccessible
what action should you perform
before mounting a file sytem to a directory and why
this is the act of placing a file system onto a disks partition
what is
formatting
this is a record held by the file system that holds changes that will be made
in the event of a power failure or crash this can be referenced in order to start a repair and carry out the tasks that didnt complete
what is
journaling
name 3 methods upon which operating systems implement in order to
deliver a robust file system
to deliver this an OS can use:
- Storing multiple copies of data structures on a disk
- Periodically flushing changes to the data structures held in disk
- i.e updating the data structures before the buffer is ready to make an I/O operation
- Journaling
what is the
Linux virtual file system (VFS)
this is a virtual files system that linux provides
it is a software layer that sits on top of all physical file systems
it provides common operations to the userspace such as open(2), stat(2), chmod(2), and similar system calls and aslo alllows different specific file systems to replace or supplement this with additional functionality
describe the
execution process of using extents
- the directory is looked at for the file name
- the file name holds a reference with it to its intermedite table (inode for linux)
- the intermediate table will reference the start and length of every extent
this has the size of 1 block
(typically 512 bytes)
what is the size of an
inode
within linux what will all attached devices be given and where can these attached devices be found
within linux:
- these are named by the OS
- they can be found within /dev directory
for this:
mount -t file-system-type drive-name mount-directory
- -t file-system-type - specifies the file system type (if -t is ommited linux will inspect the partition for the file system type)
- drive-name - specifies the drive name (located in the /dev directory)
- mount-directory - specifies the directory upon which you wish to mount the file system
what is the basic syntax to mount a drive using the linux command
mount
describe the linux command
mkfs
this stands for make file system and is used to build a file system on a disk or partitions
within linux:
- these are named by the OS
- they can be found within /dev directory
within linux what will all attached devices be given and where can these attached devices be found








