After the new hard disk is installed, run the sudofdisk-l command to view information about all disks. Sudodf-h displays all hard disk information loaded to the system in Mb. Run the sudocfdisk partition command (use 83 when selecting the type of ext3). In this example, sudocfdisk/dev/sdc formatted the hard disk in the partition. After the sudomkfs. ext3/dev/sdc was loaded successfully, run the mount command.
After installing the new hard disk of Ubuntu Server, run the sudo fdisk-l command to view information about all disks.
Sudo df-h displays all hard disk information loaded to the system in Mb.
Use the sudo cfdisk command to partition (ext3 uses 83 when selecting a type)
Example: sudo cfdisk/dev/sdc
Format sudo mkfs. ext3/dev/sdc
Edit fstab after the mount command is loaded successfully.
Sudo vim/etc/fstab
Confirm that the newly added hard disk format is partitioned and then load it using the mount command.
Example: sudo mount-a/dev/sdb1/mnt/hd2
The following content: