Leif160519的blog Leif160519的blog

——————

目录
Ubuntu在无法进入图形界面,只能在TTY界面需要挂载以及查看U盘或移动硬盘内容的方法!
/  

Ubuntu在无法进入图形界面,只能在TTY界面需要挂载以及查看U盘或移动硬盘内容的方法!

一、首先运行命令:

sudo fdisk -l

查看磁盘信息,可以得到其路径,如“/dev/sdb 1”,磁盘格式为fat 32。

二、运行挂载命令:

sudo mount -t vfat /dev/sdb1 /media

注:若U盘为NTFS格式的话,挂载命令为:

sudo mount -t nfs /dev/sdb1 /media

三、运行命令:

cd /media

进入挂载U盘的主目录,运行:

ls

查看目录下的文件。

四、卸载U盘

sudo umount /media/

“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill

标  题Ubuntu在无法进入图形界面,只能在TTY界面需要挂载以及查看U盘或移动硬盘内容的方法!
作  者Leif160519
出  处https://github.icu/articles/2019/08/22/1566462348969.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!