Planet of NCCUCS

ubuntu救回誤刪的分割區

作者:RedBug on 八月 9, 2008 Posted in RSS | | 觀看文章來源

前幾天為了裝Windows,耍白誤刪了ubuntu的分割表。(搞錯顆硬碟)
在google上查了一下,SpfdiskSystemRescueCd有救的機會。
不過因為spdfdisk似乎要在Dos環境下執行,
我就選用SystemRescueCd製作開機片,
用它開機,
下wizard指令進入GUI介面,
用testdisk 來回復磁區。

回復磁區後,明明檔案都正常回復了,但是無法boot,出現類似loding error的訊息。
以為是boot磁區沒設,又用testdisk嘗試改boot 磁區,但是徒勞無功。
本來想說放棄了,就又在另一顆硬碟上灌ubuntu,再mount原本這顆,把資料備分出來。

後來發現ubuntu的grub居然可以找到原本那顆硬碟的kernel,
所以推測是原本那顆硬碟的MBR遺失了,所以要把重建MBR。
於是用ubuntu liveCD開機,進入terminal,輸入下面指令。
sudo -i
grub
> root (hd0,2) //因為我的/boot在sdb2
> setup (hd0)

就又可以正常開機了~
謝天謝地,不用重新tune一些軟體有的沒的設定。

,

:,

讀過本文的讀者, 也對以下文章有興趣

No comments for this entry yet...

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

最新文章

照片

R0012028R0012036R0013553R0013551R0013550R0013549R0013560R0013558R0013569R0013561R0013570R0013571R0013580R0013581R0013556R0013567R0013563R0013572R0011783R0012312