Get the App
SLTechnology News&Howtos  ›  Servers  › 

Mounting Linux hard disk and setting swap partition swap

Shulou Source: shulou.com Published: 2022-06-02 20:48:54 09月22日 Update

Mkswap / dev/sda2

[root@localhost] # swapon / dev/sda2-a

[root@localhost] # free-m

Total used free shared buff/cache available

Mem: 96271 793 95198 9 279 94951

Swap: 8191 0 8191

Write boot self-start

[root@localhost] # tail-1 / etc/fstab

/ dev/sda2 swap swap defaults 0 0

[root@localhost ~] #

Tags: Hard disk Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft macOS Xiaomi MySQL Docker