ubuntu get to local disk

  1. Open a terminal window.

  2. Use the "lsblk" command to list available block devices and identify the target local disk.

  3. If the disk is not mounted, use the "sudo fdisk -l" command to display detailed information about the disks and their partitions.

  4. Create a mount point for the local disk using the "sudo mkdir" command.

  5. Mount the local disk to the created mount point with the "sudo mount" command.

  6. Use the "df -h" command to verify that the local disk is mounted successfully and to view disk space information.

  7. To make the mount persistent across reboots, add an entry to the "/etc/fstab" file using a text editor like "nano" or "vim."

  8. Unmount the local disk using the "sudo umount" command when done with the operation.