您好,登錄后才能下訂單哦!
Ubuntu 10.04 Grub2的修復步驟是什么,相信很多沒有經驗的人對此束手無策,為此本文總結了問題出現的原因和解決方法,通過這篇文章希望你能解決這個問題。
Ubuntu 10.04 LTS終于發布了,原來打算過一陣子再把9.10升一下的,但今天在update manager里,看到已經有提示說可以直接升到10.04,一時沖動沒忍住,于是就升了,接著就碰到魔鬼了:重啟后在grub那步出錯,過不去了,提示 “GRUB loading error: the symbol ‘grub_puts_’ not found”,光標就停在grub rescue>后面,google找了一些文章,發現國內的幾個都大同小異,Ubuntu 10.04 Grub2修復后面有一些步驟根本沒有交代清除,做到一半就進行不下去了,后來找到一個老外的帖子, 一步一步都很清楚,照著做下來,成功地把grub2修復了。
Ubuntu 10.04 Grub2修復詳細步驟1
Boot to the LiveCD Desktop (Ubuntu 9.10 or Ubuntu 10.04). Open a terminal – Applications, Accessories, Terminal . Determine your normal system partition – (the switch is a lowercase “L”) sudo fdisk -l If you aren’t sure, rundf -Th . Look for the correct disk size and ext3 or ext4 format. Mount your normal system partition: Substitute the correct partition: sda1, sdb5, etc. sudo mount /dev/sdXX /mnt # Example: sudo mount /dev/sda1 /mnt
Ubuntu 10.04 Grub2修復詳細步驟2
Only if you have a separate boot partition : sdYY is the /boot partition designation (examply sdb3) sudo mount /dev/sdYY /mnt/boot Mount devices:sudo mount --bind /dev/ /mnt/dev To ensure that only the grub utilities from the LiveCD get executed, mount /usrsudo mount --bind /usr/ /mnt/usr mount proc filesystemsudo mount --bind /proc/ /mnt/proc Chroot into your normal system device:sudo chroot /mnt If there is no /boot/grub/grub.cfg or it’s not correct, create one usingupdate-grub Reinstall GRUB 2: Substitute the correct device – sda, sdb, etc. Do not specify a partition number. grub-install /dev/sdX
Ubuntu 10.04 Grub2修復詳細步驟3
Verify the install (use the correct device, for example sda . Do not specify a partition): sudo grub-install --recheck /dev/sdX Exit chroot : CTRL-D on keyboard Unmount devices:sudo umount /mnt/dev If you mounted a separate /boot partition:sudo umount /mnt/boot Unmount last device:sudo umount /mnt Reboot.reboot Post-Restoration Commands Once the user can boot to a working system, try to determine why the system failed to boot. The following commands may prove useful in locating and/or fixing the problem.
Ubuntu 10.04 Grub2修復詳細步驟4
To refresh the available devices and settings in /boot/grub/grub.cfg sudo update-grub To look for the bootloader location. grub-probe -t device /boot/grub To install GRUB 2 to the sdX partition’s MBR (sda, sdb, etc.) sudo grub-install /dev/sdX To recheck the installation. (sda, sdb, etc.) sudo grub-install --recheck /dev/sdX Please check the following link for further details.
看完上述內容,你們掌握Ubuntu 10.04 Grub2的修復步驟是什么的方法了嗎?如果還想學到更多技能或想了解更多相關內容,歡迎關注億速云行業資訊頻道,感謝各位的閱讀!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。