***Server sets mode: +nt
<damo22>how do i install grub into mbr on a standalone disk? <damo22>i tried injecting the first 512 bytes into the disk from another disk that was bootable <youpi>it needs not ony the first sector, but also the stage1.5 to be put right after it <damo22>can i run grub2-install rootfs5G.dd ? <AlmuHS>if you want to boot a image from GRUB, you could add a new entry for this in grub.cfg <damo22>booting off a disk image at the same time as attaching a real disk on a second controller in qemu <AlmuHS>grub2-install is for install GRUB in a devices <AlmuHS>you can install GRUB in a external device, if you want <damo22>can i mount it loopback in linux and do grub-install /dev/loop0 ? <AlmuHS>but then, you only will can boot the system when the device which has GRUB installed is connected <damo22>i am preparing the disk for use with qemu <damo22>i basically rsynced / to a disk image and i need to fix the mbr <AlmuHS>oh, ok . You can use fdisk to do this, is not? <AlmuHS>do you want install grub in /dev/loop0 ? <AlmuHS>Isn't this a temporary device unit? <damo22>Installing for i386-pc platform. <damo22>Installation finished. No error reported. <damo22>it boots to grub rescue at least! <AlmuHS>do a backup of the VM before reboot <damo22>im in linux with hurd installed on external disk and a disk image <AlmuHS>do a backup of the harddisk then <AlmuHS>because I'm not sure if this experiment will works <damo22>but i want to clone it with smaller / and boot off a disk image <damo22>ive prepared the disk image but its non-bootable <AlmuHS>you can add a boot flag to the image <damo22>no it needs grub installed on the disk correctly <damo22>because even with partition 1 cloned <damo22>grub lives in mbr and somewhere else too <AlmuHS>but I'm worry about /dev/loop0 could be a temporary device unit, instead a real device unit <damo22>it is temporary, because i losetuped the disk image there <AlmuHS>but, in this case, when you reboot the machine, this unit will dissapears <youpi>for the VM it doesn't matter if it's served from loop0 or a file, the VM will see it as a drive anyway <AlmuHS>then, you are using a linux temporary device unit to install GRUB for the Hurd which runs in qemu <damo22>i just need grub-install to find the device <damo22>so i can make the image bootable <AlmuHS>you can explore grub files in filesystem, or reads GRUB docs <AlmuHS>the grub entries are in grub.cfg <AlmuHS>but you might be careful editing this file, because "update-grub" overwrite It <damo22>prefix is not in the grub.cfg its burnt into grub at compile time <damo22>i just cant remember what it is supposed to be <gnu_srs1>youpi,jrtc27: Maybe you should also add yourselves to Proposal D Seconds wrt the GR. <youpi>I don't have time to delve into it <AlmuHS>youpi: I tried to "apt full-upgrade" my Debian GNU/Hurd in the Thinkpad T60, but the hurd package is buggy and fails to configure <AlmuHS>I sent an email a week ago, with more details ***Glider_IRC_ is now known as Glider_IRC
<alextee>does the hurd have potential to be faster than linux? <alextee[m]>ArneBab: thanks, i just read that. sounds very interesting <alextee[m]>i'm willing to help, I can code in C but I don't have much experience with system programming although I'd love to learn. i will do some research first <alextee[m]>thanks! is there a guide somewhere that explains what does what in the source code? <ArneBab>I can’t guide you yet, but I’m sure others can. <ArneBab>I’ll be back another day — happy hacking! ***Glider_IRC_ is now known as Glider_IRC