How to mount a disk under Linux

Theoretically adapt to all Linux systems, just determine the mount point

Copy all the following commands directly and paste them into the SS terminal:

mkfs.ext4 /dev/vdb

echo'/dev/vdb /home ext4 defaults 0 0'>> /etc/fstab

mount -a


mkfs.ext4 means to format an ext4 file format

/dev/vdb means to format the cloud disk of this mount point

/home means to mount to the /home directory, which is suitable for compiling one-click packages (Lnmp, Linux operation and maintenance, AMH, etc.), "/home" is similar to c:Documents and Settings under windows

/www is suitable for the one-click package installed by yum install /apt-get install, depending on your website directory

Note for ubuntu users, current ubuntu users are in the /home directory by default, so it is best to mount other directories

at 12/06/2020, 18:15pm

Updated: at 12/06/2020, 18:20pm

Been read 110 times

Similar Articles

BBR acceleration

       This article introduces one-key fool-style upgrade of the kernel and installation of BBR acceleration. Affirm: The tutorial for one-click installation of BBR was created by Teddy! Google's TCP BBR congestion control...

Centos build graphical interface and VNC

The installation may cause DNS to be cleared, so you need to execute the following command first and then follow the steps to install:   chattr +i /etc/resolv.conf installation:   yum install -y tigervnc tigervnc-server yum...

What People wrote...

Powered by WHMCompleteSolution