befree/doc/mount.org

44 lines
809 B
Org Mode

#+date: 2023-04-07
* Mount devices in the system
The command mount will show the devices that are actually mounted
mount
You may also use ~lsblk~
#+begin_example sh
lsblk --fl
#+end_example
Or use:
#+begin_example sh
df -h
#+end_example
Or even ~fdisk~ (should use ~sudo~) to obtain details on the devices:
#+begin_example sh
fdisk -l
#+end_example
Let's say that you have a second disk identified as ~/dev/sdb~
You may use the command following to mount the disk:
#+begin_example sh
mount /dev/sdb /mnt
#+end_example
This command should be run using ~sudo~ before the line. The command mounts a device
(/dev/sdb) in any directory that exists in the system (here, we used ~/mnt~)
To unmount the disk use (should use ~sudo~ before):
#+begin_example sh
umount /dev/sdb
#+end_example