public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: tonyb@sysdev.org
To: linux-msdos@vger.kernel.org
Subject: Re: How to also Mount hdimage file at /
Date: Tue, 11 Nov 2003 13:12:37 -0800	[thread overview]
Message-ID: <20031111131237.44df3d89.tonyb@sysdev.org> (raw)
In-Reply-To: <200311112331.31060.clarencedang@yahoo.com>

On Tue, 11 Nov 2003 23:31:30 +1100
Clarence Dang <clarencedang@yahoo.com> wrote:

> On Tue, 11 Nov 2003 06:57 pm, tonyb@sysdev.org wrote:
> > However, dosemu will not work if $_hdimage is set to the
> > truncated image.  So I need a way to specify the file
> > starting at offset 0x2280, while leaving it intact...  But I
> > do not know how to specify a file starting at a byte
> > offset...
> 
> According to "man losetup", maybe "losetup -o" but I've never
> tried it myself.
> 
> Cheers,
> Clarence

Great discovery.  It did work!

----------------------------------------------------------------
losetup -d /dev/loop3			<detach and clear loop3>
losetup -o 8832 /dev/loop3 /hdimage-32MB.mdos	<attach to loop3 @off=8832>
mount /dev/loop3 /dosc -t msdos		<voila!, done deal!>
----------------------------------------------------------------

Then export the drive's /dosc with smb.conf and MS-Access can
read/write to a file that dosemu is using inside of a partition
inside a Linux file in a networked embedded linux appliance.

Great capability for dosemu, since starting with Windows 2K/sp4
and also to a lesser extent XP/sp1 Dos mapped drives are no
longer allowed in the Windows network.  Samba2 and 3 still work
fine!

Gracias,
TonyB


-- 
  __      __  _     I N C.               http://www.sysdev.org
/ __|\\// __||  \  __   __          /         tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ /        \/  System Tools / Utilities
|___/ || ___/|_ /\___|\_/        WIntel / Linux Device Drivers


      parent reply	other threads:[~2003-11-11 21:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-11  4:00 How to also Mount hdimage file at / tonyb
2003-11-11  7:57 ` tonyb
2003-11-11 12:31   ` Clarence Dang
2003-11-11 17:20     ` Joaco
2003-11-11 21:12     ` tonyb [this message]

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=20031111131237.44df3d89.tonyb@sysdev.org \
    --to=tonyb@sysdev.org \
    --cc=linux-msdos@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