當(dāng)前訪問本站: hits

          yjhmily

          堅(jiān)持走自己的路……

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            100 Posts :: 8 Stories :: 353 Comments :: 0 Trackbacks

          提示/boot目錄空間不足,查了一些資料,最后把久的內(nèi)核給卸載得以解決。

          1.首先查看自己使用的內(nèi)核

          lxz@lxz-pc:~$ uname -a

          Linux lxz-pc 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:48 UTC 2011 i686 GNU/Linux


          2.然后查看自己boot目錄,選擇需要卸載的版本
          lxz@lxz-pc:~$    cd /boot
          lxz@lxz-pc:/boot$  ls -l
          總計(jì) 35125
          -rw-r--r-- 1 root root   705861 2011-01-22 06:04 abi-2.6.35-25-generic
          -rw-r--r-- 1 root root   709370 2011-03-01 23:56 abi-2.6.35-28-generic-pae
          -rw-r--r-- 1 root root   128615 2011-01-22 06:04 config-2.6.35-25-generic
          -rw-r--r-- 1 root root   129056 2011-03-01 23:56 config-2.6.35-28-generic-pae
          drwxr-xr-x 3 root root     7168 2011-03-23 10:31 grub
          -rw-r--r-- 1 root root 10761551 2011-03-04 10:49 initrd.img-2.6.35-25-generic
          -rw-r--r-- 1 root root 10741569 2011-03-23 10:18 initrd.img-2.6.35-28-generic-pae
          drwx------ 2 root root    12288 2011-01-05 04:52 lost+found
          -rw-r--r-- 1 root root   165084 2010-09-25 01:14 memtest86+.bin
          -rw-r--r-- 1 root root   167264 2010-09-25 01:14 memtest86+_multiboot.bin
          -rw-r--r-- 1 root root  1831296 2011-01-22 06:04 System.map-2.6.35-25-generic
          -rw-r--r-- 1 root root  1873873 2011-03-01 23:56 System.map-2.6.35-28-generic-pae
          -rw-r--r-- 1 root root     1192 2011-01-22 06:06 vmcoreinfo-2.6.35-25-generic
          -rw-r--r-- 1 root root     1196 2011-03-01 23:57 vmcoreinfo-2.6.35-28-generic-pae
          -rw-r--r-- 1 root root  4294672 2011-01-22 06:04 vmlinuz-2.6.35-25-generic
          -rw-r--r-- 1 root root  4428048 2011-03-01 23:56 vmlinuz-2.6.35-28-generic-pae
          上面顯示的情況中,是我已經(jīng)把linux-image-2.6.35-27-generic的結(jié)果

          3.卸載舊內(nèi)核應(yīng)該使用命令:
          lxz@lxz-pc:/boot$  sudo apt-get remove linux-image-2.6.35-27-generic

          4.查看/boot目錄:
          lxz@lxz-pc:/boot$ sudo du -m /boot           //以MB為單位顯示
          1    /boot/grub/locale
          2    /boot/grub
          1    /boot/lost+found
          36    /boot

          5.查看文件系統(tǒng)使用情況,和文件系統(tǒng)被掛在的位置:
          lxz@lxz-pc:/boot$  df  -lh
          文件系統(tǒng)            容量  已用  可用 已用%% 掛載點(diǎn)
          /dev/sda7              71G  7.7G   60G  12% /
          none                 1001M  244K 1001M   1% /dev
          none                 1007M  216K 1006M   1% /dev/shm
          none                 1007M  100K 1006M   1% /var/run
          none                 1007M     0 1007M   0% /var/lock
          /dev/sda8              92M   42M   46M  48% /boot
          posted on 2011-04-06 12:09 kangxm 閱讀(3212) 評(píng)論(0)  編輯  收藏 所屬分類: 開發(fā)環(huán)境&工具
          主站蜘蛛池模板: 宜阳县| 台前县| 兴文县| 耒阳市| 油尖旺区| 比如县| 永福县| 衢州市| 平武县| 溧阳市| 玉林市| 合水县| 云林县| 广丰县| 衡阳县| 永州市| 炉霍县| 东方市| 剑河县| 榆社县| 柯坪县| 静乐县| 阜平县| 仲巴县| 潢川县| 怀宁县| 库尔勒市| 防城港市| 岱山县| 九龙坡区| 大姚县| 炎陵县| 漳州市| 香港| 邢台市| 渝中区| 富民县| 霸州市| 桃源县| 应城市| 突泉县|