GRUB

Programming, for all ages and all languages.
Post Reply
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

GRUB

Post by Tyler »

Does the GRUB Installer Manually patch Stage1? I have parts of the code which would not work or which are buggy if values are not changed... is this what happens?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

Yes, it does - of course, or you would have to edit your MBR manually after an install...
Every good solution is obvious once you've found it.
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Post by Tyler »

Well editing the MBR is practical enough, but for example the lines...

Code: Select all

boot_drive_check:	
jmp	1f
testb	$0x80, %dl
jnz	1f
movb	$0x80, %dl
Apparently this code will not run on a floppy becasue of the first jump but will run through on a harddrive. Does the GRUB installer replace the first jump?
Post Reply