LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-28-2017, 07:53 AM   #1
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Rep: Reputation: Disabled
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
 
Old 08-28-2017, 08:00 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by haemogoblin View Post
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.
 
Old 08-28-2017, 08:31 AM   #3
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
dont have that command on the rpi
 
Old 08-28-2017, 08:36 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by haemogoblin View Post
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).
 
Old 08-28-2017, 08:46 AM   #5
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
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]
 
Old 08-28-2017, 08:49 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by haemogoblin View Post
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.
 
Old 08-28-2017, 08:51 AM   #7
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-28-2017, 08:55 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,235
Blog Entries: 4

Rep: Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262
You appear to have a disk drive that is looking up at the sky from its grave ...
 
Old 08-28-2017, 08:57 AM   #9
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
its a usb flash pen formatted in fat
 
Old 08-28-2017, 08:58 AM   #10
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by haemogoblin View Post
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
 
Old 08-28-2017, 09:22 AM   #11
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
=== 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
 
Old 08-28-2017, 09:31 AM   #12
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by haemogoblin View Post
=== 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.

Last edited by jsbjsb001; 08-28-2017 at 09:32 AM.
 
Old 08-28-2017, 10:03 AM   #13
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
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 :-/
 
Old 08-28-2017, 10:06 AM   #14
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by haemogoblin View Post
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?
 
Old 09-01-2017, 10:42 AM   #15
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect one file in a folder and delete everything i that folder. Entropy1024 Linux - Newbie 6 12-18-2016 12:30 PM
delete a html file along with its associated folder beopen Linux - General 4 08-17-2014 12:43 PM
HOW I can delete the ~/.gconf/system/networking folder. silverwilluk Linux - Newbie 3 03-28-2012 01:43 PM
Find folders with ONLY one specific file in and delete file and folder - How ? gedi1 Linux - Newbie 5 10-21-2009 08:09 PM
Help create perl script for delete file/folder sportivo888 Linux - Newbie 5 12-05-2007 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration