Article View: alt.lang.asm
Article #356Re: Help about MBR and BOOT sectors
From: John S. Fine
Date: Mon, 13 Jul 1998 00:00
Date: Mon, 13 Jul 1998 00:00
25 lines
2542 bytes
2542 bytes
Patrice SEPULCRE wrote: > > I' m writing a MBR program which load the boot sector, > but I would like to put the partition table to an another sector. > If I move the partition table and lauch the boot sector program, > the computer sends an error "insert a system disk with the command.com Most OS's reread the partition table for themselves in order to "mount" disk volumes (including the one they booted from). If the partition table is not in the expected place and condition then they fail. The best solution is DON'T relocate the partition table. What are you really trying to accomplish? There is probably another way. The method used by many viruses is to hook int 13h and trap all attempts to read the mbr and return a reconstructed or relocated mbr instead. There are some non-virus uses for that trick as well. It won't work with OS's that use pmode drivers for low level disk access. -- http://www.erols.com/johnfine/ http://www.geocities.com/SiliconValley/Peaks/8600/
Technical Details
Message-ID:
<6odh6g$d5t$1@winter.news.erols.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6od5ki$its$1@winter.news.erols.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102597,98ba2fcc8fb05c45 X-Google-Attributes: gid102597,public X-Google-Thread: f7d8d,98ba2fcc8fb05c45 X-Google-Attributes: gidf7d8d,public X-Google-Thread: feaef,98ba2fcc8fb05c45 X-Google-Attributes: gidfeaef,public X-Google-Thread: 102bfa,98ba2fcc8fb05c45 X-Google-Attributes: gid102bfa,public X-Google-Thread: f71eb,98ba2fcc8fb05c45 X-Google-Attributes: gidf71eb,public X-Google-Thread: f9e32,98ba2fcc8fb05c45 X-Google-Attributes: gidf9e32,public X-Google-Thread: 114917,98ba2fcc8fb05c45 X-Google-Attributes: gid114917,public X-Google-Thread: 15219e,98ba2fcc8fb05c45 X-Google-Attributes: gid15219e,public From: "John S. Fine" <johnfine@erols.com> Subject: Re: Help about MBR and BOOT sectors Date: 1998/07/13 Message-ID: <6odh6g$d5t$1@winter.news.erols.com> X-Deja-AN: 371054711 Content-Transfer-Encoding: 7bit Approved: <johnfine@erols.com> References: <6od5ki$its$1@winter.news.erols.com> To: Patrice SEPULCRE <SEPULCRE@EZLOCK.COM> Content-Type: text/plain; charset=us-ascii FCC: /d|/netscape/Mail/PostNews X-Mozilla-Status: 0801 X-Complaints-To: abuse@erols.com X-Trace: winter.news.erols.com 900352016 13501 207.172.240.250 (13 Jul 1998 17:46:56 GMT) Organization: none Mime-Version: 1.0 Reply-To: johnfine@erols.com Newsgroups: alt.lang.asm,alt.msdos.programmer,borland.public.tasm,comp.lang.asm.x86,comp.msdos.programmer,comp.os.msdos.mail-news,comp.os.msdos.misc,fj.binaries.msdos,git.club.asme,microsoft.public.masm