From: Stas Sergeev <stssppnn@yahoo.com>
To: linux-msdos@vger.kernel.org
Cc: Baurjan Ismagulov <ibr@gantek.com>
Subject: Re: unable to boot as user
Date: Mon, 17 Jun 2002 01:51:47 +0400 [thread overview]
Message-ID: <3D0D0873.9020805@yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 679 bytes --]
Hello.
Baurjan Ismagulov wrote:
> I've thought about that, but was not sure whether that was indended
> behaviour for bootoff.
That is intended behaviour for bootoff
but since you don't use bootoff...
> however, for some
> reason, dosemu disables a: after booting, which results in "Current
> drive is no longer valid>" prompt (I don't use bootoff)
Yep, I can see something similar
here.
> which is kind
> of unexpected -- all I needed floppy for was doing "sys c:" and copying
> a couple of files to c:.
Agreed that it is confusing, but
I don't see any clear logic to handle
this setuation.
What I can propose is only the attached
hack. Does it fix your problems this time?
[-- Attachment #2: floppy.diff --]
[-- Type: text/plain, Size: 769 bytes --]
--- src/base/misc/disks.c Tue Mar 19 00:58:12 2002
+++ src/base/misc/disks.c Fri Jun 14 23:17:10 2002
@@ -891,6 +891,12 @@
else dp->rdonly = dp->wantrdonly;
}
+ if (!FDISKS && use_bootdisk) {
+ /* if we don't have any configured floppies, we have to use bootdisk instead */
+ memcpy(&disktab[0], &bootdisk, sizeof(bootdisk));
+ FDISKS++; /* now we have one */
+ }
+
/*
* Open hard disks
*/
@@ -1011,10 +1017,9 @@
int checkdp_val;
disk = LO(dx);
- if (disk < FDISKS) {
- if (!disk && use_bootdisk)
- dp = &bootdisk;
- else
+ if (!disk && use_bootdisk)
+ dp = &bootdisk;
+ else if (disk < FDISKS) {
dp = &disktab[disk];
switch (HI(ax)) {
#define DISKETTE_MOTOR_TIMEOUT (*((unsigned char *)0x440))
next reply other threads:[~2002-06-16 21:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-16 21:51 Stas Sergeev [this message]
2002-06-17 10:44 ` unable to boot as user Baurjan Ismagulov
2002-06-17 13:04 ` Bart Oldeman
2002-06-17 13:43 ` Baurjan Ismagulov
-- strict thread matches above, loose matches on Subject: below --
2002-06-16 16:02 Baurjan Ismagulov
2002-06-14 19:25 Stas Sergeev
2002-06-14 14:21 Baurjan Ismagulov
2002-06-14 17:14 ` Baurjan Ismagulov
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=3D0D0873.9020805@yahoo.com \
--to=stssppnn@yahoo.com \
--cc=ibr@gantek.com \
--cc=linux-msdos@vger.kernel.org \
--cc=stas.orel@mailcity.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.