What are the steps to mount partitions in Ubuntu system?

  1. Firstly, open the terminal and type the command sudo fdisk -l to check the hard disk partition situation.
  2. Identify the partition to be mounted, then create a mount point (directory), such as /mnt/data, for mounting the partition.
  3. Enter the command “sudo mkdir /mnt/data” to create a mount point.
  4. Mount the partition by using the command sudo mount /dev/sdX /mnt/data, where /dev/sdX is the name of the partition to be mounted.
  5. Optional: To automatically mount a partition at system startup, you can edit the /etc/fstab file and add a line similar to /dev/sdX /mnt/data ext4 defaults 0 0.
  6. To check if the mounting was successful, you can enter the command df -h to view the mounting status.
  7. To unmount a partition, type the command sudo umount /mnt/data.
Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds