linuxmountpartitionguid-partition-table

Erased all partitions and the partition table on the external hard disc


How to create a partition on an external hard disc and mount it in linux when all the partitions and the partition table are erased?


Solution

  • In the usual way. Just connect the external disk drive to the Linux machine and verify it shows up in the output of lsblk. Then you can format it via fdisk (or any other partitioning tool), and then create a filesystem on it via mkfs. Eventually, you mount it and the disk is ready to use.