LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 04-21-2008, 03:51 AM   #1
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Rep: Reputation: 30
cmp command query...


Hello there, last week I used the cmp command because I want to compare the file that I burned in a CD and the original if the same. I used this command: cmp -b /media/cdrom0/filename.txt /home/user/filename.txt. Everything was ok. Now today, when I attempted to compare the two files using the same command, I got an error which is: cmp: /media/cdrom0/filename.txt: input/output error. I'm wondering why this happened, I didn't do anything or changed anything.
 
Old 04-21-2008, 08:51 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
Usually means you didn't mount the CDROM first.
 
Old 04-21-2008, 09:18 PM   #3
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
I already mounted the /dev/hda to /media/cdrom0. Still the same error happens

Last edited by jaepi; 04-21-2008 at 10:19 PM.
 
Old 04-22-2008, 04:06 AM   #4
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,242
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
well perhaps the CD got scratched? i mean that the cd got damaged and now the data was lost?

also please verify that the file does exist:

Code:
ls /media/cdrom0/filename.txt
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
courierldapaliasd query command.. ? ncsuapex Linux - Software 0 04-16-2008 01:46 PM
cmp and 2.6.18 thermite_1033 Slackware 3 10-07-2006 03:55 AM
/bin/sh: cmp: command not found - when compile 2.6.15 again . -=Graz=- Slackware 7 05-05-2006 08:39 PM
cmp command not found in Slackware? vharishankar Slackware 5 04-05-2006 02:09 AM
apt-get query command? bruno buys Debian 1 07-14-2004 08:31 AM


All times are GMT -5. The time now is 04:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration