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

Re: MBR deleted - reinstall grub



Alle 18:15, martedì 26 aprile 2005, Christian David hai scritto:
> Hello!
>
> I tried to install Windows and befor it told me that
> it has a problem with my partition, it deleted the
> MBR.
>
> Now I cannot start grub. All Linux files are sill
> okay. I used the debian installer CD-Rom (I am using
> sarge) to get a shell where I mounted my root
> directory. When I start grub-install with a parameter
> (e.g. hd0,0) it answers "//sbin/grub Not found."
>
> How to get Grub back into the MBR? Does anyone know a
> HOWTO?
>

Take a live knoppix or similar &

1) cd /lib/grub/i386-pc (or /usr/share/grub/i386-pc)

2) put a fd into pc &

3) dd if=stage1 of=/dev/fd0 bs=512 count=1

4) dd if=stage2 of=/dev/fd0 bs 512 seek=1


reboot from floppy and:

5) root (hd0,1) (tabbing for others partitions)
6) kernel /boot/vmlinuz-2...... (tabbing for completion) ro root=/dev/hdaX (X 
is your root partition)
7) initrd /boot/initrd.img-2.......... (tabbing)
8) boot



Alessandro


* all from http://www.debianitalia.org/module..........



Reply to: