解決CentOS自動掛載隨身碟/SD Card被識別為唯讀檔案系統

來源:互聯網
上載者:User

今天往隨身碟/SD Card 寫檔案時發現無法寫入,仔細看了下,隨身碟是唯讀許可權,用了N種方法試著解決:

1. chmod u+x /media/usbdisk

     提示“唯讀檔案系統 ”無法更改。

2. sudo mount -o rw -o remount -o user -t vfat /dev/sdb1 /media/usbdisk
    還是出現唯讀檔案系統的提示。

3. 格式化,也是提示“唯讀檔案系統”。。

 

最後,解決方案:

在https://bugs.launchpad.net/ubuntu/+bug/228608
上,Chris Coulson
給的解釋:

This card has filesystem errors without a doubt. They might be minor
and it might work in other devices, but the kernel has mounted it
read-only to prevent the filesystem from being damaged further. Please
run 'sudo dosfsck -v -a /dev/mmcblk0p1' after unmounting the device (do
not do this whilst it is mounted).

 

中文翻譯:產生這個問題的原因是SD卡的檔案系統損壞,作業系統為了防止進一步毀壞檔案系統,而將其設定成了唯讀。修複方法是:卸載裝置後在終端下輸入sudo dosfsck -v -a /dev/mmcblk0p1 即可。

 

檢查檔案系統的方法如下:
在沒掛載SD卡的時候在shell中輸入:tail -f /var/log/syslog,查看動態記錄檔。
然後插入SD卡,可以看到記錄檔的變化,

相關文章

聯繫我們

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