成人免费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

2010-03-10 14:48:24

2009-12-02 14:09:52

2009-12-14 10:47:34

Linux makef

2009-11-30 10:54:59

solaris命令

2009-12-10 10:25:12

Linux觸摸屏驅動

2009-12-14 13:14:57

2009-12-21 14:33:11

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-17 09:56:26

Linux添加驅動模塊

2010-01-07 14:39:37

Linux配置遠程桌面

2010-01-07 13:27:22

Linux驅動程序

2009-12-11 10:02:46

Linux內存管理

2009-12-16 15:59:13

Linux設備文件管理

2021-02-20 06:08:07

LinuxWindows內核
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 黄网免费 | 高清黄色网址 | 日本三级电影在线观看视频 | 三级av在线 | 国产视频不卡一区 | 天天操天天摸天天干 | 亚欧精品一区 | 国产免费a视频 | 日韩毛片在线观看 | 精品久久久久久红码专区 | 成人免费观看网站 | 免费网站国产 | 日韩精品在线网站 | 欧美激情在线一区二区三区 | 欧美日韩最新 | 9999国产精品欧美久久久久久 | 久久久久亚洲 | 亚洲av一级毛片 | 国产大学生情侣呻吟视频 | 久久久久久久久久爱 | 玖玖综合在线 | 欧美一级淫片免费视频黄 | 九九热这里 | 久久国产精品99久久久久 | 欧美日韩国产一区二区三区 | 人操人人干人 | 欧美日韩精品一区 | 91精品国产综合久久婷婷香蕉 | 91精品观看 | 99re6在线视频 | 第一区在线观看免费国语入口 | 99亚洲精品 | 亚洲国产精品成人综合久久久 | 中文字字幕一区二区三区四区五区 | 免费日韩av | 日本在线观看视频 | 韩国成人在线视频 | 国产中文字幕在线 | 国产小视频在线观看 | 亚洲国产一区二区三区在线观看 | 户外露出一区二区三区 |