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
Support vector machine in Machine Learning - GeeksforGeeks
The Environmental Hazards of Heavy Metal Leaching from Mines
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
How Many Cc's Is A 96 Cubic Inch Engine
Math Playground Protractor
Undergraduate Programs | Webster Vienna
Dr Klabzuba Okc
How Far Is Chattanooga From Here
Palace Pizza Joplin
Osrs But Damage
Savage X Fenty Wiki
Robot or human?
Tripadvisor Near Me
Charmeck Arrest Inquiry
O'reilly's Auto Parts Closest To My Location
10-Day Weather Forecast for Florence, AL - The Weather Channel | weather.com
Char-Em Isd
Alexander Funeral Home Gallatin Obituaries
Missouri Highway Patrol Crash
Craigslist Pinellas County Rentals
What Is Vioc On Credit Card Statement
zom 100 mangadex - WebNovel
Drug Test 35765N
Encyclopaedia Metallum - WikiMili, The Best Wikipedia Reader
California Online Traffic School
Boxer Puppies For Sale In Amish Country Ohio
Tokyo Spa Memphis Reviews
Account Now Login In
Vivification Harry Potter
The Clapping Song Lyrics by Belle Stars
Valley Craigslist
Helpers Needed At Once Bug Fables
Sam's Club Near Wisconsin Dells
Laveen Modern Dentistry And Orthodontics Laveen Village Az
Japanese Pokémon Cards vs English Pokémon Cards
Ket2 Schedule
42 Manufacturing jobs in Grayling
Tmka-19829
Poe Flameblast
How are you feeling? Vocabulary & expressions to answer this common question!
Craigslist Lakeside Az
Hireright Applicant Center Login
Clima De 10 Días Para 60120
Live Delta Flight Status - FlightAware
LumiSpa iO Activating Cleanser kaufen | 19% Rabatt | NuSkin
Pathfinder Wrath Of The Righteous Tiefling Traitor
Yale College Confidential 2027
UWPD investigating sharing of 'sensitive' photos, video of Wisconsin volleyball team
Mikayla Campinos Alive Or Dead
Nfhs Network On Direct Tv
Access One Ummc
Lake County Fl Trash Pickup Schedule
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.