Physical Devices  «Prev 

Creating Filesystem using Linux

After the simulation has finished loading, click the Start Simulation button to begin creating a new filesystem using Linux.
Create Filesystem 1
1) Create Filesystem 1
Create Filesystem 2
2) Create Filesystem 2
Create Filesystem 3
3) Create Filesystem 3
Create Filesystem 4
4) Create Filesystem 4
Create Filesystem 5
5) Create Filesystem 5
Create Filesystem 6
6) Create Filesystem 6
Create Filesystem 7
7) Create Filesystem 7
Create Filesystem 8
8) Create Filesystem 8

What are the steps for creating a File System in Unix?

Creating a file system in Unix typically involves the following steps:
  1. Partitioning the Disk: First, you need to partition the disk using a disk partitioning tool such as fdisk or parted. This involves dividing the disk into one or more partitions, which will be used to hold the file system.
  2. Creating a File System: Once the partitioning is done, you need to create a file system on each partition using a tool such as mkfs. This step involves setting up the basic structure of the file system, including creating a superblock, an inode table, and data blocks.
  3. Mounting the File System: After creating the file system, you need to mount it to a directory in the file system hierarchy using the mount command. This will make the files and directories stored in the file system accessible to the system and users.
  4. Configuring File System Properties: You may need to configure various properties of the file system, such as permissions, ownership, and quotas, depending on your requirements.
  5. Automounting the File System: To ensure that the file system is automatically mounted on system startup, you may need to edit the /etc/fstab file and add an entry for the file system.

These are the general steps involved in creating a file system in Unix. The specific commands and options may vary depending on the version of Unix and the file system type you are using.
  1. Assume that you have already entered a floppy disk into the drive bay. Before you can create a new file system, you must first assert root privileges. Type the |||(S7)su|||(S0) command to do this.
  2. Assert root priveleges
  3. su
  4. The command you have entered is incorrect. Please check the instructions and try again.
  1. Enter |||(S1)rootpass|||(S0) as your password
  2. Password
  3. rootpass
  4. The command you have entered is incorrect. Please check the instructions and try again
  1. Change to the /sbin directory.
  2. Change directory
  3. cd /sbin
  4. Type cd /sbin to change to the /sbin directory.
  1. Before you can use the |||(S7)mkfs|||(S0) command, you must set the path for the /sbin directory. Type |||(S1)PATH=$PATH:.|||(S0) to accomplish this.
  2. Set path
  3. PATH=$PATH:.
  4. The command you have entered is incorrect. Please check the instructions and try again.
  5. Export this path to a system-wide variable.
  6. Export path
  7. export PATH
  8. Type export PATH to export the path to a system-wide variable.
  1. Now, use the mkfs command to create an ext2 file system for your floppy disk (fd0). Use the -t option to specify the type of filesystem. Type mkfs -t ext2 /dev/fd0
  2. Create filesystem
  3. mkfs -t ext2 /dev/fd0
  4. The command you have entered is incorrect. Please check the instructions and try again.
  5. Verify that the file system is internally consistent. Use the fsck command.
  6. fsck -t ext2 /dev/fd0
  1. Verify
  2. Type fsck -t ext2 /dev/fd0
  3. Notice that the disk has 1440 blocks. This equals 1.440 MB of space. This is the end of the simulation. Click the Exit button.