[分享]刚才删除了老内核,附方法zz

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
rucstudent
帖子: 633
注册时间: 2007-05-09 16:52

[分享]刚才删除了老内核,附方法zz

#1

帖子 rucstudent » 2007-10-08 1:08

使用Ubuntu一段时间后,就会发觉由于自动升级,系统里安装了很多内核。
像我,竟然安装了下面那么多,这个造成了漫长的启动列表。必须删掉一些不用的。

首先就是使用如下命令,列出所有安装的内核,下表中,带有image的就是内核文件。
从中选择要卸载的包,用apt-get来卸载

[tc@ibm:~]$ dpkg --get-selections|grep linux
libselinux1 install
linux-386 install
linux-image-2.6.15-23-386 install
linux-image-2.6.15-27-386 install
linux-image-2.6.15-27-686 install
linux-image-2.6.15-28-386 install
linux-image-2.6.15-28-686 deinstall
linux-image-386 install
linux-kernel-headers install
linux-restricted-modules-2.6.15-23-386 install
linux-restricted-modules-2.6.15-27-386 install
linux-restricted-modules-2.6.15-27-686 install
linux-restricted-modules-2.6.15-28-386 install
linux-restricted-modules-2.6.15-28-686 deinstall
linux-restricted-modules-386 install
linux-restricted-modules-common install
linux-sound-base install
util-linux install

具体的卸载方法为
sudo apt-get remove linux-image-2.6.15-23-386
这样就可以实现自动删除内核文件了,还可以释放磁盘空间。

另外还要记录一个命令。
uname -a
使用这个命令可以查看当前系统使用的内核。
glq2000
帖子: 5
注册时间: 2007-10-06 16:08

#2

帖子 glq2000 » 2007-10-08 1:48

多谢楼主 挺有用的东西~~`
glq2000
帖子: 5
注册时间: 2007-10-06 16:08

#3

帖子 glq2000 » 2007-10-08 1:49

问一下一个内核文件大约有多大啊?谢谢
PhoenixJ
帖子: 1492
注册时间: 2007-08-09 3:33
系统: Windows 12.04

#4

帖子 PhoenixJ » 2007-10-08 2:17

不用这么麻烦吧,直接新立得里面用linux-image搜到旧内核删除就是了。
lz的是什么版本?怎么内核版本比Feisty Fawn的低?FF的应该是2.6.20-15,升级后是2.6.20-16

2.6.15是老的不稳定的内核版本。

此外,查看内核版本用uname -r最简明。
PhoenixJ
帖子: 1492
注册时间: 2007-08-09 3:33
系统: Windows 12.04

#5

帖子 PhoenixJ » 2007-10-08 2:18

glq2000 写了:问一下一个内核文件大约有多大啊?谢谢
取决于编译过没有。

Ubuntu的内核包大概71.3MB左右,并不是很占地方,反正我不删除,省得做错事情还要恢复。

代码: 全选

/boot$ ls -l
总用量 33404
-rw-r--r-- 1 root root  414210 2007-04-15 16:07 abi-2.6.20-15-generic
-rw-r--r-- 1 root root  414274 2007-09-24 04:28 abi-2.6.20-16-generic
-rw-r--r-- 1 root root   83234 2007-04-15 13:33 config-2.6.20-15-generic
-rw-r--r-- 1 root root   83217 2007-09-24 01:47 config-2.6.20-16-generic
drwxr-xr-x 2 root root    4096 2007-10-07 20:12 grub
-rw-r--r-- 1 root root 7167021 2007-07-29 08:40 initrd.img-2.6.20-15-generic
-rw-r--r-- 1 root root 6842512 2007-04-15 19:56 initrd.img-2.6.20-15-generic.bak
-rw-r--r-- 1 root root 6935667 2007-10-07 08:58 initrd.img-2.6.20-16-generic
-rw-r--r-- 1 root root 6937828 2007-09-01 19:23 initrd.img-2.6.20-16-generic.bak
-rw-r--r-- 1 root root   94600 2006-10-20 19:44 memtest86+.bin
-rw-r--r-- 1 root root  806942 2007-04-15 16:08 System.map-2.6.20-15-generic
-rw-r--r-- 1 root root  807071 2007-09-24 04:30 System.map-2.6.20-16-generic
-rw-r--r-- 1 root root 1745100 2007-04-15 16:07 vmlinuz-2.6.20-15-generic
-rw-r--r-- 1 root root 1747372 2007-09-24 04:28 vmlinuz-2.6.20-16-generic
gg2005
帖子: 145
注册时间: 2007-09-25 18:54

#6

帖子 gg2005 » 2007-10-08 10:54

我就说怎么启动列表的东西越来越多了。原来这样呀。为什么不自动删除呢?
头像
依寻依然
帖子: 1617
注册时间: 2006-10-31 14:49

#7

帖子 依寻依然 » 2007-10-08 11:52

gg2005 写了:我就说怎么启动列表的东西越来越多了。原来这样呀。为什么不自动删除呢?
新内核要是不能正常使用,那怎么办呢?为用户的安全着想
还是自己到新立得去找吧,看版本号,新的留着,老的删掉。这样心里有数
Borders are meant to be crossed
头像
purpleice
帖子: 182
注册时间: 2006-06-01 11:01

#8

帖子 purpleice » 2007-10-08 18:39

synatic比较简单些~对于新手来说!
bluepeng
帖子: 343
注册时间: 2007-04-02 14:35

#9

帖子 bluepeng » 2007-10-08 19:13

删了老的内核,收回114MB空间~~
rucstudent
帖子: 633
注册时间: 2007-05-09 16:52

#10

帖子 rucstudent » 2007-10-08 23:29

用synlid
容易删错我觉得
头像
cks
帖子: 252
注册时间: 2005-10-02 13:32
联系:

#11

帖子 cks » 2008-06-13 10:34

谢谢楼主
用新立得删了
在用:
山寨上网本,
Atom N450+2GDDR2+160GWD
Ubuntu10.10/Win7/Xp

*********
2005年产 神舟 天运 M162S给妹妹用呢
Ubuntu(10.10Alaph1)
CPU:Dothan725
主板芯片:Intel825G
内存:256DDR+1GDDR
硬盘:三星80G
光驱:Combo(只能读不能刻了)
USB2.0 ,1394,10/100M网卡
头像
Final_x
帖子: 383
注册时间: 2008-05-03 23:05
联系:

#12

帖子 Final_x » 2008-09-14 18:48

谢谢LZ。。~
回复