linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mount failure, SCSI emulation, 2.2.20pre9
@ 2001-08-24  1:46 Tim Moore
  2001-08-25  6:51 ` Tim Moore
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tim Moore @ 2001-08-24  1:46 UTC (permalink / raw)
  To: kernel

SCSI emulation fails, same CD-R using ATAPI is OK.
Any suggestions as to where else to look?

Other iso9660 CD-R's mount in the emulation drive.

rgds,
tim.

--- SCSI emulation fails ---
[tim@abit tim]# ls -l /dev/cdrom
lrwxrwxrwx    1 root     root            3 Feb  2  2001 /dev/cdrom -> sr0
[tim@abit tim]# cat /proc/version
Linux version 2.2.20p9ai (root@abit) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #5 Thu Aug 23 17:56:21 PDT 2001
[tim@abit tim]# mount -V
mount: mount-2.10r
[tim@abit tim]# strace mount -t iso9660 -o ro /dev/cdrom /cdrom
execve("/bin/mount", ["mount", "-t", "iso9660", "-o", "ro", "/dev/cdrom", "/cdrom"], [/* 31 vars */]) = 0
...
lstat("/etc/mtab", {st_mode=S_IFREG|0644, st_size=211, ...}) = 0
stat("/sbin/mount.iso9660", 0xbffff7bc) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV], NULL, 8) = 0
mount("/dev/cdrom", "/cdrom", "iso9660", MS_RDONLY|0xc0ed0000, 0x805a900) = -1 EINVAL (Invalid argument)
rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV], NULL, 8) = 0
...
write(2, "mount: wrong fs type, bad option"..., 104mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
       or too many mounted file systems
) = 104
stat("/dev/cdrom", {st_mode=S_IFBLK|0600, st_rdev=makedev(11, 0), ...}) = 0
open("/dev/cdrom", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 3
ioctl(3, BLKGETSIZE, 0xbffff950)        = -1 EINVAL (Invalid argument)
_exit(32)                               = ?

--- same CD-R, ATAPI works ---
[tim@dell tim]# ls -l /dev/cdrom
lrwxrwxrwx    1 root     root            8 Jul 26 17:00 /dev/cdrom -> /dev/hdb
[tim@dell tim]# cat /proc/version
Linux version 2.2.20p6i5i (root@abit) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #3 Mon Jun 25 21:44:03 PDT 2001
[tim@dell tim]# mount -V
mount: mount-2.10f
[tim@dell tim]# strace mount -t iso9660 -o ro /dev/cdrom /cdrom
execve("/bin/mount", ["mount", "-t", "iso9660", "-o", "ro", "/dev/cdrom", "/cdrom"], [/* 26 vars */]) = 0
...
lstat("/etc/mtab", {st_mode=S_IFREG|0644, st_size=129, ...}) = 0
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV], NULL, 8) = 0
mount("/dev/cdrom", "/cdrom", "iso9660", MS_RDONLY|0xc0ed0000, 0x80592b0) = 0
brk(0x805c000)                          = 0x805c000
readlink("/dev", 0xbfffe8a0, 4095)      = -1 EINVAL (Invalid argument)
readlink("/dev/cdrom", "/dev/hdb", 4095) = 8
readlink("/dev", 0xbfffe8a0, 4095)      = -1 EINVAL (Invalid argument)
readlink("/dev/hdb", 0xbfffe8a0, 4095)  = -1 EINVAL (Invalid argument)
readlink("/cdrom", 0xbfffe89c, 4095)    = -1 EINVAL (Invalid argument)
open("/etc/mtab", O_RDWR|O_CREAT, 0644) = 3
close(3)                                = 0
rt_sigaction(SIGHUP, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGINT, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGILL, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGTRAP, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGABRT, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGBUS, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGFPE, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGKILL, {0x804d550, ~[], 0x4000000}, NULL, 8) = -1 EINVAL (Invalid argument)
rt_sigaction(SIGUSR1, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGUSR2, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGALRM, {0x804d580, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGSTKFLT, {0x804d550, ~[], 0x4000000}, NULL, 8) = 0
getpid()                                = 1677
open("/etc/mtab~1677", O_WRONLY|O_CREAT, 0) = 3
close(3)                                = 0
link("/etc/mtab~1677", "/etc/mtab~")    = 0
unlink("/etc/mtab~1677")                = 0
open("/etc/mtab~", O_WRONLY)            = 3
fcntl(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
close(3)                                = 0
open("/etc/mtab", O_RDWR|O_APPEND|O_CREAT, 0666) = 3
fstat64(0x3, 0xbffff718)                = -1 ENOSYS (Function not implemented)
fstat(3, {st_mode=S_IFREG|0644, st_size=129, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
fstat(3, {st_mode=S_IFREG|0644, st_size=129, ...}) = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "/dev/hda2 / ext2 rw 0 0\nnone /pr"..., 129) = 129
fstat(3, {st_mode=S_IFREG|0644, st_size=129, ...}) = 0
_llseek(3, 129, [129], SEEK_SET)        = 0
write(3, "/dev/hdb /cdrom iso9660 ro 0 0\n", 31) = 31
close(3)                                = 0
munmap(0x40019000, 4096)                = 0
unlink("/etc/mtab~")                    = 0
rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV], NULL, 8) = 0
_exit(0)                                = ?
[tim@dell tim]# ls -l /cdrom
total 48
-rw-r--r--    4 root     root        18385 Aug 16 13:18 COPYING
-rw-r--r--    4 root     root         4247 Aug 16 13:18 README
-rw-r--r--    3 root     root         8748 Aug 16 13:18 RELEASE-NOTES
-rw-r--r--    4 root     root         1908 Aug 16 13:18 RPM-GPG-KEY
drwxr-xr-x    4 root     root         2048 Aug 16 14:15 RedHat
-r--r--r--    1 root     root          503 Aug 16 14:15 TRANS.TBL
-rwxr-xr-x    4 root     root          538 Aug 16 13:18 autorun
-r--r--r--    1 root     root         2048 Aug 16 14:15 boot.cat
drwxr-xr-x    6 root     root         4096 Aug 16 14:10 dosutils
drwxr-xr-x   10 root     root         2048 Aug 16 14:11 images

--

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mount failure, SCSI emulation, 2.2.20pre9
  2001-08-24  1:46 mount failure, SCSI emulation, 2.2.20pre9 Tim Moore
@ 2001-08-25  6:51 ` Tim Moore
  2001-08-25  6:59 ` Tim Moore
  2001-08-25 11:30 ` Tim Moore
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Moore @ 2001-08-25  6:51 UTC (permalink / raw)
  To: kernel

More info.  Immediately after a burn and before the CD-R is ejected, it is mountable and has this TOC:

first: 1 last 1
track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 4 mode: 0
track:lout lba:    257759 (  1031036) 57:18:59 adr: 1 control: 4 mode: -1

After ejecting and reloading, unmountable with this TOC:

first: 0 last 1
track:   0 lba:         0 (        0) 00:02:00 adr: 1 control: 4 mode: -1
track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 4 mode: -1
track:lout lba:         0 (        0) 00:00:00 adr: 1 control: 4 mode: -1

As before, the CD-R is mountable if the IDE CDROM driver is used rather than SCSI emulation.  I'm trying 2.2.19, different media and other cdrecord versions.  Other ideas appreciated..

Also, apologies to one who wrote me off-list.  I unadvertently deleted your email.  Please resend if possible.

rgds,
tim.

Full log
--------

[23:44] abit:/<1>iso/i386 > cat test.log
# cdrecord -v speed=4 dev=0,1,0 driver=mmc_cdr -data roswell-i386-SRPMS-disc2.iso
Cdrecord 1.9 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,1,0'
scsibus: 0 target: 1 lun: 0
Linux sg driver version: 2.1.40
Using libscg version 'schily-0.1'
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'YAMAHA  '
Identifikation : 'CRW4416E        '
Revision       : '1.0e'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags   : SWABAUDIO
Drive buf size : 1176000 = 1148 KB
FIFO size      : 6291456 = 6144 KB
Track 01: data  503 MB        
Total size:     578 MB (57:16.78) = 257759 sectors
Lout start:     578 MB (57:18/59) = 257759 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 5
  Is not unrestricted
  Is not erasable
  Disk sub type: Medium Type A, high Beta category (A+) (3)
  ATIP start of lead in:  -11324 (97:31/01)
  ATIP start of lead out: 336225 (74:45/00)
Disk type:    Long strategy type (Cyanine, AZO or similar)
Manuf. index: 22
Manufacturer: Ritek Co.
Blocks total: 336225 Blocks current: 336225 Blocks remaining: 78466
Starting to write CD/DVD at speed 4 in write mode for single session.
Last chance to quit, starting real write in 9 seconds...1 seconds.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 0
Track 01:   0 of 503 MB written.
Track 01:   1 of 503 MB written (fifo  98%).
Track 01:   2 of 503 MB written (fifo 100%).
...
Track 01: 501 of 503 MB written (fifo 100%).
Track 01: 502 of 503 MB written (fifo 100%).
Track 01: 503 of 503 MB written (fifo 100%).
Track 01: Total bytes read/written: 527886336/527886336 (257757 sectors).
Writing  time:  889.461s
Fixating...
Fixating time:   68.620s
cdrecord: fifo had 8315 puts and 8315 gets.
cdrecord: fifo was 0 times empty and 8195 times full, min fill was 95%.

# mount -v /cdrom
/dev/sr0 on /cdrom type iso9660 (ro,noexec,nosuid,nodev)
# ls -l /cdrom
total 60
drwxr-xr-x    2 root     root        59392 Aug 16 14:15 SRPMS
-r--r--r--    1 root     root          100 Aug 16 14:20 TRANS.TBL
# umount -v /cdrom
/dev/sr0 umounted

# cdrecord -toc
Cdrecord 1.9 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
scsidev: '0,1,0'
scsibus: 0 target: 1 lun: 0
Linux sg driver version: 2.1.40
Using libscg version 'schily-0.1'
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'YAMAHA  '
Identifikation : 'CRW4416E        '
Revision       : '1.0e'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags   : SWABAUDIO
first: 1 last 1
track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 4 mode: 0
track:lout lba:    257759 (  1031036) 57:18:59 adr: 1 control: 4 mode: -1

# eject -v /dev/cdrom
eject: device name is `/dev/cdrom'
eject: expanded name is `/dev/cdrom'
eject: `/dev/cdrom' is a link to `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command succeeded

# cdrecord -toc
Cdrecord 1.9 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
scsidev: '0,1,0'
scsibus: 0 target: 1 lun: 0
Linux sg driver version: 2.1.40
Using libscg version 'schily-0.1'
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'YAMAHA  '
Identifikation : 'CRW4416E        '
Revision       : '1.0e'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags   : SWABAUDIO
first: 0 last 1
track:   0 lba:         0 (        0) 00:02:00 adr: 1 control: 4 mode: -1
track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 4 mode: -1
track:lout lba:         0 (        0) 00:00:00 adr: 1 control: 4 mode: -1

# mount -v /cdrom
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
       or too many mounted file systems

--

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mount failure, SCSI emulation, 2.2.20pre9
  2001-08-24  1:46 mount failure, SCSI emulation, 2.2.20pre9 Tim Moore
  2001-08-25  6:51 ` Tim Moore
@ 2001-08-25  6:59 ` Tim Moore
  2001-08-25 11:30 ` Tim Moore
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Moore @ 2001-08-25  6:59 UTC (permalink / raw)
  To: kernel

Forgot kernel errors for mount failure

Aug 24 23:22:11 abit kernel: attempt to access beyond end of device 
Aug 24 23:22:11 abit kernel: 0b:00: rw=0, want=33, limit=0 
Aug 24 23:22:11 abit kernel: dev 0b:00 blksize=1024 blocknr=32 sector=64 size=1024 count=1 
Aug 24 23:22:11 abit kernel: isofs_read_super: bread failed, dev=0b:00, iso_blknum=16, block=32 


--

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mount failure, SCSI emulation, 2.2.20pre9
  2001-08-24  1:46 mount failure, SCSI emulation, 2.2.20pre9 Tim Moore
  2001-08-25  6:51 ` Tim Moore
  2001-08-25  6:59 ` Tim Moore
@ 2001-08-25 11:30 ` Tim Moore
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Moore @ 2001-08-25 11:30 UTC (permalink / raw)
  To: kernel

Fixed.  Somehow some idiot (me) set DAO on the Yamaha CRW4416E,
which apparently writes something readable by other CD-R's
except for itself.  Reset to TAO, all is well again.

Apologies to the SCSI emulation code.

t.
--

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-25 11:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-24  1:46 mount failure, SCSI emulation, 2.2.20pre9 Tim Moore
2001-08-25  6:51 ` Tim Moore
2001-08-25  6:59 ` Tim Moore
2001-08-25 11:30 ` Tim Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).