Ubuntu 手動掛載隨身碟

來源:互聯網
上載者:User
有時候只有Ubuntu server,有時候Ubuntu Desktop不能自動掛載隨身碟。這個時候需要一些命令:
1.在插入隨身碟前和插入隨身碟後,都輸入同一個命令,檢查多了哪個盤
cat /proc/partitions
這裡我發現多了
   8       16    7827424 sdb
   8       17    7825423 sdb1

sdb是統稱,所以新插入的隨身碟就是/dev/sdb1

2.用命令檢查新的隨身碟的檔案系統格式
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

   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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.