From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baurjan Ismagulov Subject: Re: unable to boot as user Date: Fri, 14 Jun 2002 20:14:40 +0300 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <20020614171431.GA15543@gantek.com> References: <20020614142121.GA11777@gantek.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20020614142121.GA11777@gantek.com> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-msdos@vger.kernel.org Hello, On Fri, Jun 14, 2002 at 05:21:23PM +0300, Baurjan Ismagulov wrote: > 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. diff -Naur -x *.OLD dosemu-1.0.2.1.orig/etc/dosemu.conf dosemu-1.0.2.1/etc/dosemu.conf --- dosemu-1.0.2.1.orig/etc/dosemu.conf Fri Jun 14 18:40:59 2002 +++ dosemu-1.0.2.1/etc/dosemu.conf Fri Jun 14 20:03:02 2002 @@ -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