LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cmp command query... (https://www.linuxquestions.org/questions/linux-software-2/cmp-command-query-636738/)

jaepi 04-21-2008 03:51 AM

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.

chrism01 04-21-2008 08:51 PM

Usually means you didn't mount the CDROM first.

jaepi 04-21-2008 09:18 PM

I already mounted the /dev/hda to /media/cdrom0. Still the same error happens

konsolebox 04-22-2008 04:06 AM

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


All times are GMT -5. The time now is 10:15 PM.