linux is capable of doing all sorts of
amazing things some of which no other
operating system on the planet can do
it's also capable of handling some very
basic tasks
one such task is mounting file systems
such as external drives to the internal
file system
this is a crucial feature otherwise you
wouldn't be able to either expand your
storage or attach external data drives
if you're working with a distribution of
linux that includes a desktop gui adding
external drives is pretty simple
but what if you're using a gui list
server
for that you'll need to make use of the
mount command
mount does exactly what you think it
does it mounts an external drive to your
internal file system
but it's not exactly that simple
first off you have to have a directory
on the internal file system to serve as
the mount point you can't simply mount
say devsdb to the root file system
you could however create a new directory
say data with the command sudo mkdir
slash data you would then want to make
sure whatever user or group that would
need to use the directory has access
using the chown command as in sudo chown
dash r colon writers slash data and then
give the group write access with the
chmod command as in sudo chmod dash
capital r g plus w data
once you've done that you have a mount
point that can house the external drive
you then need to find out where the
drive is located which can be done with
the command
lsblk
find the drive name associated with the
disk and mount it with the command sudo
mount
name slash data where name is the name
associated with the drive such as slash
dev
sdb
at this point everything housed in your
external drive will appear in slash data
and that my friends is the basics for
using the mount command
to find out more details on this helpful
tool make sure to read the man page with
the command man
mount
hey everybody
don't forget to like this video and
subscribe to our techrepublic youtube
channel and be sure to check out more
how-to videos at how to make tech work