LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-19-2015, 01:21 AM   #1
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Debian Gnu/Linux 7.8.0
Posts: 116

Rep: Reputation: 15
puzzled


Having installed Debian 7.8, I need to get something
from my backup DVD
Quote:
root@palantir:/media/cdrom0# cp 2014-09* /user
cp: reading `2014-09-01.tar.bz2': Input/output error
cp: failed to extend `/user/2014-09-01.tar.bz2': Input/output error
what on earth is wrong?
 
Old 02-19-2015, 04:06 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,172

Rep: Reputation: Disabled
You appear to have a compressed file of your backup, 2014-09-01.tar.bz2, so either uncompress it or use the same tool you built it with to extract the files you want. (See man bzip2)(bunzip2 --help at the command line for a quick reference.)
(bunzip2 -d 2014-09-01.tar.bz2 should uncompress your backup in the directory you are in.)

Edit: Then use tar to extract individual files, or all files, (tar -xfv 2014-09-01.tar). (See man tar)

Last edited by fatmac; 02-19-2015 at 04:11 AM.
 
Old 02-19-2015, 04:39 AM   #3
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by fatmac View Post
You appear to have a compressed file of your backup, 2014-09-01.tar.bz2, so either uncompress it or use the same tool you built it with to extract the files you want.
I thought along the same line for a moment. But then I reconsidered it and couldn't explain why cp should bother about the type and contents of a file. Obviously, the file being copied is 2014-09-01.tar.bz2, and the first message line tells me that the file isn't readable. For me, that looks like a corrupt CD/DVD, which isn't all that unusual.

However, I'm a bit confused about the second message line failed to extend '/user/2014-09-01.tar.bz2', which suggests that cp tried to modify (extend) the file in some way - though it was only specified as the source!

Very strange.

[X] Doc CPU
 
Old 02-19-2015, 04:51 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
It's definitely input/output error.

I think what the error message means is that cp copied some data but can't copy/extend the rest.

If cdrom is bad if you have skill try cleaning the lens or ask for service.

You can clean the cd/dvd with a soft cloth made wet by distilled water in spiral fashion from inward to outward. After that let it dry so that moisture is not present.
Then see if it works.

You should read cd faq from web.
 
Old 02-19-2015, 05:33 AM   #5
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by veerain View Post
I think what the error message means is that cp copied some data but can't copy/extend the rest.
yes, you're right, the second message is about the target file. I should've seen it - after all, I even quoted the message refering to the /user directory! ;-)

So the first message means the source file can't be read, and the second means the target file cannot be completed as a consequence.

Quote:
Originally Posted by veerain View Post
If cdrom is bad if you have skill try cleaning the lens or ask for service.
I guess a bad media is more likely than a bad drive.

[X] Doc CPU
 
Old 02-20-2015, 01:16 AM   #6
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Debian Gnu/Linux 7.8.0
Posts: 116

Original Poster
Rep: Reputation: 15
I'm trying to recover ~/.skype.
I agree that media is possibly the cause. *BUT* not 6 different dvds!
And since I have 100s of backup dvds that have .skye on them, I think that
6 is a fair sample.
There is something more profound involved.
 
Old 02-20-2015, 01:49 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,772

Rep: Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058
there can be some related messages in /var/log
 
Old 02-20-2015, 02:11 AM   #8
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Debian Gnu/Linux 7.8.0
Posts: 116

Original Poster
Rep: Reputation: 15
Where in /var/log?
What I do (or rather what cron does) is - - -
1) copy /home to an external drive
2) tar the directory
3) bunzip2 the image
then I burn the image to dvd with k3b

At the moment I have 2 concerns
1) I can't recover .skype
2) all my back up dvds seem to be useless.

All of this was done using MEPIS (latest was wheezy derived)
now 2 years old.
 
Old 02-20-2015, 03:51 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,772

Rep: Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058
usually in /var/log/messages, but can be configured.... But you can easily check if something was written at the time of i/o error
you can try another drive too.
 
Old 02-25-2015, 11:25 PM   #10
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Debian Gnu/Linux 7.8.0
Posts: 116

Original Poster
Rep: Reputation: 15
Debian 7.8.0 - can't reaad dvd backups

Still got problemss recovering a backup dvd
Quote:
/home/tmp $ cp /media/cdrom/2012-01-09.tar.gz .
cp: reading `/media/cdrom/2012-01-09.tar.gz': Input/output error
cp: failed to extend `./2012-01-09.tar.gz': Input/output error
Quote:
Feb 26 13:12:40 palantir kernel: [93626.009070] attempt to access beyond end of device
Feb 26 13:12:40 palantir kernel: [93626.009071] sr0: rw=0, want=3516196, limit=2097151
Feb 26 13:15:21 palantir kernel: [93786.032112] attempt to access beyond end of device
Feb 26 13:15:21 palantir kernel: [93786.032115] sr0: rw=0, want=3516140, limit=2097151
root@palantir:/var/log# exit
exit
/var/log $ ulimit
unlimited
/var/log $
The Errno = 5. (and not errno.h)

I went back 4 years to find a dvd that worked - thats another 6 I've tried.
I have dvds of movies older than this which still play, so why is Debian 7.8
taking such an offence to my backup data. The ones I tried were .gz
tar files: the one I found to work was simply a tar image.

Last edited by beckwith; 02-26-2015 at 12:19 AM.
 
Old 02-26-2015, 12:59 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,772

Rep: Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058Reputation: 7058
was that disk/file readable at all?
 
Old 02-26-2015, 01:35 AM   #12
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Debian Gnu/Linux 7.8.0
Posts: 116

Original Poster
Rep: Reputation: 15
external terabyte drive

What I noticed was the drive was mounted, but appeared to be empty.
So I rebooted. Then found GRUB in a mess. So after I recovered
GRUB I found gparted showed the drive as unrecognisable. After
install gpart (what ran for some hours) it siad there were
file systems on the drive. Hence I reformatted it.
 
  


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
I am puzzled...help! yaximik Linux - Newbie 10 07-03-2011 07:08 PM
need help on puzzled sir_com Linux - General 1 06-06-2008 12:03 AM
puzzled... earlysame55 Linux - Newbie 2 04-13-2008 03:54 AM
VNC - puzzled madlm Linux - Software 3 06-18-2004 01:48 PM
Puzzled by the Reviews page Bebo LQ Suggestions & Feedback 6 03-15-2004 10:45 AM

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

All times are GMT -5. The time now is 07:26 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