Tue. Oct 26th, 2021

Jack Wallen introduces new Linux customers to the mount command and find out how to use it to mount an exterior drive to the inner file system.


Picture: Jack Wallen

Linux is able to doing all kinds of wonderful issues, a few of which no different working system on the planet can do. 

It is also able to dealing with some very fundamental duties. One such activity is mounting file programs (comparable to exterior drives) to the filesystem. This can be a essential characteristic, in any other case, you would not be capable of both develop your storage or connect exterior knowledge drives. 

SEE: 5 Linux server distributions you ought to be utilizing (TechRepublic Premium)

For those who’re working with a distribution of Linux that features a desktop GUI, including exterior drives is fairly easy. However what for those who’re utilizing a GUI-less server? For that, you will must make use of the mount command. Mount does precisely what you suppose it does, it mounts an exterior drive to your inside filesystem. 

But it surely’s not precisely that easy. First off, it’s important to have a listing on the inner file system to function the mount level. You’ll be able to’t merely mount, say, /dev/sdb to the foundation file system. 

You might, nonetheless, create a brand new listing, say knowledge with the command sudo mkdir /knowledge. You’d then need to be certain no matter person or group that would want to make use of the listing has entry utilizing the chown command (as in sudo chown -R :writers /knowledge) after which give the group write entry with the chmod command (as in sudo chmod -R g+w /knowledge). 

SEE: Linux 101: How you can execute instructions from throughout the nano textual content editor (TechRepublic) 

As soon as you have performed that, you have got a mount level that may home the exterior drive. You then want to search out out the place the drive is situated, which could be performed with the command lsblk. Discover the drive title related to the disk and mount it with the command sudo mount NAME /knowledge (The place NAME is the title related to the drive, comparable to /dev/sdb). 

At this level, the whole lot housed in your exterior drive will seem in /knowledge. 

And that, my associates, is the fundamentals for utilizing the mount command. To seek out out extra particulars on this useful instrument, be certain to learn the person web page with man mount. 

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest tech recommendation for enterprise execs from Jack Wallen.

Additionally see

Source link

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *