Ubuntu: Mount The Drive From Command Line

use the mount command.

# Open a command-line terminal (select Applications > Accessories > Terminal), and then type the following command to mount /dev/sdb1 at /media/guo/4T.

 You need to create a mount point using the mkdir command. This will be the location from which you will access the /dev/sdb1 drive.
  $ sudo mkdir /media/guo/4T


To mount the drive, enter:
  $ sudo mount /dev/sdb1 /media/guo/4T
  $ df -H
To view files cd to /media/guo/4T, enter:
  $ cd /media/guo/4T
  $ ls -l

posted @ 2020-06-20 03:33  nana2019  阅读(67)  评论(0)    收藏  举报