Skip to contentSkip to conversation

unable to boot as user

DISCUSSION Baurjan Ismagulov 1 participant 2 messages Jun 14, 2002

lore
Share & tools
lore
#0 lore raw

Hello,

I'm trying to boot win98 under dosemu 1.0.2.1-8 from debian sid. I put the diskette image under /var/lib/dosemu, set

        $_vbootfloppy = "win98.img"

in dosemu.conf and run dosemu. It boots as expected if dosemu is run by root, and otherwise fails with the following message:

Linux DOS emulator 1.0.2.1 $Date: 2001/10/13 $ Last configured at Sun Apr 28 14:06:33 EST 2002 on linux

Disk I/O error
Replace the disk, and then press any key

Pressing any key just causes the message to repeat. Dosemu exits after retrying three times.

I have "all c_all" in dosemu.users. I've tried setting $_secure to "" and "0" in dosemu.conf and making dosemu.bin suid root -- the same result.

List archives and Google retrieve quite a few threads discussing similar issues, but I couldn't figure out how I can solve that. I would appreciate any help. Please cc to me, as I'm not subscribed.

Attached are relevant (IMHO, that is) snippets from -D+a and strace -f outputs.

Thanks in advance,
Baurjan.

Debug output (user):

CONSOLE MSG: 'Linux DOS emulator 1.0.2.1 $Date: 2001/10/13 $' CONSOLE MSG: 'Last configured at Sun Apr 28 14:06:33 EST 2002 on linux' int 0x1c, ax=0x0000
DEFIVEC: int 0x1c @ 0xf000:0x01c0
Return from vm86() for STI
int 0x1c, ax=0x0000
DEFIVEC: int 0x1c @ 0xf000:0x01c0
Return from vm86() for STI
DISK: null dp
Sector not found 1!
DISK 0 read [h:1,s:1,t:0](1)->0x700
DISK 0 undefined.

Debug output (root):

        CONSOLE MSG: 'Linux DOS emulator 1.0.2.1 $Date: 2001/10/13 $'
        CONSOLE MSG: 'Last configured at Sun Apr 28 14:06:33 EST 2002 on linux'
        int 0x1c, ax=0x0000
        DEFIVEC: int 0x1c @ 0xf000:0x01c0
        Return from vm86() for STI
        DISK: /var/lib/dosemu/win95.img: Trying to read 1 sectors at T/S/H
        0/1/1+0 at pos 9728
        DISK read @1/0/1 (1) -> 0x700 OK.
        DISK: /var/lib/dosemu/win95.img: Trying to read 1 sectors at T/S/H
        0/15/1+0 at pos 16896
        DISK read @1/0/15 (1) -> 0x700 OK.
#1 lore raw

Hello,

Quoted 6 lines · Baurjan Ismagulov

I'm trying to boot win98 under dosemu 1.0.2.1-8 from debian sid. I put the diskette image under /var/lib/dosemu, set $_vbootfloppy=win98.img in dosemu.conf and run dosemu. It boots as expected if dosemu is run by root, and otherwise fails with the following message:
Disk I/O error
Replace the disk, and then press any key

At last I was able to track down the problem. It turned out to be that one should have the real floppy accessible in order to boot from the image. In my case, ordinary users have no access to /dev/fd0.

I suggest the change below.

With kind regards,
Baurjan.

etc/dosemu.conf +5 -1
diff -Naur -x *.OLD dosemu-1.0.2.1.orig/etc/dosemu.conf dosemu-1.0.2.1/etc/dosemu.conf
@@ -125,10 +125,14 @@
 			# file name of the floppy image under DOSEMU_LIB_DIR
 			# e.g. "floppyimage" disables $_hdimage
 			#      "floppyimage +hd" does _not_ disable $_hdimage
+			# Note that you MUST have $_floppy_a defined and
+			# accessible (check, for example, /dev/fd0 permissions)
+			# by the users running dosemu, otherwise you won't be
+			# able to boot from your image.
 $_floppy_a ="threeinch"	# or "fiveinch" or "atapi" or empty, if not existing
 			# optionally the device may be appended such as
 			# "threeinch:/dev/fd0"
-$_floppy_b = ""		# dito for B:
+$_floppy_b = ""		# ditto for B:
 
 $_hdimage = "freedos"	# list of hdimages under DOSEMU_LIB_DIR
 			# assigned in this order such as