SpaceCore WIKI
English
English
  • Personal Account and Registration
    • Account registration
    • «Customer» section
    • «Finance» section
    • Account Verification (KYC)
  • Customer service
    • How do I place an order?
    • How to contact support?
    • The Game Hosting panel
    • Setting Up BILLmanager 6 for Reselling
  • Communications
    • Notifications in Telegram
    • Web Hosting Notifications
    • Using a ping bot in Telegram
  • Information board
    • Blocked ports (VPS/VDS)
    • What is IOPS?
    • VAT for the EU and UK
  • VPS and Dedicated Servers
    • How to use VPS/VDS?
    • Changing the Password for VDS
  • OS and software configuration
    • Java [Linux]
    • Screen
    • Linux Password Recovery
    • Connecting via SSH keys
    • Disabling access to Linux using a password
    • Deploying MikroTik RouterOS on VDS
  • AI
    • Deploying DeepSeek on your server in just a few clicks
  • Windows
    • RDP connection
    • Configuring the RDP connection
    • Changing the password
    • Installation via QEMU
    • How to add an IPv4
    • Download files
    • Bruteforce Windows
  • Network Setup and Security
    • No interaction with private networks
    • Working with TCPDump
    • Change MTU Value
    • Configure IPTables
    • [DNS] Temporary failure resolving...
    • Network Speed Measurement [SpeedTest]
    • How do I buy a domain name?
    • How do I direct my domain to an IP address?
    • How to Protect Your Server? Basics of Cybersecurity
  • VPN and Privacy
    • WireGuard VPN [Easy]
    • OpenVPN [Easy]
    • Outline VPN Installation
    • Installing TorrServer
    • Installing 3X UI
    • Installing Marzban
    • Proxy for Specific Websites (V2RayN)
    • Use Nekoray
  • System monitoring
    • Traffic monitoring via VnStat
    • How to use the MTR tool
    • Getting Serial Numbers of Drives
  • Administration and Backups
    • Working with FTP Repository
    • Auto-shipment of backups
    • Installing an FTP Server
    • Mounting Linux Drives
  • Web development
    • Installing Apache2
    • Installing Nginx
    • Installing PHP
    • Installing MySQL
    • Installing PhpMyAdmin
    • Let's Encrypt SSL Generation
  • Minecraft
    • Installing Minecraft Java Server
    • Installing the Minecraft Bedrock/PE server
    • Installing the BungeeCord server
    • Installing Sponge Forge 1.12.2 Kernel
    • Configuring server.properties
    • Installing the icon on the server
    • Launch Options
    • Installing a resource pack on the server
  • Hetzner Servers
    • Control Panel
    • Password change via Rescue
    • Installing the operating system
  • 🇩🇪Contabo
    • The Control Panel
    • Disk space expansion
Powered by GitBook
On this page
  • Mounting via Mount
  • Mounting via UUID
  • Results

Unlike Windows, which automatically mounts all drives, Linux requires you to do this manually in most cases. So let's find out!

Mounting drives is done using the mount utility. It is usually used together with arguments.

mount «parameters» «- File System» «File Drive» «Final Catalogue for Installation»

The following arguments are available to users:

  • -v — obtaining detailed information during the operation.

  • -h — Help output.

  • -V —output of the software version.

  • -a —use all devices specified in fstab to mount.

  • -F — creating an individual mount instance for each partition.

  • -f — «fake execution». Allows you to see indirectly what will result from the execution of the command.

  • -n —Don't log mount data in Mtab.

  • -l — Adding a drive label to the mount endpoint.

  • -c — use exclusively absolute paths.

  • -r — installation for later reading of files.

  • -w — installation for subsequent reading and writing of files.

  • -L — mount the section by the label «Label».

  • -U — mount partition by UUID.

  • -B — mount local directory.

  • -R — remount the local directory.

Mounting via Mount

The process of mounting drives using the Mount utility is very simple. To do this, just enter a command specifying as arguments the partition that needs to be used for mounting and the directory where this partition should be mounted.

We can get a list of all existing partitions like this:

fdisk -l

For example, let's mount the nvme1n1p3 partition to the /mnt directory:

sudo mount /dev/nvme1n1p3 /mnt/

To dismantle we use the following command:

sudo umount /mnt

You can view a list of all mounted devices in a simple way:

mount

Mounting via UUID

To obtain information about the UUID of our server sections, enter this command:

sudo blkid

We get something like this:

Next, go to the config, which contains information about all partitions mounted when the system boots:

sudo nano /etc/fstab

Then, depending on the file system, you should add a line with the appropriate parameters to this config.

Let's say if we need to mount an NTFS partition, then in this case we should use the command:

UUID="0x0x0x0x0" /mnt/myfolder rw,nls=utf8,gid=plugdev,umask=0002 0 0

For FAT and FAT32 file systems, the following command is suitable:

UUID="0x0x0x0x0" /mnt/myflash vfat rw,exec,codepage=866,nls=utf8,gid=plugdev,umask=0002,nofail,users 0 0

Where «UUID=""» - UUID drive, which must be used.

«/mnt/...» - the location of the catalogue, where it is necessary to install.

To update the changes made (mounting drives), enter the command:

sudo mount -a

Results

Ready! We learned how to manually mount drives. The article is relevant for most Linux distributions.

PreviousInstalling an FTP ServerNextInstalling Apache2

Last updated 1 year ago