Subject: kern/9650: mounting cd9660 image on vnd0 is broken?
To: None <>
From: Simon J. Gerraty <>
List: netbsd-bugs
Date: 03/21/2000 07:03:03
>Number:         9650
>Category:       kern
>Synopsis:       strings /mnt/index.htm produces different result each time.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 21 07:03:00 2000
>Originator:     Simon J. Gerraty
Zen Programming...
>Release:        <NetBSD-current source date>
System: NetBSD 1.4.2 NetBSD 1.4.2 (ZEN) #1: Sat Mar 18 21:40:06 PST 2000 root@:/u3/NetBSD/1.4.X/src/sys/arch/i386/compile/ZEN i386

I've made CD's of photos before, using the same procedure as detailed
below with no problems. 

mkhybrid -J -L -r -o /var/cdwriter/printCD1.iso -a -v -v -f .

If I then:

vnconfig -c vnd0 /var/cdwriter/printCD1.iso
mount -r -t cd9660 /dev/vnd0a /mnt

everything looks right, I can xview all the .jpg's and xv the .tif's
(didn't try them all...), ok.
But all the plain text files are garbage. 
If I do the above while running 1.3.2 (which is what I was running
last time I made a CD) including the mkhybrid run, I just get a read
error for /mnt/index.htm etc.

On 1.4.2 (using 1.4.2 version of mkhybrid) I appear to read random
binary data: 

$ strings /mnt/index.htm 
ld-search end re-search-forward "^\\(to\\|cc\\):" "^[^ 
\n]" backward-char 1 insert-before-markers "Sent-via:"] 5 (#$ . 16134) nil])
#@32 Move point to end of To-field.
(defalias 'mail-to #[nil "
" [expand-abbrev mail-position-on-field "To"] 2 (#$ . 16522) nil])
#@37 Move point to end of Subject-field.

$ strings /mnt/index.htm  

$ strings /mnt/index.htm  

ie.  I get a different result each time I run strings on the same file.

If I burn the .iso file onto a CD and mount that, everything is fine.

I'll see if I can make a .iso image that people can copy for testing.