Why is the directory no longer empty? Where are the listed files physically stored?
Manually mounting and unmounting filesystems
a. Use the ls -l command to verify that the directory second_drive is in the analyst’s home directory.
[analyst@secOps /]$ cd ~
[analyst@secOps ~]$ ls –l
total 28
drwxr-xr-x 3 analyst analyst 4096 Aug 16 15:15 cyops_folder2
drwxr-xr-x 2 analyst analyst 4096 Sep 26 2014 Desktop
drwx------ 3 analyst analyst 4096 Jul 14 11:28 Downloads
drwxr-xr-x 8 analyst analyst 4096 Jul 25 16:27 lab.support.files
drwxr-xr-x 2 analyst analyst 4096 Mar 3 15:56 second_drive
-rw-r--r-- 1 analyst analyst 142 Aug 16 15:11 some_text_file.txt
-rw-r--r-- 1 analyst analyst 254 Aug 16 13:38 space.txt
b. Use ls -l again to list the contents of the newly created second_drive directory.
[analyst@secOps ~]$ ls -l second_drive/
total 0
Notice that the directory is empty.
c. Use the mount command to mount /dev/sdb1 on the newly created second_drive directory. The syntax of mount is: mount [options]
[analyst@secOps ~]$ sudo mount /dev/sdb1 ~/second_drive/
[sudo] password for analyst:
No output is provided which means the mounting process was successful.
d. Now that the /dev/sdb1 has been mounted on /home/analyst/second_drive, use ls -l to list the contents of the directory again.
[analyst@secOps ~]$ ls -l second_drive/
total 20
drwx------ 2 root root 16384 Mar 3 10:59 lost+found
-rw-r--r-- 1 root root 183 Mar 3 15:42 myFile.txt
After the mount, /home/analyst/second_drive becomes the entry point to the filesystem physically stored in /dev/sdb1.
You might also like to view...
What is the difference between “straight” and “cross-connected” input ports?
What will be an ideal response?
Pharming is a technique that uses email messages or a website to trick computer users into revealing personal or financial information
Indicate whether the statement is true or false
The ORDER BY clause must be added to the beginning of an SQL statement after the WHERE clause
Indicate whether the statement is true or false
When you run a presentation, slide ____ determine how one slide is removed from the screen and how the next one appears.
A. transitions B. animations C. graphics D. themes