VOGONS


First post, by Zagulevix

User metadata
Rank Newbie
Rank
Newbie

Hello. I have an old AT computer with FreeDOS 1.2 installed on it. The problem here is that when i type "shutdown", it doesn't shut down in the "It's now safe to turn off your computer" way, instead it tries to shut down like it is an ATX motherboard. The result is this:

C:\>shutdown
Performing action: POWEROFF
Turning OFF system...
Calling int28 so MSCLIENT can flush...
Resetting DOS filesystem and BIOS disk handler... done.
Giving disk handlers some time... Spinning down..... Disks stopped.
OFF failed - using SUSPEND.
Warming up....... Back...
Back on...
C:\>

Of course it's going to fail, because it's an AT motherboard, and the last step of shutdown procedure must be done manually with the power button.
Can this be fixed so it shuts down properly for an AT motherboard?

If this thread is in the wrong forum section and instead should be in the DOS section or somewhere else, please move it.

Last edited by Zagulevix on 2017-08-20, 12:33. Edited 1 time in total.

DOS PC - MS-DOS 6.22
ATC-1000+ (BIOS v1.3 04) - Q1 missing - ext.3.3V on JP6 pin 2
Pentium MMX 200MHz 2.8Vcore 3.3Vio
Matrox Mystique 220, Voodoo 2, Sound Blaster 16 (CT2230)
128MB RAM, 1GB HDD, CD drive, 2x 3.5" floppy drives

Reply 2 of 5, by Zagulevix

User metadata
Rank Newbie
Rank
Newbie

So this is completely unnecessary?

Calling int28 so MSCLIENT can flush...
Resetting DOS filesystem and BIOS disk handler... done.
Giving disk handlers some time... Spinning down..... Disks stopped.

DOS PC - MS-DOS 6.22
ATC-1000+ (BIOS v1.3 04) - Q1 missing - ext.3.3V on JP6 pin 2
Pentium MMX 200MHz 2.8Vcore 3.3Vio
Matrox Mystique 220, Voodoo 2, Sound Blaster 16 (CT2230)
128MB RAM, 1GB HDD, CD drive, 2x 3.5" floppy drives

Reply 3 of 5, by Jo22

User metadata
Rank l33t++
Rank
l33t++

As already said, in DOS there's no real need to use the shutdown command.
Just common sense. In order to shut down a DOS computer, make sure
a) the HDD activity led stays off for several seconds, indicating that no program is writing to disk
b) that on really old machines, the "park" command is executed, so ancient HDDs without auto-park feature go to sleep savely

As always, there are exceptions to this. Like if using network/server software, caches like smartdrive or a data-logging application.
But in principle, DOS is a read-only operating system. During boot-up and while beeing idle, it does not
attemp to write any data to the disk. Also in pure DOS, the filesystem doesn't have to mark itself "dirty" or "clean".
That's win95+. 😉

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 4 of 5, by Zagulevix

User metadata
Rank Newbie
Rank
Newbie

Thank you for explaining. The oldest OS that I used in my life was Windows 95, so I was afraid of shutting down by just cutting power off, but looks like it is the right way for DOS.

DOS PC - MS-DOS 6.22
ATC-1000+ (BIOS v1.3 04) - Q1 missing - ext.3.3V on JP6 pin 2
Pentium MMX 200MHz 2.8Vcore 3.3Vio
Matrox Mystique 220, Voodoo 2, Sound Blaster 16 (CT2230)
128MB RAM, 1GB HDD, CD drive, 2x 3.5" floppy drives