成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

闡述備份Linux內核步驟

運維 系統運維
隨著學習Suse的深入,面臨的問題也是越來越多,Suse編譯內核是非常頭疼的,今天編譯Suse 10.2內核直接導致Suse面臨重裝,要是備份Linux內核就好了,本文就是介紹備份Linux內核的簡單步驟。

隨著學習Suse的深入,面臨的問題也是越來越多,Suse編譯內核是非常頭疼的,今天編譯Suse 10.2內核直接導致Suse面臨重裝,要是備份Linux內核就好了,備份Linux內核相當的簡單,下面就是步驟,英文也很簡單,相信準備對內核有所動作的人都能輕易看懂。雖然是針對Suse寫的,其它Linux發行版本也大同小異,下面就是備份Linux內核的簡單步驟:

 

  1. 1) open terminal  
  2.  
  3. 2) su to root  
  4.  
  5. 3) change directory to /boot  
  6. #cd /boot  
  7.  
  8. 4) see what are the names of running kernels  
  9. #ls  
  10.  
  11. 5) make backup copy of your kernel and System.map  
  12. #cp vmlinuz-2.6.18.8-0.1-default vmlinuz-2.6.18.8-0.1-bak  
  13. #cp System.map-2.6.18.8-0.1-default System.map-2.6.18.8-0.1-bak  
  14. #cp -R /lib/modules/2.6.18.8-0.1-default /lib/modules/2.6.18.8-0.1-bak  
  15.  
  16. 6) create initrd  
  17. #mkinitrd -s 1024×768  
  18.  
  19. 7) check if new initrd was created:  
  20. #ls  
  21. and look for initrd-2.6.18.8-0.1-bak  
  22.  
  23. 8) make backup of your current GRUB menu (in the case that you may screw up editing)  
  24. #cp /boot/grub/menu.lst /boot/grub/menu.lst_bak  
  25.  
  26. 9) edit grub menu whatever editor (I use vi, but you may use kedit.gedit, joe, pico and so on as long as you run editor with root privileges)  
  27. boot/grub/menu.lst  
  28.  
  29. 10) add new entry at the end of the file (copy original entry for Suse Linux 10.2):  
  30. title Suse Linux 10.2 kernel backup  
  31. root (hd0,0)  
  32. kernel /vmlinuz-2.6.18.8-0.1-bak root=/dev/sda2 vga=0×317 vga=normal video=vesa:1024×768@60 resume=/dev/sda3 elevator=deadline splash=silent showopts  
  33. initrd /initrd-2.6.18.8-0.1-bak  
  34. important changes are marked bold. You may not have the other stuff or it may be different. Simply keep the rest of the file exactly the same as in the original entry for Suse Linux 10.2  
  35.  
  36. 11) save the file  
  37.  
  38. 12) restart computer and select from GRUB menu “Suse Linux 10.2 kernel backup”  
  39. if system boots successfully you have working kernel backup, now if Suse updates kernel next time and new kernel will not boot properly, you can always boot to Suse Linux 10.2 kernel backup which will never be modified (and safe from screwed updates)  
  40.  
  41. 舉一反三的令一種方法:  
  42. ideally would be do something different:  
  43. 1) install kernel sources  
  44.  
  45. 2) su to root  
  46.  
  47. 3) copy kernel sources to the new direcory:  
  48. #cp -R /usr/src/Linux-2.6.18.8-0.1 /usr/src/Linux-2.6.18.8-0.1-bak  
  49.  
  50. 4) change directory to /usr/src/Linux-2.6.18.8-0.1-bak  
  51. #cd /usr/src/Linux-2.6.18.8-0.1-bak  
  52.  
  53. 5) create config file  
  54. #make oldconfig  
  55.  
  56. 6) change kernel name (super important!!!)  
  57. by editing .config file (in /usr/src/Linux-2.6.18.8-0.1-bak) Tehre is a dot before “config”  
  58. scroll down to the line:  
  59. #  
  60. # General setup  
  61. #  
  62. CONFIG_LOCALVERSION=”"  
  63. and change local kernel name version by adding:  
  64. CONFIG_LOCALVERSION=”-bak”  
  65. if there is anything already written in the line  
  66. CONFIG_LOCALVERSION=”"  
  67. delete old name remember that new name must have quotation marks.  
  68.  
  69. 7) save file  
  70.  
  71. 8) compile kernel  
  72. #make bzImage && make modules && make modules_install && make install  
  73. You just created a new kernel! Exactly the same as the running one but the name will have “-bak” at the end  
  74. there is nothing more required. in your GRUB menu will appear a new entry pointing to the new kernel. Old kernel will not be affected (if you did exactly as I suggested)  
  75. new kernel is invisible to Yast and will never be changed.  
  76. Because the latest kernel upgrade is a real disaster I would make backup copy of grub menu (as root):  
  77. #cp /boot/grub/menu.lst /boot/grub/menu.lst_bak  
  78. now you can boot to the new kernel  
  79. you will get to command line (when booting to the new kernel) if you installed nvidia/ati drivers,  
  80. That is easy to fix of course. what is important, you have working Suse setup in spite of all Suse devs efforts to screw you up  

通過我的介紹,這篇簡單的備份Linux內核的文章會對你有幫助。其實我的主要目的就是提醒各位應用Linux的朋友,記得要備份Linux內核。

【編輯推薦】

  1. SUSE Linux 10的虛擬化:Xen
  2. 實操Suse防火墻配置
  3. Suse Linux整理大全:快捷鍵
  4. 學習手札:加強Suse Linux操作系統安全
  5. 詳解Suse Postfix配置解法
責任編輯:小霞 來源: eNet硅谷動力
相關推薦

2009-12-17 14:24:39

Linux內核

2009-12-09 14:15:39

2009-01-30 21:56:00

2009-11-30 10:54:59

solaris命令

2010-03-10 14:48:24

2009-12-02 14:09:52

2009-12-14 10:47:34

Linux makef

2009-12-01 18:41:08

SUSE Linux

2009-12-22 15:12:33

Linux擴展文件系統

2009-12-23 10:50:57

Linux chmod

2009-12-25 17:15:03

Linux內存

2009-12-10 10:25:12

Linux觸摸屏驅動

2009-12-14 13:14:57

2009-12-21 14:33:11

2010-01-07 13:27:22

Linux驅動程序

2009-12-11 10:02:46

Linux內存管理

2009-12-16 15:59:13

Linux設備文件管理

2009-12-17 09:56:26

Linux添加驅動模塊

2010-01-07 14:39:37

Linux配置遠程桌面

2021-02-20 06:08:07

LinuxWindows內核
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 中文字幕成人免费视频 | 国产区在线视频 | 密色视频 | 99热视| av中文字幕网 | 久久精品福利视频 | 亚洲精品一 | 午夜婷婷激情 | 91精品国产综合久久久久 | 免费成人av | 日韩在线欧美 | 日韩无 | 欧美h视频 | 国产精品看片 | 一级黄a视频| 国产精品观看 | 久久伊人一区二区 | 免费精品久久久久久中文字幕 | 亚洲精品av在线 | 久久久国产精品 | 91aiai| 视频一区二区在线观看 | 日韩精品成人免费观看视频 | 精品久久久久久红码专区 | 午夜免费观看网站 | 久久成人一区 | 激情伊人网 | 综合第一页 | 久久亚洲国产精品日日av夜夜 | 视频一区二区三区在线观看 | 国产在线一区二区 | 亚洲第一女人av | 国产毛片久久久久久久久春天 | 国产99小视频 | 在线观看国产wwwa级羞羞视频 | 天天曰夜夜操 | 性做久久久久久免费观看欧美 | 岛国av免费在线观看 | 欧美成人a∨高清免费观看 色999日韩 | 黄色在线免费观看视频网站 | 中文字幕亚洲一区二区三区 |