You are not logged in.

#1 2017-10-27 20:43:06

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 366

[SOLVED] "input/output error" when running commands on certain folders

Hey guys!

I get "input/output error" when trying to remove some folders from external hard drive (ntfs).

ls -lart
ls: cannot access 'Dan Kenned6 - Are You A Marketing and Sales Clod Or A Sophisticate': No such file or directory
ls: cannot access 'Dan Kenned5 - Copywriting Mastery and Sales Thinking Boot Camp': No such file or directory
ls: cannot access 'Da5 Kennedy - DNA Game Changer': No such file or directory
ls: cannot access 'Da5 Kennedy - How to get what you want': No such file or directory
total 112
d????????? ? ?  ?         ?            ? 'Dan Kenned6 - Are You A Marketing and Sales Clod Or A Sophisticate'
d????????? ? ?  ?         ?            ? 'Dan Kenned5 - Copywriting Mastery and Sales Thinking Boot Camp'
d????????? ? ?  ?         ?            ? 'Da5 Kennedy - How to get what you want'
d????????? ? ?  ?         ?            ? 'Da5 Kennedy - DNA Game Changer'
drwxrwxrwx 1 vb users  4096 Oct 27 15:49 'Dan Kennedy - archive'
drwxrwxrwx 1 vb users  4096 Oct 27 15:49 'Dan Kennedy - Copywriting Seminar-In-A-Box'
drwxrwxrwx 1 vb users  4096 Oct 27 15:49 'Dan Kennedy - Customer appreciation'
drwxrwxrwx 1 vb users  4096 Oct 27 17:58 'Dan Kennedy - How To Automatically Master New Skills'
drwxrwxrwx 1 vb users  4096 Oct 27 18:02 'Dan Kennedy - Advanced Coaching and Consulting High Fee Bootcamp'
drwxrwxrwx 1 vb users  4096 Oct 27 19:42 'Dan Kennedy - Consulting Manuals'
drwxrwxrwx 1 vb users     0 Oct 27 19:42 'Dan Kennedy - High Fee Consulting Bootcamp-PDFs'
drwxrwxrwx 1 vb users  4096 Oct 27 19:44 'Dan Kennedy - Business Building'
drwxrwxrwx 1 vb users 28672 Oct 27 20:39  .
drwxrwxrwx 1 vb users 57344 Oct 27 20:42  ..

sudo fdisk -l
[sudo] password for vb: 
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x0005a151

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048  33320959  33318912  15.9G 83 Linux
/dev/sda2        33320960 399439871 366118912 174.6G  7 HPFS/NTFS/exFAT
/dev/sda3       399439872 446341119  46901248  22.4G  7 HPFS/NTFS/exFAT
/dev/sda4       446341120 976773119 530432000   253G 83 Linux




Disk /dev/sdc: 931.5 GiB, 1000204885504 bytes, 1953525167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0xa70107e7

Device     Boot      Start        End   Sectors   Size Id Type
/dev/sdc1               64    1966079   1966016   960M  7 HPFS/NTFS/exFAT
/dev/sdc2          1966080  659374079 657408000 313.5G  7 HPFS/NTFS/exFAT
/dev/sdc3        659374080 1308590079 649216000 309.6G  7 HPFS/NTFS/exFAT
/dev/sdc4       1308590080 1953523711 644933632 307.5G  7 HPFS/NTFS/exFAT
sudo fsck /dev/sdc3
fsck from util-linux 2.30.2
sudo smartctl --info /dev/sdc3 | grep 'SMART support is:'
SMART support is:     Available - device has SMART capability.
SMART support is:     Disabled
sudo smartctl  --smart=on /dev/sdc3
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.12.14-1-ck-ivybridge] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
Informational Exceptions (SMART) disabled
Temperature warning disabled

I can copy and paste files to and from the partition.

How to delete these folders? Any suggestions?

Thanks in advance!

Edit

sudo smartctl  -H /dev/sdc3
[sudo] password for vb: 
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.12.14-1-ck-ivybridge] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Last edited by amaro (2017-10-28 07:25:01)

Offline

#2 2017-10-27 21:20:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,349

Re: [SOLVED] "input/output error" when running commands on certain folders

What are you using as the kernel driver for the NTFS file system?

It should be https://wiki.archlinux.org/index.php/NTFS-3G


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-10-27 21:30:41

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 366

Re: [SOLVED] "input/output error" when running commands on certain folders

Yes, ntfs-3g.

Offline

#4 2017-10-27 22:07:01

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] "input/output error" when running commands on certain folders

Do you have access to Windows?  If so, try doing a check disk (or whatever it is called now) from within Windows on that drive.  It looks like the filesystem got corrupted somehow, and Linux doesn't really have any good tools to fix ntfs.

Offline

#5 2017-10-28 07:28:01

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 366

Re: [SOLVED] "input/output error" when running commands on certain folders

win7 fixed the errors.

Offline

Board footer

Powered by FluxBB