博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ubuntu手动挂载U盘的方法
阅读量:4110 次
发布时间:2019-05-25

本文共 802 字,大约阅读时间需要 2 分钟。

Ubuntu手动挂载U盘的方法
 
有时候只有Ubuntu server,有时候Ubuntu Desktop不能自动挂载U盘。这个时候需要一些命令:
1.在插入U盘前和插入U盘后,都输入同一个命令,检查多了哪个盘
cat /proc/partitions
这里我发现多了
   8       16    7827424 sdb
   8       17    7825423 sdb1
 
sdb是统称,所以新插入的U盘就是/dev/sdb1
 
2.用命令检查新的U盘的文件 格式
 
root@chenshu-System-Product-Name:/# fdisk -l /dev/sdb
 
Disk /dev/sdb: 8015 MB, 8015282176 bytes
247 heads, 62 sectors/track, 1022 cylinders, total 15654848 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001fce0
  www.2cto.com  
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          62    15650907     7825423    c  W95 FAT32 (LBA)
 
看到这里是FAT32格式。
 
3.mount 
mount -t vfat /dev/sdb1 /media/usb
 
注意:  
mount -t 按两次tab键会提示输入什么文件系统类型
/media/usb是我自己创建的目录
 
4.umount
umount /media/usb
 
 
作者 sheismylife

转载地址:http://kklsi.baihongyu.com/

你可能感兴趣的文章
关于Content-Length
查看>>
WebRequest post读取源码
查看>>
使用TcpClient可避免HttpWebRequest的常见错误
查看>>
EntityFramework 学习之一 —— 模型概述与环境搭建 .
查看>>
C# 发HTTP请求
查看>>
初试visual studio2012的新型数据库LocalDB
查看>>
启动 LocalDB 和连接到 LocalDB
查看>>
Palindrome Number --回文整数
查看>>
Reverse Integer--反转整数
查看>>
Container With Most Water --装最多水的容器(重)
查看>>
Longest Common Prefix -最长公共前缀
查看>>
Letter Combinations of a Phone Number
查看>>
Single Number II --出现一次的数(重)
查看>>
Valid Parentheses --括号匹配
查看>>
Generate Parentheses--生成匹配括号(重)
查看>>
Remove Element--原地移除重复元素
查看>>
Remove Duplicates from Sorted Array--从有序数组中移除重复元素
查看>>
Count and Say
查看>>
Gas Station
查看>>
Palindrome Partitioning --回文切割 深搜(重重)
查看>>