LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cant delete a folder - read only file system (https://www.linuxquestions.org/questions/linux-software-2/cant-delete-a-folder-read-only-file-system-4175612775/)

haemogoblin 08-28-2017 07:53 AM

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

jsbjsb001 08-28-2017 08:00 AM

Quote:

Originally Posted by haemogoblin (Post 5752816)
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

Check your disk by running the following, in a terminal;

Code:

smartctl -t long /dev/sXX
Replace "sXX" with the actual device name. Post output of results.

haemogoblin 08-28-2017 08:31 AM

dont have that command on the rpi

jsbjsb001 08-28-2017 08:36 AM

Quote:

Originally Posted by haemogoblin (Post 5752831)
dont have that command on the rpi

It's usually in a package called "smartmontools", try and open your package manager and install it. Then run the command in post #2 (and post results of it).

haemogoblin 08-28-2017 08:46 AM

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]

jsbjsb001 08-28-2017 08:49 AM

Quote:

Originally Posted by haemogoblin (Post 5752840)
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]

Try the following instead;

Code:

smartctl -d sat -a /dev/sXX
Once again, replace "sXX" with actual device name.

haemogoblin 08-28-2017 08:51 AM

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.

sundialsvcs 08-28-2017 08:55 AM

You appear to have a disk drive that is looking up at the sky from its grave ...

haemogoblin 08-28-2017 08:57 AM

its a usb flash pen formatted in fat

jsbjsb001 08-28-2017 08:58 AM

Quote:

Originally Posted by haemogoblin (Post 5752846)
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.

Could you try the following to confirm;

Code:

smartctl -a /dev/sdb1

haemogoblin 08-28-2017 09:22 AM

=== 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

jsbjsb001 08-28-2017 09:31 AM

Quote:

Originally Posted by haemogoblin (Post 5752861)
=== 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

Try the following to check the file system on it;

Code:

fsck.vfat -f /dev/sdb1
Another possible cause is you did not un-mount the disk properly, mount and check it in Windows and make sure you un-mount it properly afterwards.

haemogoblin 08-28-2017 10:03 AM

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 :-/

jsbjsb001 08-28-2017 10:06 AM

Quote:

Originally Posted by haemogoblin (Post 5752880)
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 :-/

Could you post the output of fsck?

haemogoblin 09-01-2017 10:42 AM

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.