[lkml]   [2003]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [IDE] trying to make MO drive work with ide-floppy/ide-cd
    On Tue, May 06 2003, Pascal Schmidt wrote:
    > On Tue, 6 May 2003, Jens Axboe wrote:
    > > It barfs at a lot of commands, not surprisingly. ide-cd really has no
    > > concept of devices other than cd/dvd.
    > I'm not complaining about those messages. ;)

    No, but clearly something is wrong. At least that you should agree on.
    And knowing hardware, there are probably drives out there that just wont
    work because of the various "weird" commands it gets sent.

    Just because it happens to work for you doesn't make it a viable

    > > You need to patch cdrom.c as well:
    > >
    > > if ((fp->f_mode & FMODE_WRITE) && !CDROM_CAN(CDC_DVD_RAM))
    > > return -EROFS;
    > >
    > Simply removing that test doesn't get me working write support,
    > I still get:
    > # mount -t ext2 /dev/hde /mnt/mo
    > mount: block device /dev/hde is write-protected, mounting read-only
    > The disk is not write-protected, I checked.

    Shouldn't matter, the drive has to check for that particular bit (and it
    obviously does not). Are we still talking 2.5 or 2.4?

    > >> What can I do to help get this drive supported under 2.5/ide-cd?
    > > I'm tempted to say ide-scsi + sd, but that goes against my principles...
    > > It shouldn't be too much work to make ide-cd work gracefully.
    > Well, I'm not familiar with the code at all, so I don't know where
    > to look.

    You can play with the c code, you've demonstrated that much so far. So
    play some more, find out which commands are aborted and why. The log
    messages even tell you which ones. Now find out if these are necessary
    for proper MO functionality or not. Or maybe some vital commands are
    even missing, lots of fun there :). But it really should not be very

    Jens Axboe

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:35    [W:0.020 / U:12.568 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site