Cant delete a folder - read only file system
So i copied my fonts directory off my windows machine to my RPI via FTP the other week. Today i logged on to my server (rpi) and tried adding some fonts to the same folder. Suddenly found that not only was i unable to access the folder, i couldn't even delete it.
chmod: cannot access ‘fonts/?????j??.\033??/??J?????.i\030(/????\030{?\001.6ic’: Input/output error Anyone offer some advice please :) Thanks muchly |
Quote:
Code:
smartctl -t long /dev/sXX |
dont have that command on the rpi
|
Quote:
|
sudo smartctl -t long /dev/sdb1
smartctl 6.4 2014-10-07 r4002 [armv7l-linux-4.4.38-v7+] (local build) Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org Long (extended) offline self test failed [badly formed scsi parameters] |
Quote:
Code:
smartctl -d sat -a /dev/sXX |
sudo smartctl -d sat -a /dev/sdb1
smartctl 6.4 2014-10-07 r4002 [armv7l-linux-4.4.38-v7+] (local build) Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org Read Device Identity failed: scsi error badly formed scsi parameters A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. |
You appear to have a disk drive that is looking up at the sky from its grave ...
|
its a usb flash pen formatted in fat
|
Quote:
Code:
smartctl -a /dev/sdb1 |
=== START OF INFORMATION SECTION ===
Vendor: Generic Product: Flash Disk Revision: 8.07 User Capacity: 15,938,355,200 bytes [15.9 GB] Logical block size: 512 bytes Rotation Rate: 29547 rpm Logical Unit id: 0x4945450005080f000x200049454505080f Serial number: 8 Device type: disk Local Time is: Mon Aug 28 14:22:10 2017 UTC SMART support is: Available - device has SMART capability. SMART support is: Enabled Temperature Warning: Disabled or Not Supported === START OF READ SMART DATA SECTION === SMART Health Status: OK Error Counter logging not supported Device does not support Self Test logging |
Quote:
Code:
fsck.vfat -f /dev/sdb1 |
I think i know what is up and its a heart sinking realisation...The drive in question was bought as a storage drive for my PiDP8-i server. The drive is over half full, so what happens when a half full usb pen starts going funky all of a sudden? Probably means the flash drive is fake and not really 16gb..Ughh this is really annoying, will have to wait till i get home on Wednesday and hope i can recover some data off it.
The above command flagged up a load of files which i didn't even know were pooched :-/ |
Quote:
|
Solved the problem, the usb pen i was using turned out to be fake. Instead of 16gb, its actually more like 13.5gb. Looks like when i came close to filling it, I triggered a host of issues with the partition. Thanks again everyone for your help!
|
All times are GMT -5. The time now is 12:49 PM. |