External File Systems

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
21 hours 25 minutes
Difficulty
Intermediate
Video Transcription
00:00
>> Hello Cybrarians, and welcome back to
00:00
the Linux Plus course here at Cybrary.
00:00
I'm your instructor, Rob Goelz.
00:00
In today's lesson, we're going to be
00:00
discussing external file systems.
00:00
Upon completion of today's lesson,
00:00
you are going to be able to describe
00:00
external filesystems that are used in Linux,
00:00
>> and then differentiate between NFS, SMB, and NTFS,
00:00
>> as well as explain multipathing in Linux.
00:00
>> The network file system or NFS
00:00
is just a standard that we use to access
00:00
data on storage that's across a network,
00:00
network file system, storage across a network.
00:00
Now an nfs share is mounted or exported to make
00:00
that share available, and we can use
00:00
the showmount command to display nfs mounts,
00:00
so use showmount -e, and then we provide
00:00
the nfs_system_name where we're
00:00
trying to see those nfs mounts.
00:00
Now, to access an NFS directory,
00:00
we have to be mounting it.
00:00
We use the mount command.
00:00
For example, we might have
00:00
an NFS server named nfserver,
00:00
>> because I'm not creative,
00:00
>> with an export called /files
00:00
>> and a mount point of /mnt/files,
00:00
>> so we can do mount -t for type,
00:00
and we're going to specify NFS is our type.
00:00
The name of the NFS server is nfserver:/files,
00:00
that's the export, and
00:00
then we're going to mount it locally
00:00
on our machine at the /mnt/files location.
00:00
Now, Windows filesystems use something
00:00
called Server Message Block or SMB
00:00
for that type of network storage,
00:00
>> and sometimes this is referred to
00:00
>> also as Common Internet File System or CIFS.
00:00
>> CIFS and SMB are often used interchangeably.
00:00
Linux has a client for SMB that's called Samba.
00:00
SMB Samba, get it?
00:00
We can use the command smbclient to
00:00
view and access any shared SMB filesystems.
00:00
We just do smbclient -L,
00:00
then we provide the server name,
00:00
the Samba server -U,
00:00
and provide the username to access that server because
00:00
with Windows we have to provide
00:00
our Windows authentication as well.
00:00
Now, SMB shares can be mounted using mount as well,
00:00
so for example, if we had
00:00
an SMB server that was named win1,
00:00
with a files export and
00:00
a mount point on our system of mount files,
00:00
we can mount that using mount//,
00:00
two forward slashes because we're using SMB here.
00:00
So mount//win1/files,
00:00
so win1 is a server and files is the export,
00:00
and mount files is the next thing we put
00:00
in, /mnt/files, to indicate
00:00
that we want to mount that export,
00:00
that Samba export at mount files on our system.
00:00
Now, NTFS is either the
00:00
>> NT File System or the New Technology File System
00:00
>> depending upon who you ask and it
00:00
>> is the default file system for Microsoft Windows.
00:00
You can theoretically use NTFS in Linux,
00:00
although I've never seen that done.
00:00
But there is some information out there on this.
00:00
>> See ntfs -3g is an open source implementation
00:00
>> and you can go and look that up.
00:00
I believe that this is only mentioned
00:00
>> in the exam blueprint to drill this into your head.
00:00
>> NTFS can be used in Linux, but I don't know why.
00:00
>> You might lose access to
00:00
remote storage devices if a network path is lost,
00:00
>> and multipathing allows you
00:00
>> to create a bunch of paths to
00:00
>> a remote storage device,
00:00
>> and then you can use those paths.
00:00
>> You can aggregate them to increase your throughput,
00:00
or you can use them so that you have fault tolerance.
00:00
>> If you lose a path,
00:00
>> you don't lose access to that remote file system,
00:00
you just lose that one path,
00:00
and we can use the kpartx command to
00:00
create multipath storage device entries.
00:00
Now, the command multipath
00:00
is used when we want to view or
00:00
detect these multipath devices,
00:00
and multipathing in Linux
00:00
is accomplished through that thing
00:00
we've already mentioned, the Device Mapper,
00:00
so you use device mapper for multipathing as well.
00:00
The dm-multipath kernel module
00:00
provides the multipath support.
00:00
Linux actually creates an mpath file
00:00
inside of /dev/mapper,
00:00
which we talked about previously,
00:00
>> and that's created for
00:00
>> each new multipath storage device added,
00:00
>> and that works just like any other device file.
00:00
>> In this lesson, we covered
00:00
the different external filesystems
00:00
>> that are used in Linux,
00:00
>> as well as the differences between NFS, SMB,
00:00
and NTFS, and then finally,
00:00
we touched upon the multipathing in Linux.
00:00
Thanks so much for being here,
00:00
>> and I look forward to seeing you in the next lesson.
Up Next