Sunday, April 17, 2011

Recovering grub with debian live usb stick

unetbootin didn't worked with creating the bootable android 2.2 so i in the process i have made debian unbootable
If you read the manual there is a live cd image (also there is the usb stick version )

I have downloaded the lxde version for i386
then written the image directly to the stick

cat debian-live-6.0.1-i386-lxde-desktop.img > /dev/sdb
sync

reboot

next is grub reinstall

Update: i have found that there is a debian Live EEEpc version , i will try that instead

dd if=eeepc-live-1.1~rc1-hybrid.iso of=/dev/sdb
sync

Update2:
Debian eepc works better so now i have chrooted and reinstalled grub this way

$sudo su 
# mount /dev/sda1 /mnt
# mount --bind /dev /mnt/dev
# mount --bind /proc /mnt/proc

Now chroot into the enviroment we made :

# chroot /mnt

Now install/recover Grub2 via :

#grub-install /dev/sda

No comments: