Saturday, July 3, 2010

Recover the lost Linux installation

Most common scenario I have found is when you have dual boot system (Linux/wndows) and you have to install windows again. Then the usual boot loader (grub) is overwritten by the windows boot loader (ntldr).In order to recover the lost Linux installation and re enable the Linux boot loader (grub), try the following steps. I have been following these steps for long time and works fine always..
1) boot the computer using Linux live CD
2)Open a terminal when you are in desktop and try enter following commands
sudo grub
grub> find /boot/grub/stage1
(hdx,y) # this will be the output
grub> root (hdx,y)
grub> setup (hdx)

20 comments:

Anonymous said...

成熟,就是有能力適應生活中的模糊。.................................................................

Anonymous said...

向著星球長驅直進的人,反比踟躕在峽路上的人,更容易達到目的。............................................................

Anonymous said...

人有兩眼一舌,是為了觀察倍於說話的緣故。............................................................

Anonymous said...

留言支持你~希望能看到更好的作品 ..................................................................

Anonymous said...

People throw stones only at trees with fruit on them.............................................................

Anonymous said...

A stitch in time saves nine...................................................................

Anonymous said...

生存乃是不斷地在內心與靈魂交戰;寫作是坐著審判自己。..................................................

Anonymous said...

先為別人的快樂著想,是超人;先為自己的快樂著想,是凡人;使別人不快樂,自己也不快樂的,是笨人。..................................................

Anonymous said...

rain before seven; fine before eleven.............................................................

Anonymous said...

從來愛都不知它的深度,非得等到別離的時候.................................................................

千曹惠 said...

路過看到好的blog,來留言湊個熱鬧............................................................

Anonymous said...

生存乃是不斷地在內心與靈魂交戰;寫作是坐著審判自己。. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

家唐銘 said...

人不能像動物一樣活著,而應該追求知識和美德............................................................

文王廷 said...

人生有些波折,才能有些成長,所以不論順逆,凡是成長、成功的助緣,都應該心存感激。.................................................

Anonymous said...

人並不是生來要吃敗仗的。人可被毀滅,但不可被擊倒。..................................................................

Anonymous said...

More haste, less speed..................................................................

于庭吳 said...

No pains, no gains.......................................................................

Anonymous said...

人有兩眼一舌,是為了觀察倍於說話的緣故。............................................................

Anonymous said...

期待你的下次更新喔^____^..................................................

Anonymous said...

在你一無所有的時候 是誰在陪伴你 他便是你最重要的人......................................................................