# Tape read error when using cta-readtp

**URL:** <https://cta-community.web.cern.ch/t/tape-read-error-when-using-cta-readtp/440>\
**Category:** General Discussion\
**Created:** [13 August 2026 15:36 UTC](https://cta-community.web.cern.ch/t/tape-read-error-when-using-cta-readtp/440 "2026-08-13T15:36:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![george\_patargias](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@george\_patargias](https://cta-community.web.cern.ch/u/george_patargias)\
**Post date:** [13 August 2026 15:36 UTC](https://cta-community.web.cern.ch/t/tape-read-error-when-using-cta-readtp/440/1 "2026-08-13T15:36:55Z")

</div>

Hello,

We are trying to recover some data from a damaged/dodgy tape using `cta-readtp` tool. Do you know what the following error is

`tapeReadError="Failed ST ioctl (MTFSF) in DriveGeneric::spaceFileMarksForward Errno=5: Input/output error"`

and what can be done if anything?

Many thanks,

George

---

<div class="post-metadata">

**Author:** ![vlado](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/v/779978/32.png) [@vlado](https://cta-community.web.cern.ch/u/vlado)\
**Post date:** [14 August 2026 09:47 UTC](https://cta-community.web.cern.ch/t/tape-read-error-when-using-cta-readtp/440/2 "2026-08-14T09:47:38Z")

</div>

George,

In `/var/log/messages` you should see more sense information about the error.

Check for anything around the same time (same minute and second).

What do you see there? `Medium error`?

Best regards,

Vladimir

---

<div class="post-metadata">

**Author:** ![george\_patargias](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@george\_patargias](https://cta-community.web.cern.ch/u/george_patargias)\
**Post date:** [14 August 2026 10:37 UTC](https://cta-community.web.cern.ch/t/tape-read-error-when-using-cta-readtp/440/3 "2026-08-14T10:37:02Z")

</div>

Hi Vlado,

Yes, for every instance of the above error I see in the following in `/var/log/messages`

```auto
ug 13 16:36:10 getafix-ts24 kernel: st 6:0:0:0: [st1] Sense Key : Medium Error [current]
Aug 13 16:36:10 getafix-ts24 kernel: st 6:0:0:0: [st1] Add. Sense: Medium format corrupted

```

Best,

George

---

<div class="post-metadata">

**Author:** ![vlado](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/v/779978/32.png) [@vlado](https://cta-community.web.cern.ch/u/vlado)\
**Post date:** [14 August 2026 11:12 UTC](https://cta-community.web.cern.ch/t/tape-read-error-when-using-cta-readtp/440/4 "2026-08-14T11:12:02Z")

</div>

George,

Thanks for checking these details.

In this case, I would repack the tape as soon as possible. to make sure the data is safe.

Make sure that when repacking, that area is tried using multiple tape drives.

Let me know if you need more help. Best regards,

Vladimir

---

<div class="post-metadata">

**Author:** ![george\_patargias](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@george\_patargias](https://cta-community.web.cern.ch/u/george_patargias)\
**Post date:** [21 August 2026 07:50 UTC](https://cta-community.web.cern.ch/t/tape-read-error-when-using-cta-readtp/440/5 "2026-08-21T07:50:47Z")

</div>

Thanks Vlado, these are the files remaining on tape after repacking.

Noted your suggestion to try using multiple drives!

Best,

George

---

<div class="post-metadata">

**Author:** ![george\_patargias](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@george\_patargias](https://cta-community.web.cern.ch/u/george_patargias)\
**Post date:** [21 August 2026 08:37 UTC](https://cta-community.web.cern.ch/t/tape-read-error-when-using-cta-readtp/440/6 "2026-08-21T08:37:12Z")

</div>

The difficulty we have with the reading of data from tapes are all related with the media damage caused by increased drive humidity. I have opened a new thread on this issue here, [TS1170 drives and humidity](https://cta-community.web.cern.ch/t/ts1170-drives-and-humidity/442)
