Ubuntu下提示U盘没有些权限的只能读不能写

https://blog.csdn.net/slj_win/article/details/50349976
Ubuntu下提示U盘没有些权限的只能读不能写

在Windows下,U盘能够正常地读写文件(能复制粘贴),但发现有个文件打不开。然后在Ubuntu LInux下,U对U盘只能读不能写。提示:Read only system.

参考:https://bugs.launchpad.net/ubuntu/+bug/228608

1,# tail -f /var/log/syslog  查看文件系统的动态信息

May 19 21:31:28 controller kernel: [284792.451452] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

2,df -h 确定U盘的磁盘基本情况

/dev/sdb1        15G  7.8G  6.9G  54% /media/Hadoop/disk

3,运行命令:# fsck -C -a /dev/sdb1  进行自动修复...居然修复成功,而且打不开的文件也完好无缺能够打开了。感叹linux的强大。

阅读更多

U盘只能读,不能写

04-20

昨天就给U盘里面存了一些资料,今天使用的时候发现只要对U盘做删除,剪切,写入操作,explorer进程就会崩溃,但是数据可以读出来,而且没有被破坏,格式化提示“格式化未成功”,尝试了U盘量产工具,结果还是没弄好,在Ubuntu下,系统自动挂在后,只要做在windows相同的动作,U盘会被自动卸载,使用rnrnmount -t vfat /dev/sda1 /mntrnrn命令对其挂载,提示如下错误rn[code=C/C++]rnmount: wrong fs type, bad option, bad superblock on /dev/sda1,rn missing codepage or helper program, or other errorrn 系统日志中可能有一些重要的信息,rn 试试用 dmesg | tail 之类的命令查看。rnrn[/code]rnrn使用dmesg命令查看,发现如下错误rn[code=C/C++]rn[ 2275.596790] FAT-fs (sda1): bogus number of reserved sectorsrn[ 2275.596799] FAT-fs (sda1): Can't find a valid FAT filesystemrn[ 2354.260056] hub 1-0:1.0: unable to enumerate USB device on port 4rn[ 2354.756036] usb 1-4: new high speed USB device number 4 using ehci_hcdrn[ 2355.140254] usbcore: registered new interface driver uasrn[ 2355.180606] Initializing USB Mass Storage driver...rn[ 2355.180819] scsi2 : usb-storage 1-4:1.0rn[ 2355.184151] usbcore: registered new interface driver usb-storagern[ 2355.184157] USB Mass Storage support registered.rn[ 2356.188827] scsi 2:0:0:0: Direct-Access PNY USB 2.0 FD 0.00 PQ: 0 ANSI: 2rn[ 2356.196120] sd 2:0:0:0: Attached scsi generic sg2 type 0rn[ 2356.196801] sd 2:0:0:0: [sdb] 15773696 512-byte logical blocks: (8.07 GB/7.52 GiB)rn[ 2356.197285] sd 2:0:0:0: [sdb] Write Protect is offrn[ 2356.197290] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00rn[ 2356.197784] sd 2:0:0:0: [sdb] Asking for cache data failedrn[ 2356.197789] sd 2:0:0:0: [sdb] Assuming drive cache: write throughrn[ 2356.201413] sd 2:0:0:0: [sdb] Asking for cache data failedrn[ 2356.201421] sd 2:0:0:0: [sdb] Assuming drive cache: write throughrn[ 2356.202779] sdb: sdb1rn[ 2356.215662] sd 2:0:0:0: [sdb] Asking for cache data failedrn[ 2356.215669] sd 2:0:0:0: [sdb] Assuming drive cache: write throughrn[ 2356.215675] sd 2:0:0:0: [sdb] Attached SCSI removable diskrn[ 2403.120094] usb 1-4: reset high speed USB device number 4 using ehci_hcdrn[ 2413.252150] usb 1-4: device firmware changedrn[ 2413.252195] usb 1-4: USB disconnect, device number 4rn[ 2413.252638] sd 2:0:0:0: Device offlined - not ready after error recoveryrn[ 2413.253856] sd 2:0:0:0: [sdb] Unhandled error codern[ 2413.253863] sd 2:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OKrn[ 2413.253869] sd 2:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 1c 08 00 00 01 00rn[ 2413.253883] end_request: I/O error, dev sdb, sector 7176rn[ 2413.264225] FAT-fs (sdb1): FAT read failed (blocknr 7113)rn[ 2413.264628] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266140] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266216] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266238] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266259] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266280] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266301] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266322] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266348] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266367] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266386] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266404] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266423] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266442] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266461] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.266480] FAT-fs (sdb1): FAT read failed (blocknr 7095)rn[ 2413.388077] usb 1-4: new high speed USB device number 5 using ehci_hcdrn[ 2423.520186] usb 1-4: string descriptor 0 read error: -110rn[ 2428.520106] usb 1-4: can't set config #1, error -110rn[ 2432.411500] FAT-fs (sda1): bogus number of reserved sectorsrn[ 2432.411509] FAT-fs (sda1): Can't find a valid FAT filesystemrn[/code]rnrn求硬件高手解释一下出这个错误的原因

没有更多推荐了,返回首页