/ boot에서 누락 된 vmlinuz


10

Windows 7 및 Ubuntu 12.04가 설치된 랩톱을 실행 중입니다. 나는 파티션 크기를 조정 한 후에 커널 파일이 없어서 결국 문제로 판명되는 문제를 겪었다 . (이 문제는 크기 조정 후 1 주일이 지나야 컴퓨터가 완벽하게 작동하는 동안 시작되지 않았습니다).

12.04 LTS LiveCD에서 하드 드라이브 설치에 chroot를함으로써 결국 복원 할 수있었습니다 /boot/initrd-3.2.0.24-generic.img. 복사하여 vmlinuzLiveCD를의에서 /casper/에 폴더 /boot/vmlinuz-3.2.0.24-generic내가 그 발견 update-grub마지막으로 인식하고 내 우분투 내 초기 문제였다 GRUB 메뉴에 설치 추가합니다.

그러나 나의 새로운 문제는이 설치로 부팅 할 때 모든 종류의 실패한 모듈과 오류 메시지를 보게되는데, 종종 읽거나 기억하기에는 너무 빠릅니다. 마지막으로 저 그래픽 모드, 문제 해결, 명령 프롬프트, 네트워킹 등에서 우분투를 시작하는 옵션이 제공됩니다. 저 그래픽 모드를 선택하면 터미널에서 로그인하라는 메시지가 표시되지만 사용자 이름과 암호가 작동하지 않습니다.

아마도 단순히 LiveCD에서 vmlinuz를 복사하면 이러한 오류가 발생했을까요? 내 문제는 적절한 vmlinuz커널 설치 프로세스 로 적절한 파일 이 설치되지 않았다는 것입니다.'initrd-....'.img

연구 작업에 사용하는 다양한 프로그래밍 환경에 대해 많은 사용자 정의 설정을 가지고 있으며 현재 해외에 있으므로 많은 부분을 복원하는 데 필요한 대역폭을 제한하므로 전체 Ubuntu 파티션을 다시 설치하지 않는 것이 좋습니다. 소프트웨어.

그러나 비 부팅 파티션의 완전한 이미지와 완전한 클론이 있습니다 (둘 다 CloneZilla를 통해). 복제본을 마운트 할 때 읽을 수 없다고 주장하는 개인 '홈'폴더를 실제로 얻었는지 모르겠습니다.


줄 바꿈을 삽입 하시겠습니까? 나는이“텍스트의 벽”에 있지 않습니다.
Martin Ueding

내가 최근 해외에 왔으며 국제 키보드에서 모든 기호가 어디로 이동했는지 알지 못 했으므로 형식에 대해 죄송합니다.
msolters 2018 년

답변:


10

apt-get커널을 (다시) 설치하기 위해 사용해 보셨습니까 ?


Ubuntu 설치와 일치하는 Live CD 또는 USB를 부팅 chroot한 다음 아래 명령을 실행하십시오.

apt-get -V install linux-generic linux-image-generic linux-headers-generic
  • 참고 : 위에서하지 작업을 수행하는 경우, 당신은 또한 중 하나를 시도 할 수 --reinstall또는 일을 remove위의 패키지를 다음하려고 install다시.

위의 방법 중 어느 것도 작동 하지 않으면 어떻게 실패했는지에 대한 세부 정보로 질문을 업데이트하십시오.

위의 제안 apt-get은 가상 머신에서 Ubuntu 12.04 LTS 64 비트를 새로 설치 한 커널을 업그레이드 한 것에 근거한 것 입니다. 패키지 apt-get커널을 업데이트 설치하기로 결정이었다 linux-generic, linux-image-generic그리고 linux-headers-generic.

apt-get가능한 경우 위 명령 을 실행하여 얻은 출력 아래에 포함 시켰습니다 .

모두 나에게 표시 vmlinuz-3.2.0-25-generic하고이 initrd.img-3.2.0-25-generic실행에 의해 생성 된 update-initramfs스크립트 설치 후 처리 중입니다. 따라서 설치가 동일하지 않으면 한 설치에서 다른 설치로 파일을 복사하는 것이 효과적 일지 의심됩니다.

irrational@VB64Too:~$ sudo apt-get -V install linux-generic linux-image-generic linux-headers-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
   linux-headers-3.2.0-25 (3.2.0-25.40)
   linux-headers-3.2.0-25-generic (3.2.0-25.40)
   linux-image-3.2.0-25-generic (3.2.0-25.40)
Suggested packages:
   fdutils (5.5-20060227-5)
   linux-doc-3.2.0 ()
   linux-source-3.2.0 (3.2.0-25.40)
   linux-tools (3.2.0.25.27)
The following NEW packages will be installed:
   linux-headers-3.2.0-25 (3.2.0-25.40)
   linux-headers-3.2.0-25-generic (3.2.0-25.40)
   linux-image-3.2.0-25-generic (3.2.0-25.40)
The following packages will be upgraded:
   linux-generic (3.2.0.23.25 => 3.2.0.25.27)
   linux-headers-generic (3.2.0.23.25 => 3.2.0.25.27)
   linux-image-generic (3.2.0.23.25 => 3.2.0.25.27)
3 upgraded, 3 newly installed, 0 to remove and 247 not upgraded.
Need to get 50.6 MB of archives.
After this operation, 216 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-image-3.2.0-25-generic amd64 3.2.0-25.40 [38.2 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-generic amd64 3.2.0.25.27 [1,710 B]                          
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-image-generic amd64 3.2.0.25.27 [2,648 B]                    
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-25 all 3.2.0-25.40 [11.4 MB]                   
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-25-generic amd64 3.2.0-25.40 [958 kB]          
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-generic amd64 3.2.0.25.27 [2,644 B]                  
Fetched 50.6 MB in 36s (1,398 kB/s)                                                                                                
Selecting previously unselected package linux-image-3.2.0-25-generic.
(Reading database ... 141202 files and directories currently installed.)
Unpacking linux-image-3.2.0-25-generic (from .../linux-image-3.2.0-25-generic_3.2.0-25.40_amd64.deb) ...
Done.
Preparing to replace linux-generic 3.2.0.23.25 (using .../linux-generic_3.2.0.25.27_amd64.deb) ...
Unpacking replacement linux-generic ...
Preparing to replace linux-image-generic 3.2.0.23.25 (using .../linux-image-generic_3.2.0.25.27_amd64.deb) ...
Unpacking replacement linux-image-generic ...
Selecting previously unselected package linux-headers-3.2.0-25.
Unpacking linux-headers-3.2.0-25 (from .../linux-headers-3.2.0-25_3.2.0-25.40_all.deb) ...
Selecting previously unselected package linux-headers-3.2.0-25-generic.
Unpacking linux-headers-3.2.0-25-generic (from .../linux-headers-3.2.0-25-generic_3.2.0-25.40_amd64.deb) ...
Preparing to replace linux-headers-generic 3.2.0.23.25 (using .../linux-headers-generic_3.2.0.25.27_amd64.deb) ...
Unpacking replacement linux-headers-generic ...
Setting up linux-image-3.2.0-25-generic (3.2.0-25.40) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-25-generic /boot/vmlinuz-3.2.0-25-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-25-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-25-generic /boot/vmlinuz-3.2.0-25-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-25-generic /boot/vmlinuz-3.2.0-25-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-25-generic /boot/vmlinuz-3.2.0-25-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-25-generic
Found initrd image: /boot/initrd.img-3.2.0-25-generic
Found linux image: /boot/vmlinuz-3.2.0-23-generic
Found initrd image: /boot/initrd.img-3.2.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
Setting up linux-image-generic (3.2.0.25.27) ...
Setting up linux-generic (3.2.0.25.27) ...
Setting up linux-headers-3.2.0-25 (3.2.0-25.40) ...
Setting up linux-headers-3.2.0-25-generic (3.2.0-25.40) ...
Setting up linux-headers-generic (3.2.0.25.27) ...
irrational@VB64Too:~$

1

12.04 LTS LiveCD에서 하드 드라이브 설치에 chroot를하면서 결국 복원 할 수있었습니다 /boot/initrd-3.2.0.24-generic.img. 복사하여 vmlinuzLiveCD를의에서 /casper/에 폴더 /boot/vmlinuz-3.2.0.24-generic내가 그 발견 update-grub마지막으로 인식하고 내 우분투 내 초기 문제였다 GRUB 메뉴에 설치 추가합니다.

그러나 새로운 문제는이 설치로 부팅 할 때 모든 종류의 실패한 모듈과 오류 메시지가 표시된다는 것입니다.

나는 처음에는 같은 것을 제안했지만 라이브 미디어에서 파일을 복사하거나 chroot에 linux-image-generic을 설치하는 것보다 더 나은 대답을 찾아야했습니다.

내 제안은 /lib/modules/설치 를 살펴보고 찾을 수있는 최신 커널 버전 번호를 선택한 다음 해당 커널 이미지를 chroot에 설치하는 것입니다. initrd자동으로 생성되지 않은 경우 생성하려면을 (를) mkinitramfs호출 update-initramfs했지만 실행 하지 않았지만 라이브 미디어에서 작업을 거부 할 수 있습니다.

여기에 완전한 지침을 게시 했습니다. / boot에서 삭제 된 파일을 복원하는 방법? (vmlinuz 누락, 시스템이 부팅되지 않음)

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.