File System Mounting in OS - GeeksforGeeks (2024)

Last Updated : 11 Oct, 2023

Summarize

Comments

Improve

In this article, we are going to discuss the most important concept in Operating Systems which allows the users to organize and access files from different storage devices. If we compare it to a real-life scenario, it is closely related to “Connecting puzzles to get a complete picture of data”.

What is File System Mounting?

Mounting is a process in which the operating system adds the directories and files from a storage device to the user’s computer file system. The file system is attached to an empty directory, by adding so the system user can access the data that is available inside the storage device through the system file manager. Storage systems can be internal hard disks, external hard disks, USB flash drivers, SSD cards, memory cards, network-attached storage devices, CDs and DVDs, remote file systems, or anything else.

Terminologies used in File System Mounting

  • File System: It is the method used by the operating system to manage data storage in a storage device. So, a user can access and organize the directories and files in an efficient manner.
  • Device name: It is a name/identifier given to a storage partition. In windows, for example, “D:” in windows.
  • Mount point: It is an empty directory in which we are adding the file system during the process of mounting.

Mounting Indifferent Operating Systems

1. Linux-Unix based OS

We want to mount /dev/sdb1 to an existing directory /mnt.

sudo mount /dev/sdb1 /mnt/mydisk

After mounting, we have to unmount after use

sudo umount /mnt/mydisk

File System Mounting in OS - GeeksforGeeks (1)

before and after mounting

2. Windows OS

In windows mounting is very easy for a user. When we connect the external storage devices, windows automatically detect the file system and mount it to the drive letter. Drive letter may be D: or E:.

Steps:

  • Connect an external storage device to your PC.
  • Windows detects the file system on the drive (e.g., FAT32 or NTFS) and assigns it a drive letter, such as “E:”.
  • You can access the derive by going through, THIS PC –> FILE EXPLORER –>”E:” drive
  • Access the data.

3. Mac OS

In Mac OS when we connect an external storage it will automatically mount, and it will be accessible via Finder. As an advanced mounting method user can also use the command diskutil in Terminal.

Method 1:

Steps:

  • Connect an external storage device to your MAC.
  • MS OS detects the file system and automatically mount it.
  • You can access the drive by opening Finder, and it will appear in the sidebar.

Method 2(Using diskutil):

To mount a drive with a known identifier: disk2s1

diskutil mount /dev/disk2s1

To unmount:

diskutil unmount /dev/disk2s1

FAQs on File System Mounting

Q.1: What is file system mounting in an operating system?

Answer:

The process of associating a storage device with a directory in the file system

Q.2: What is the primary purpose of file system mounting?

Answer:

To make files and directories accessible to users

Q.3: In Linux, which file contains information about file systems that should be automatically mounted at boot time?

Answer:

/etc/fstab



File System Mounting in OS - GeeksforGeeks (2)

Improve

Please Login to comment...

File System Mounting in OS - GeeksforGeeks (2024)
Top Articles
Non-Toxic Paints
Turn Off Pop~Up Blocking in Safari
Toa Guide Osrs
Algebra Calculator Mathway
Online Reading Resources for Students & Teachers | Raz-Kids
How Much Is 10000 Nickels
Gunshots, panic and then fury - BBC correspondent's account of Trump shooting
Best Cav Commanders Rok
Valentina Gonzalez Leaked Videos And Images - EroThots
The Rise of Breckie Hill: How She Became a Social Media Star | Entertainment
Nonne's Italian Restaurant And Sports Bar Port Orange Photos
Nitti Sanitation Holiday Schedule
Best Food Near Detroit Airport
Nebraska Furniture Tables
Colts Snap Counts
Interactive Maps: States where guns are sold online most
24 Best Things To Do in Great Yarmouth Norfolk
Ou Class Nav
Violent Night Showtimes Near Amc Fashion Valley 18
Byui Calendar Fall 2023
Amazing deals for Abercrombie & Fitch Co. on Goodshop!
Rqi.1Stop
Melendez Imports Menu
Xfinity Cup Race Today
Ihub Fnma Message Board
Low Tide In Twilight Ch 52
Hannaford Weekly Flyer Manchester Nh
Page 2383 – Christianity Today
Rugged Gentleman Barber Shop Martinsburg Wv
John Deere 44 Snowblower Parts Manual
Pay Stub Portal
Laveen Modern Dentistry And Orthodontics Laveen Village Az
Swimgs Yuzzle Wuzzle Yups Wits Sadie Plant Tune 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Autumns Cow Dog Pig Tim Cook’s Birthday Buff Work It Out Wombats Pineview Playtime Chronicles Day Of The Dead The Alpha Baa Baa Twinkle
The Latest: Trump addresses apparent assassination attempt on X
Most popular Indian web series of 2022 (so far) as per IMDb: Rocket Boys, Panchayat, Mai in top 10
Petsmart Distribution Center Jobs
Sitting Human Silhouette Demonologist
Tal 3L Zeus Replacement Lid
Jefferson Parish Dump Wall Blvd
Culvers Lyons Flavor Of The Day
Wayne State Academica Login
Join MileSplit to get access to the latest news, films, and events!
Tyler Perry Marriage Counselor Play 123Movies
Citibank Branch Locations In Orlando Florida
Craigslist Freeport Illinois
Henry Ford’s Greatest Achievements and Inventions - World History Edu
Wilson Tire And Auto Service Gambrills Photos
Brother Bear Tattoo Ideas
Kaamel Hasaun Wikipedia
Lesly Center Tiraj Rapid
The 13 best home gym equipment and machines of 2023
Generator für Fantasie-Ortsnamen: Finden Sie den perfekten Namen
Latest Posts
Article information

Author: Kieth Sipes

Last Updated:

Views: 5745

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Kieth Sipes

Birthday: 2001-04-14

Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

Phone: +9663362133320

Job: District Sales Analyst

Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.