Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I haven't ever know what grub is until I try this command to make my pen drive bootable.

cd /media/usbdisk/boot/grub

I am now stuck at grub command line. I try to boot from available kernel but kernel command is not available so I use xnu_kernel command but it goes to error:

Kernel doesn't contain suitable 32-architecture

Please help me to recover booting my hard-drive !

share|improve this question

closed as not a real question by enzotib, psusi, jrg Feb 24 '12 at 14:43

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
have you tried booting form a livecd , liveusb andrestore grub from there? –  Uri Herrera May 10 '11 at 4:14
    
Question doesn't make sense. cd just changes your current directory; it doesn't do anything, let alone muck with grub. –  psusi Feb 24 '12 at 14:35

3 Answers 3

Here are links from the Ubuntu-Wiki for repairing Grub:

For Grub2: Repair Grub2

For Grub: Repair Grub

Hope it helps!

share|improve this answer

Perhaps I'm misunderstanding the question, but it seems to me s/he is saying s/he is stuck at the Grub command line every boot and wants to get out. Wouldn't just removing the pen drive and a complete shutdown solve this problem? There's no way this could have damaged the BIOS boot partition on the hard disk, right?

share|improve this answer

with a live cd as root (sudo -i)

 sudo fdisk -l

 sudo mount /dev/sdaX/ mnt

sudo grub-install --root-directory=/mnt/ /dev/sda

Then reboot the machine normally and do this:

sudo update-grub
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.