Skip to contentSkip to conversation

unable to boot as user

DISCUSSION Stas Sergeev 1 participant 1 message Jun 14, 2002

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 4 lines

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?

base/misc/disks.c +3 -4
@@ -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))