Skip to contentSkip to conversation

Fun abusing grub...

DISCUSSION adrian15 1 participant 2 messages Oct 18, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

adrian15

author
#1 lore raw
Quoted 11 lines

Greetings,

I didn't try to break any records, but I did try to make a good reference machine for each of these operating systems and get real experience about handling real devices.

Enclosed, read the touching tale of my attempts at installing 9 different operating systems under Grub.

--Chris

Hi Chris I am doing a thing called Grub Super Disk and I am very interested on seeing your grub.conf file or menu.lst, the one from Fedora /boot, it might give me some hints on how to improve Grub Super Disk.

Can you please send it by email or upload it somewhere... or just paste it in an email?

adrian15

author
#2 lore raw

gsd proposal : dd

In reply to a message not in the archive

Let's suppose that MBR has this structure:

Boot Code: 466 bytes
Partition table: 66 bytes

Let's do the following with Linux:

dd if=/dev/zero of=./blank.img count=1 bs=466
dd if=./blank.img of=/dev/hda

I think that this two commands will make a thing similar to fdisk /mbr
that's to say give a blank mbr.

Supposing that this is equivalent to fdisk /mbr let's build a grub disk
with the following extra file: blank.img stored int /boot/grub/ folder.

My first instict, my first thought was to do:

install p /boot/grub/blank.img INTO (hd0)

(Sorry, I don't remember the correct syntax right now, but I suppose you get the point)

The problem is that when I read install command documentation it says that Grub before embedding stage1 into the MBR ====checks==== if it's a right Grub stage1 image.

So... I suppose I cannot embedd this image into the MBR.

So some questions arise right now:

1) When Grub embeds an stage1 image into the MBR does it copy it into
the 1st 466 bytes or not? And... why its size is 512 bytes instead of 466 bytes as in my scheme?

2) Can I make a fake blank.img which is approved as a good grub stage1 by grub itself?

3) (THIS IS THE PROPOSAL) Will Grub 2 include a dd command... so that you can dd some images as a blank mbr or a mbr backup ?

Thank you for your questions in advance.

Ah,... I've made a Grub Super Disk version totally translated into English... check version 0.8.9 in floppy or cdrom here:

http://adrian15.raulete.net/ficheros/gsd_0.89.iso
http://adrian15.raulete.net/ficheros/gsd_0.89_en.img

adrian15