home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!not-for-mail
- From: STDN%MARIST.bitnet@YaleVM.YCC.Yale.Edu (Dan Newcombe)
- Newsgroups: comp.os.linux
- Subject: Not a Valid Boot disk from dd
- Date: 25 Jan 1993 19:54:28 -0600
- Organization: UTexas Mail-to-News Gateway
- Lines: 36
- Sender: daemon@cs.utexas.edu
- Message-ID: <9301260154.AA06949@deepthought.cs.utexas.edu>
- NNTP-Posting-Host: cs.utexas.edu
-
- Hi,
- I am trying to write a program that will be able to be booted
- from a floppy, you know, my own OS or something. This is the
- assembly program. All it does is places the letter A on the
- screen.
- .text
- .globl _main
- _main:
- mov ah,#0x0e
- mov al,#0x65
- mov bh,#0
- int #0x10
- I did the following to create the output:
- as86 -0 -a nt.s -o nt.a
- ld86 -0 nt.a -o nt
- this worked just fine, no errors or warnings...
- I then put it onto the floppy, that had previously been formatted
- on DOS. I used
- dd if=nt of=/dev/fd0
- I even put in bs=8192 like the makefile for the kernel.
- When I went to boot it up I got this, from the BIOS:
- Not a boot disk,
- Press PF1 to retry, PF2 to edit configuration
-
- Any clues? I did things the way that linux does in the kernel Makefile
-
- -Dan
-
- Dan Newcombe
- stdn@vm.marist.edu kk4d@maristb.marist.edu
- dnewcomb@cybernet.cse.fau.edu And others...
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- - Real programmers like vending machine popcorn. Coders pop it in the
- microwave oven. Real programmers use the heat given off by the cpu.
- They can tell what job is running just by listening to the rate of popping.
-
-