hi linux professional = O
У меня была ubuntu 12.04 3.5.0-23-generic dual boot с win7. Но была проблема с использованием ati / radeon fglrx в моей системе, поэтому я решил понизить ядро (потому что этот драйвер работает с ядром < = 3.4).
Я установил linux-image.3.2.0-23-generic и linux-image.3.2.0-24-generic, и я использовал sudo update-grub, чтобы добавить эти ядра в загрузчик grub, и в результате были показаны все ядра, добавленные в загрузчик.
после перезагрузки в загрузчике было только 3.5.0-23, поэтому я подумал, что если я удалю 3.5.0-23, grub сможет загрузить другие ядра (я принимаю позор = [). Я удалил linux-image-3.5.0.23 generic через synaptic и после перезапуска в загрузчике grub есть только эти опции:
memtest
win7
Я использовал live usb для получения этой информации:
/ 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"
нет ничего в / boot .
1-это те ядра (3.2.0.23 и 3.20.24) существует в моей системе?
2_Если они есть в моей системе, как я могу добавить их в grub и использовать их?
3-есть ли способ получить 3.5.0.23 обратно ядро?
Я читал похожие темы раньше, но не хочу переустанавливать Ubuntu. Помогите мне, пожалуйста. : '(
РЕДАКТИРОВАТЬ 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
РЕДАКТИРОВАТЬ 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
РЕДАКТИРОВАТЬ 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]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[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
просто восстановите ваш grub и загрузчик с помощью
$ 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
и перезагрузите Ubuntu.