How to mount extra disks so aaPanel detects them
Note: mounting disks requires a shutdown
Note: mounting disks requires shutting the machine down
Please log in with root privileges.
- Run fdisk -l on the command line
You can see the disk to be mounted (vdb). If you don't see one, re-add the disk and try again.
fdisk /dev/vdb
Enter in order: n, p, 1, Enter, Enter, wq
Here vdb is the name of the data disk we saw above; if yours is different, replace it with your real disk name. If it's the same as mine, just copy it.
- Format as an ext3 filesystem
Command: mkfs.ext3 /dev/vdb
- Create a directory: mkdir /home
- Mount the partition: mount /dev/vdb /home
- Write to fstab to auto-mount on boot: echo '/dev/vdb /home ext3 defaults 0 0' >> /etc/fstab
- Run df -h to check the mount succeeded
You can log in to aaPanel and see the mounted disk to confirm success.