[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chainloader File

From: Andreas Reich
Subject: Re: Chainloader File
Date: Sat, 16 Dec 2000 23:31:52 +0100

OKUJI Yoshinori (address@hidden) wrote:

OY> From: Andreas Reich <address@hidden>
OY> Subject: Re: Chainloader File
OY> Date: Sat, 16 Dec 2000 20:50:57 +0100

>> You are right, my file is onle 69 bytes long.
>> How do I add bytes so GRUB can boot it?

OY> $ dd if=/dev/zero bs=`expr 512 - 69 - 2` count=1 >> your_file
OY> $ printf '\x55\xaa' >> your_file

Thanks, that worked.
I am curious: Why \x55\xaa and not just zero-bytes?

OY> This should work, but it is better to do this by your assembler or
OY> linker. See stage1/stage1.S in the source tree of GRUB, for example.

I looked into stage1.S, but - what exactly am I supposed to see there?

Andreas Reich
Scention Labs, Entwicklungsleitung |  Privat:
address@hidden                 |  address@hidden
ICQ# 94341344                      |  ICQ# auf Anfrage

reply via email to

[Prev in Thread] Current Thread [Next in Thread]