Why 'tar' command gives error "tar: /dev/st0: Cannot read: Cannot allocate memory" when reading contents of tape ?

Solution Verified - Updated -

Issue

  • When reading the contents of tape, with tar -t /dev/st0 gets error message, tar: /dev/st0: Cannot read: Cannot allocate memory
[root@example dev]# tar tvf /dev/st0         
tar: /dev/st0: Cannot read: Cannot allocate memory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
[root@example dev]

Environment

  • Red Hat Enterprise Linux (All Versions)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.