no kernel no grub

0

profissionais do hi linux = O

Eu tinha Ubuntu 12.04 3.5.0-23-dual boot genérico com win7. mas havia um problema para usar o ati / radeon fglrx no meu sistema, então eu decidi fazer o downgrade do kernel (porque esse driver trabalhando com o kernel < = 3.4 ).

Instalei o linux-image.3.2.0-23-generic e o linux-image.3.2.0-24-generic no meu sistema, e usei o sudo update-grub para adicionar esses kernels ao grub boot loader e a saída mostrou todos os kernels adicionados ao boot loader.

após o reinício, havia apenas 3.5.0-23 no boot loader, então eu pensei que se eu desinstalar o grub 3.5.0-23 pode carregar outros kernels (estou tendo vergonha = [] .Eu desinstalei linux-image-3.5.0.23generic via synaptic e após o reinício há apenas estas opções no carregador de inicialização do grub:

memtest

win7

Eu usei o live usb para obter essas informações:

/ etc / default / grub :

> # If you change this file, run 'update-grub' afterwards to update
> # /boot/grub/grub.cfg.
> # For full documentation of the options in this file, see:
> #   info -f grub -n 'Simple configuration'
> 
> GRUB_DEFAULT="0"
> #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian'
> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""
> 
> # Uncomment to enable BadRAM filtering, modify to suit your needs
> # This works with Linux (no patch required) and with any kernel that obtains
> # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
> #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
> 
> # Uncomment to disable graphical terminal (grub-pc only)
> #GRUB_TERMINAL=console
> 
> # The resolution used on graphical terminal
> # note that you can use only modes which your graphic card supports via VBE
> # you can see them in real GRUB with the command 'vbeinfo'
> #GRUB_GFXMODE=640x480
> 
> # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
> #GRUB_DISABLE_LINUX_UUID=true
> 
> # Uncomment to disable generation of recovery mode menu entries
> #GRUB_DISABLE_RECOVERY="true"
> 
> # Uncomment to get a beep at grub start
> #GRUB_INIT_TUNE="480 440 1"

não há nada em / boot .

1-esses kernles (3.2.0.23 e 3.20.24) existem no meu sistema?

2_se eles estiverem no meu sistema, como posso adicioná-los ao grub e usá-los?

3-Existe uma maneira de obter o kernel 3.5.0.23 de volta?

Eu li tópicos semelhantes antes, mas eu não quero reinstalar o Ubuntu. por favor me ajude. : '(

EDIT 1:

ubuntu@ubuntu:/$ dpkg -l linux-image*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  linux-image    <none>         (no description available)
un  linux-image-3. <none>         (no description available)
iF  linux-image-3. 3.2.0-23.36    Linux kernel image for version 3.2.0 on 64 b
ii  linux-image-3. 3.5.0-23.35~pr Linux kernel image for version 3.5.0 on 32 b
ii  linux-image-ge 3.5.0.23.30    Generic Linux kernel image

EDIT 2 :

ubuntu@ubuntu:~$ ls -al /boot
total 53021
drwxr-xr-x 1 root   root       4096 Jul 19 15:41 .
drwxr-xr-x 1 ubuntu ubuntu     4096 Jul 19 15:41 ..
-rw-r--r-- 1 root   root     795572 Apr 11  2012 abi-3.2.0-23-generic
-rw-r--r-- 1 root   root     856743 Jan 25 21:07 abi-3.5.0-23-generic
-rw-r--r-- 1 root   root     147316 Apr 11  2012 config-3.2.0-23-generic
-rw-r--r-- 1 root   root     154436 Jan 25 21:07 config-3.5.0-23-generic
drwxr-xr-x 1 root   root       4096 Jun 24 17:25 grub
-rw-r--r-- 1 root   root   20358320 Jul 19 15:41 initrd.img-3.2.0-23-generic
-rw-r--r-- 1 root   root   21986987 Jul 19 15:39 initrd.img-3.5.0-23-generic
-rw-r--r-- 1 root   root     176764 Nov 27  2011 memtest86+.bin
-rw-r--r-- 1 root   root     178944 Nov 27  2011 memtest86+_multiboot.bin
-rw------- 1 root   root    2252691 Apr 11  2012 System.map-3.2.0-23-generic
-rw------- 1 root   root    2421090 Jan 25 21:07 System.map-3.5.0-23-generic
-rw------- 1 root   root    4864480 Apr 11  2012 vmlinuz-3.2.0-23-generic

EDIT 3 :

ubuntu@ubuntu:$ uname -a
Linux ubuntu 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:41:14 UTC 2012 i686 athlon i386 GNU/Linux
:
ubuntu@ubuntu:$ sudo dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)//")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*//;/[0-9]/!d'
linux-headers-3.5.0-23
linux-headers-3.5.0-23-generic
linux-image-3.5.0-23-generic
:
ubuntu@ubuntu:$ uname -sr
Linux 3.2.0-23-generic
    
por hamed aliany 19.07.2013 / 11:52

1 resposta

0

simplesmente conserte seu grub e o gerenciador de inicialização por

$ grub-install -v ( check GRUB version and GRUB file:- /boot/grub/grub.cfg )

$ sudo add-apt-repository ppa:yannubuntu/boot-repair

$ sudo apt-get update

$ sudo apt-get install -y boot-repair
$ boot-repair

e reinicie o Ubuntu.

    
por Gaurav Sharma 19.07.2013 / 14:10