Question

Please answer the following questions because I am not understanding it Description Investigate UNIX/Linux Files Systems...

Please answer the following questions because I am not understanding it

Description Investigate UNIX/Linux Files Systems by answering the questions below

Requirements

 Save the recorded information in an ASCII file named “prog2.txt”. The file, “prog2.txt”, must be located in the directory: $HOME/itec400/homework

 Make sure the permissions on “prog2.txt” are set to 705.

 Solutions to problems below may require research on the web

 Record the questions below and the answers in “prog2.txt”.

1. What is the purpose of the Linux Virtual File System (VFS)?

2. Describe the ext2 filesystem

3. What does is the difference between ext2 and ext3 file systems?

4. What is the purpose of the super-block?

5. What does the super-block contain (provide a list)?

6. What is the “magic number” used for in the super-block?

7. What does the inode contain (provide a list)?

8. The ls command collects its information from the inode of a file. Use the ls command to determine the following information about the file, /bin/zcat, on cs.franklin.edu: a. The inode of /bin/zcat b. The number of physical (hard) links to /bin/zcat

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. Virtual File System(VFS) is an interface between an operating system's kernel and a concrete file system. It is a kernal software layer which handles the system calls related to the file systems.

The main purpose of the Linux Virtual File Sytem is to allow client applications to access different types of file systems in a proper way.

2. ext2 filesystem(Second Extended File system )

ext2 is the file system for the linux kernal.It uses blocks as the basic unit of storage.

  • A disk, file or block device formated with a Second Extended Filesystem is divided into small groups called “blocks”.
  • These blocks are then grouped into larger units called block groups.
  • Each group duplicates information critical to the integrity of the file system.

3.

ext2 ext3
Stands for Second Extended File system . Stands for Second Extended File system.
Ext2 does not have journaling feature. Ext2 have journaling feature.
Overall ext2 file system size can be from 2 TB to 32 TB. Overall ext3 file system size can be from 2 TB to 32 TB.
Maximum individual file size can be from 16 GB to 2 TB. Maximum individual file size can be from 16 GB to 2 TB.
It was introduced in 1993. It was introduced in 2001.

journaling feature: Journaling filesystem keeps a log of the changes that are being made to the filesystem during disk writing .

4. Super block is a data structure in a filesystem .The purpose of the superblock is that it holds metadata about the filesystem, includes

  • Which inode is the top-level directory
  • Type of filesystem used.

5. Super block stores important information about the file system. It includes

  • Blocks in the file system.
  • Configuration of the file system.
  • Inodes per block group.
  • The operating system in which the file system was formatted.
  • Blocks per block group.
  • No of times the file system was mounted since last fsck.
  • Write time.
  • No of free blocks in the file system.
  • File System State .
  • The file system type (ie: ext2,3 or 4).

6. Magic number is a sequence of bytes that is used in files of certain format, usually at a given position . Magic number is used to recognize what format a file is in.

7. The index node(inode)is a data structure that describes a file-system object such as a file or a directory. inode stores the attributes and disk block locations of the object's data.

inode includes:

  • File type (executable, block special etc)
  • Permissions (read, write etc)
  • Owner
  • Group
  • File Size
  • File access, change and modification time
  • File deletion time
  • Number of links (soft/hard)
  • Access Control List (ACLs)

8. cd /bin/zcat ( to change directory )

a) ls -i (To find inode number)

b) ls -l (To find number of hardlinks to a particular inode)

Add a comment
Know the answer?
Add Answer to:
Please answer the following questions because I am not understanding it Description Investigate UNIX/Linux Files Systems...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Unix/Linux The purpose of this lab is to practice the commands to manage and organize files...

    Unix/Linux The purpose of this lab is to practice the commands to manage and organize files and directories: How would one go about this? Thanks. Task 1: Preliminaries: 1) If you have not already done so, create a directory called bin under your HOME directory. 2) If you have not already made a copy (using ftp) of the file called famous.dat from the Assignment#1, do that now. 3) Make bin the active/working directory. Task 2: Perform all of the following...

  • UNIX File Permission help, please answer the questions in the green boxes. Thank you Lab 03...

    UNIX File Permission help, please answer the questions in the green boxes. Thank you Lab 03 File Permissions In this lab we will: learn about file permissions learn to create symbolic links and hard links Utilities that will be utilized in this Lab: us, cd, less, cat touch, chmod id umask, mkdir, In, echo and redirection Users and Groups Linux supports several methods of controlling access to files an directories. In this lab we are going to learn the traditional...

  • answer the following questions: 1)ACK scans and NULL scans work only on UNIX and LINUX systems.(SELECT...

    answer the following questions: 1)ACK scans and NULL scans work only on UNIX and LINUX systems.(SELECT ONE): a)true b)false 2)Cross-site scripting attacks attempt to bypass the browsers security checks to gain elevated access privileges to sensitive data belonging to another site(SELECT ONE): a)true b)false. 3)Denial of service attacks target the confidentiality and integrity of a system or network.(SELECT ONE): a)true b)false 4)the wireless access point provides a connection to the network or service(SELECT ONE): a)true b)false 5)blocking ICMP packets may...

  • This is a Linux class I need with Writeup questions please. Lab Writeup Answer the following...

    This is a Linux class I need with Writeup questions please. Lab Writeup Answer the following questions in the comment box on Moodle: 1. What is the compiler option to enable level 2 optimization? 2. What is the compiler option to define a macro called CAPACITY with a value of 100? 3. Give the compiler line which will create an executable called 'lab1-18' from a source code file called 'lab1 18.cpp' using return-type warnings and pendantic- errors. 4. Look at...

  • do numbers 4-8 4. Given any directory, use the Is command to display: • all files...

    do numbers 4-8 4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...

  • 18.1 Lab Lesson 11 (Part 1 of 1) Part of lab lesson 11 There in one...

    18.1 Lab Lesson 11 (Part 1 of 1) Part of lab lesson 11 There in one part to lab lesson 11. The entire lab will be worth 100 points. Lab lesson 11 part 1 is worth 100 points For part 1 you will have 80 points if you enter the program and successfully run the program tests. An additional 20 points will be based on the style and formatting of your C++ code. Style points The 20 points for coding...

  • The following are screen grabs of the provided files Thanks so much for your help, and have a n...

    The following are screen grabs of the provided files Thanks so much for your help, and have a nice day! My Java Programming Teacher Gave me this for practice before the exam, butI can't get it to work, and I need a working version to discuss with my teacher ASAP, and I would like to sleep at some point before the exam. Please Help TEST QUESTION 5: Tamagotchi For this question, you will write a number of classes that you...

  • i need help making this program the skeleton of the code is below: //Include the following #include <iostream> #...

    i need help making this program the skeleton of the code is below: //Include the following #include <iostream> #include <string> #include <fstream> //you must include this library if you wish to do file i/o using namespace std; /********************************************************* //Following is the declaration of a order record **********************************************************/ class order_record { public: string cell_number; string item_number; double quantity; double price; int processing_plant; double tax_rate; double order_tax; double net_cost; double total_cost; }; //Prototypes for your functions: input, output, and process will go...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT