On Thu, Apr 22 1999, Cristian Busulari wrote:
> Recently I upgraded to kernel version 2.2.5 and my Optics Storage 8000
> AT Cdrom Drive stop working.
>
> When I try to mount a cd this error message appear:
>
> [root@cami: /root]# mount -t iso9660 /dev/optcd /cdrom/
> ll_rw_block: device 11:00: only 1024-char blocks implemented (2048)
> isofs_read_super: bread failed, dev=11:00, iso_blknum=16, block=16
> mount: wrong fs type, bad option, bad superblock on /dev/optcd,
> or too many mounted file systems
The optcd doesn't set the hard+soft block sizes, either. Try this
patch.
-- * Jens Axboe <axboe@image.dk> * Linux CD-ROM Maintainer--wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="optcd.diff"
--- optcd.c~ Thu Apr 22 22:37:14 1999 +++ optcd.c Thu Apr 22 22:46:04 1999 @@ -100,6 +100,10 @@ #else #define DEBUG(x) #endif + +static int blksize = 2048; +static int hsecsize = 2048; + /* Drive hardware/firmware characteristics Identifiers in accordance with Optics Storage documentation */ @@ -2061,6 +2065,8 @@ return -EIO; } + hardsect_size[MAJOR_NR] = &hsecsize; + blksize_size[MAJOR_NR] = &blksize; blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST; read_ahead[MAJOR_NR] = 4; request_region(optcd_port, 4, "optcd");
--wRRV7LY7NUeQGEoC--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/