首先執行命令:
tail -f /var/log/syslog
然後插入有問題的u盤,tail會列印一些log:
jan 23 09:40:55 zkw-3330 kernel: [1451066.881318] usb 3-1: new high-speed usb device number 61 using xhci_hcd
jan 23 09:40:55 zkw-3330 kernel: [1451066.898140] usb 3-1: new usb device found, idvendor=0781, idproduct=5567
jan 23 09:40:55 zkw-3330 kernel: [1451066.898150] usb 3-1: new usb device strings: mfr=1, product=2, serialnumber=3
jan 23 09:40:55 zkw-3330 kernel: [1451066.898156] usb 3-1: product: cruzer blade
jan 23 09:40:55 zkw-3330 kernel: [1451066.898161] usb 3-1: manufacturer: sandisk
jan 23 09:40:55 zkw-3330 kernel: [1451066.898165] usb 3-1: serialnumber: 20060774101e0202eedf
jan 23 09:40:55 zkw-3330 kernel: [1451066.898676] usb-storage 3-1:1.0: usb mass storage device detected
jan 23 09:40:55 zkw-3330 kernel: [1451066.900344] scsi32 : usb-storage 3-1:1.0
jan 23 09:40:55 zkw-3330 mtp-probe: checking bus 3, device 61: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1"
jan 23 09:40:55 zkw-3330 mtp-probe: bus: 3, device: 61 was not an mtp device
jan 23 09:40:56 zkw-3330 kernel: [1451067.898169] scsi 32:0:0:0: direct-access sandisk cruzer blade 1.26 pq: 0 ansi: 5
jan 23 09:40:56 zkw-3330 kernel: [1451067.898785] sd 32:0:0:0: attached scsi generic sg1 type 0
jan 23 09:40:56 zkw-3330 kernel: [1451067.899778] sd 32:0:0:0: [sdb] 15633408 512-byte logical blocks: (8.00 gb/7.45 gib)
jan 23 09:40:56 zkw-3330 kernel: [1451067.902348] sd 32:0:0:0: [sdb] write protect is off
jan 23 09:40:56 zkw-3330 kernel: [1451067.902352] sd 32:0:0:0: [sdb] mode sense: 43 00 00 00
jan 23 09:40:56 zkw-3330 kernel: [1451067.902656] sd 32:0:0:0: [sdb] write cache: disabled, read cache: enabled, doesn't support dpo or fua
jan 23 09:40:56 zkw-3330 kernel: [1451067.910687] sdb: sdb4
jan 23 09:40:56 zkw-3330 kernel: [1451067.912366] sd 32:0:0:0: [sdb] attached scsi removable disk
jan 23 09:40:56 zkw-3330 kernel: [1451068.146809] fat-fs (sdb4): volume was not properly unmounted. some data may be corrupt. please run fsck.
jan 23 09:40:56 zkw-3330 udisksd[1790]: mounted /dev/sdb4 at /media/zkw/zhou_ke_wen on behalf of uid 1000
jan 23 09:40:56 zkw-3330 kernel: [1451068.395756] fat-fs (sdb4): error, fat_get_cluster: invalid cluster chain (i_pos 0)
jan 23 09:40:56 zkw-3330 kernel: [1451068.395761] fat-fs (sdb4): filesystem has been set read-only
jan 23 09:40:56 zkw-3330 wpa_supplicant[1277]: nl80211: send_and_recv->nl_recvmsgs failed: -33
has been set read-only 說明u盤變成唯讀的了,使用dosfsck修復一下
umount /media/(u盤被掛在後的名字)
//我只執行了第一行命令就解決了
sudo dosfsck -v -a /dev/sdb4
**: Linux下U盤變成唯讀
今天用ubuntu給同學拷貝資料的時候,突然其中乙個資料夾u盤就不能複製和刪除了。再windows7下可以刪除除修改的那個資料夾之外的資料,但修改的那個資料夾死活刪除不掉,唯讀屬性也去不掉。再ubuntu下直接就懵逼了,任何檔案都不能操作了。之前也遇到過這種情況,我當時的解決方法是格式化 u盤,但是...
U盤檔案全部變成唯讀模式的解決辦法
解決方法 1.在linux系統 ubuntu 中執行如下命令 tail f var log syslog 2.插入有唯讀檔案系統故障的u盤 3.觀察命令列輸出 輸出區域性如下 jul 8 16 44 50cslouis pc kernel 15595.155904 fat filesystem er...
Ubuntu系統下U盤變成唯讀檔案系統的處理辦法
之前把u盤借出了,還回來之後我再想用,發現u盤裡的檔案只能讀取或者複製出去,但是不能修改刪除,也不能新增新檔案進來,顯示該u盤是唯讀檔案系統。用了以下方法來解決這個問題 tail f var log syslog該命令詳細介紹看這篇文章 注意 這一步要先在終端執行該命令,再把u盤插入電腦 write...