From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: unable to boot as user Date: Fri, 14 Jun 2002 23:25:50 +0400 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <3D0A433E.2050503@yahoo.com> Reply-To: stas.orel@mailcity.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030902080807060602000905" Return-path: List-Id: To: linux-msdos@vger.kernel.org This is a multi-part message in MIME format. --------------030902080807060602000905 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Hello. > 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. Your patch doesn't seem to attack the root of the problem:) Does the attached patch fixes this? --------------030902080807060602000905 Content-Type: text/plain; name="floppy.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="floppy.diff" --- src/base/misc/disks.c Tue Mar 19 00:58:12 2002 +++ src/base/misc/disks.c Fri Jun 14 23:17:10 2002 @@ -1011,10 +1011,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)) --------------030902080807060602000905--