linux掛載隨身碟的指令

來源:互聯網
上載者:User

linux掛載隨身碟的指令 步驟如下:# fdisk -l    //找出你隨身碟的裝置檔案名稱;# mkdir /mnt/flash      //建立隨身碟的裝置掛在地址;#mount -t vfat -o iocharset=cp950  /dev/sdb1  /mnt/flash       //掛在隨身碟;# df         //顯示掛在;PS:將隨身碟重新掛載:# mount -o remount , rw ,auto/當你進入單使用者維護模式時,你的根目錄會被系統掛載為唯讀,這時候這個命令就太重要了。PS:將/home 這個目錄掛載到 /mnt/home下面:# mkdir  /mnt/home# mount  --bind   /home   /mnt/home# ls  -lid  /home  /mnt/home# mount -l取消掛載只需要:# umount  裝置名稱或掛載點-f :強制卸載;-n:不更新 /etc/mtab的情況下卸載; 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.