Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: dd fails with I/O error when trying to create .iso

  1. #1
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    237
    Distro
    Ubuntu 20.04 Focal Fossa

    dd fails with I/O error when trying to create .iso

    Hello all!

    Obligatory I am not a pirate!

    I'm trying to create an .iso image of an old game cd but when I run 'dd' the cd drive sounds like it's dying a miserable death and then the copy fails...
    Code:
    dd if=/dev/sr0 of=game.iso bs=2048
    The game is Freelancer if anyone is wondering, and it is mine, I paid about £5 for it on eBay. The thing is my PC doesn't have a disk drive but my old laptop does, so I'm trying to get an .iso going so I can transfer it to my PC and play it. Could it be that the disk is write protected? or is it an error on my part?

    I have another old game disk that copies fine using dd, so I'm guessing it's not the laptops CD drive, although it's not conclusive.

    Any advice is appreciated

  2. #2
    Join Date
    Jun 2018
    Beans
    155

    Re: dd fails with I/O error when trying to create .iso

    The CD may have some sort of copy protection preventing it from being read like you want to. Another thing is that you have set "game.iso" to be created in the working directory which may be in a write protected area. I'd suggest to use a more restrictive path, like "~/game.iso" or whatever.

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    15,564
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: dd fails with I/O error when trying to create .iso

    When does the copy fail? Right away or later? Could it be a disk space problem? What is the actual error message you receive?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  4. #4
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,758
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: dd fails with I/O error when trying to create .iso

    When you create the .iso, you only read the optical disk, not write it. And it's meant to be read, or it would be useless. Copy protection works when the optical disk drive has an anti-feature to recognise the copy-protect code and refuses to burn if that's present.

    It sounds like a low-level read error. If the disk drive is OK, it's probably the disk. Maybe cleaning the disk helps.

  5. #5
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,195
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: dd fails with I/O error when trying to create .iso

    Many old games CDs had deliberately introduced errors on the disk so that they could not be copied in the normal way. I think the games would often check that certain sectors were unreadable with I/O errors before they would play. Reproducing disks with I/O errors is very difficult. It sounds to me as though you have one of those.

  6. #6
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: dd fails with I/O error when trying to create .iso

    If you are going to use dd for this, I would try something similar to the following and specify the destination

    Code:
    dd if=/dev/sr0 of=/path_to/destination_dir bs=2048
    Last edited by QIII; December 16th, 2020 at 08:14 PM.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  7. #7
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: dd fails with I/O error when trying to create .iso

    Just my 2 cents, If there are read errors while reading the source, "conv=sync,noerror" is necessary to prevent dd from stopping on error and performing a dump.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  8. #8
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    237
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: dd fails with I/O error when trying to create .iso

    Quote Originally Posted by dinkidonk View Post
    The CD may have some sort of copy protection preventing it from being read like you want to. Another thing is that you have set "game.iso" to be created in the working directory which may be in a write protected area. I'd suggest to use a more restrictive path, like "~/game.iso" or whatever.
    Sorry my bad, when I wrote "of=game.iso" what I actually meant was "/path/to/game.iso" but your right, a good point.

    Quote Originally Posted by SeijiSensei View Post
    When does the copy fail? Right away or later? Could it be a disk space problem? What is the actual error message you receive?
    It fails immediately, the drive spins up and then drops to a really low rpm while making erratic drive noises. I don't think it's a disk space problem as the laptop only has a minimal ubuntu 20.04 install and very little else, and from memory it's got a 512 GB drive. The actual output from 'dd' is below...
    Code:
    dd: error reading '/dev/sr0': Input/output error
    844+0 records in
    844+0 records out
    1728512 bytes (1.7 MB, 1.6 MiB) copied, 25.3084 s, 68.3 kB/s
    ...pretty vauge, I looked through the info page to see if there is a way to get more detailed debug information but I can't see anything.

    Quote Originally Posted by 1fallen View Post
    Just my 2 cents, If there are read errors while reading the source, "conv=sync,noerror" is necessary to prevent dd from stopping on error and performing a dump.
    I tried this after you suggested it, and while the process does continue, the drive still makes the same crazy noises mentioned above, and it writes around 50 KiB/s. Even if I left it for a very long time I think the resulting file would be junk :/

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: dd fails with I/O error when trying to create .iso

    This would be where I used ddrescue instead of dd.

    Sometimes ebay purchases aren't the best. I've bought some used games from local used game/cd/dvd stores and about 1:20 doesn't work. That's the chance we take. I'll keep doing it too. The risk-reward is acceptable to me.

  10. #10
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    237
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: dd fails with I/O error when trying to create .iso

    The thing is the game plays fine on a windows machine, just wont let me copy the disk, the same with a copy of Max Payne 1 that I have, plays fine but dd fails immediately. The impression I'm getting from reading these replies is that it's not totally common for that to happen and it may be some reason other than copy protection...

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •