Tôi đã làm theo các hướng dẫn đó để dọn sạch menu khởi động của hệ thống Ubuntu 10.04. Nhưng bằng cách nào đó, tôi không chỉ xóa các phiên bản cũ, tôi cũng xóa phiên bản mới nhất (xin đừng cười). Tôi chỉ sử dụng Synaptic để xóa chúng, tôi không chỉnh sửa /etc/grub.d
Bây giờ, khi tôi khởi động hệ thống, không có phiên bản Linux nào, chỉ có memtest. Tôi có thể khởi động bằng Ubuntu CD và tôi thấy rằng phân vùng vẫn còn đó với tất cả dữ liệu.
Làm cách nào tôi có thể cài đặt lại kernel linux mới nhất và có sẵn trên menu grub của tôi?
CẬP NHẬT
Tôi đã làm theo hướng dẫn của JRT nhưng gặp lỗi về quyền trong khi chạy apt-get. Chạy nó lần thứ hai trả về đầu ra này:
root@ubuntu:~# apt-get install linux-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up linux-image-2.6.32-25-generic (2.6.32-25.45) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-25-generic
grep: /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Running postinst hook script /usr/sbin/update-grub.
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
User postinst hook script [/usr/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.32-25-generic (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-2.6.32-25-generic; however:
Package linux-image-2.6.32-25-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 2.6.32.25.27); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
linux-image-2.6.32-25-generic
linux-image-generic
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
CẬP NHẬT 2
Tôi đã có thể sửa lỗi bằng cách gắn các nút thiết bị hệ thống máy chủ vào môi trường chroot . Trong một thiết bị đầu cuối khác, tôi đã gõ lệnh này:
mount --bind /dev /mnt/temp/dev
Sau đó tôi đã có thể chạy apt-get và cài đặt lại kernel. Bây giờ tôi có thể khởi động nó và mọi thứ hoạt động.
Cuối tuần của tôi là an toàn!