public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: davidsen@tmr.com (bill davidsen)
To: linux-kernel@vger.kernel.org
Subject: Loopback problems in 2.4.x kernels
Date: Tue, 31 Jul 2001 20:36:14 -0400	[thread overview]
Message-ID: <200108010036.f710aEO00457@deathstar.prodigy.com> (raw)

I regularly get CDs written with binary data at the front followed by an
iso9660 image. And I have always read then by:

  mount -o ro,offset=17000 /dev/cdrom /cdrom

which works in 2.0 and 2.2 kernels. However, it doesn't work in 2.4.x
kernels, at least anything recent enough for me to try, and certainly
not in 2.4.[67].

I have already tried:

- boot a 2.2 kernel on the same hardware. WORKS
- dd the data to a file and offset mount that. WORKS
- try both atapi and ide-scsi for device. FAILS
- use losetup. FAILS

I think the success at mounting the copy of the file shows that the
kernels are built correctly, the loop module loads if I build as a
module, no errors from the kernel in terms of operation, just an unknown
file type.

Based on looking at the data, I think the offset is being moved to some
multiple of a sector or page size. It's not what I see in the copy on
disk in a file.

I have been doing this since 2.0.33 and it's been working. I think I
remember early 2.4 kernels, or late test releases, working fine, but I
don't have a machine to test until the weekend at the earliest.

Unless someone has some trick to get by this, consider it a warning and
bug report.

REPEAT BY:

  mkisofs -dDRNLJ -o /tmp/small.iso /etc
  dd if=/dev/random bs=6 count=1 of=/tmp/rxx
  cat /tmp/rxx /tmp/samll.iso | cdrecord dev=0,0,4 -pad
  mount -o ro,offset=6 /dev/cdrom /cdrom

or whatever is similar on your system.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
You have moved your mouse. Before this change can take effect you must
reboot your system. Press ENTER now to reboot your system, or any other
key to repartition your hard disk and reinstall Windows.

                 reply	other threads:[~2001-08-01  0:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200108010036.f710aEO00457@deathstar.prodigy.com \
    --to=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox