不小心多装了几个ubuntu 系统怎么删除阿,

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

不小心多装了几个ubuntu 系统怎么删除阿,

#1

帖子 gdhuihui1 » 2009-03-31 14:14

第一次安装ubuntu,装了好几遍,有几次是装到一半时就关机重启(我强制的)因为搞不懂阿,电脑原来是XP的,终于安装成功了,在启动界面里面好多可选的系统(包括安装成功的和不成功的,还有XP系统,)有的是进不去的,我想把那些多的UBUNTU删掉,只留下一个,不知道怎么删除阿

先谢谢各位大侠!
我按照5楼大侠的方法输密码之后,显示:command not fond

按照6楼大侠的输了之后显示:没有该文件目录!,网上的好多命令我照输之后好像都是这样的!哈哈,先给自己打气,一定可以搞明白

暂时我还不会剪切图片 :em03 贴不上来
上次由 gdhuihui1 在 2009-03-31 20:33,总共编辑 4 次。
gdhuihui1
帖子: 29
注册时间: 2009-03-31 12:46

Re: 多装了几个linux 系统怎么删除阿,还像有的还是没装好的

#2

帖子 gdhuihui1 » 2009-03-31 14:14

现自己回复下,希望懂的看见指点下,谢了
头像
kissdb
帖子: 578
注册时间: 2008-03-28 10:18
来自: 淮安and徐州

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#3

帖子 kissdb » 2009-03-31 14:33

你应该指的是不同的内核
那个你找找删除内核的文章

你也可以用管理员打开/boot/grub/menu.lst,删除一些不用的,
千万要小心删错了就进不去了
今天下午和一群女的聊天,突然有人说我不是男人。
我火了,我说,你说我不是,我掏出来给你看。
女生都笑了,有一个最牛,说,你掏啊……
于是我就把身份证掏出来了。
gdhuihui1
帖子: 29
注册时间: 2009-03-31 12:46

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#4

帖子 gdhuihui1 » 2009-03-31 14:43

先谢谢大侠指点 :em03 我是纯的新手,什么是管理员阿,在那里的?是系统管理马
harmock
帖子: 56
注册时间: 2008-06-12 10:42

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#5

帖子 harmock » 2009-03-31 15:16

那些多出来的系统,只不过是一些不同的内核,当ubuntu系统当机时,可以用于修复系统,比方就像winxp的安全模式,新手不建议去做修改。

如果确实想删除,方法如下:
打开终端,就是应用程序-附件-终端,弹出窗口后,输入sudo gedit /boot/grub/menu.lst回车,(sudo是暂时使用管理员权限修改文件)下一行要求输入管理员密码,输入你登录时的密码。注意,此时屏幕上无任何显示,照输入吧,完成后回车。就会打开修改窗口了。
窗口里每行题头带#号的是注释,不起作用。而那些不带#号的命令才是有用命令。
如果修改错了,可能造成无法启动。慎之又慎!建议多看看中文论坛里的关于启动和引导篇,等有把握后再去做修改。
weicz
帖子: 49
注册时间: 2007-03-17 1:15

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#6

帖子 weicz » 2009-03-31 15:37

你执行gedit /boot/grub/menu.lst
把内容贴上来大家看看,告诉你怎么改
头像
photor
论坛版主
帖子: 11004
注册时间: 2008-04-26 12:41

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#7

帖子 photor » 2009-03-31 15:59

gdhuihui1 写了:第一次安装ubuntu,装了好几遍,有几次是装到一半时就关机重启(我强制的)因为搞不懂阿,电脑原来是XP的,终于安装成功了,在启动界面里面好多可选的系统(包括安装成功的和不成功的,还有XP系统,)有的是进不去的,我想把那些多的UBUNTU删掉,只留下一个,不知道怎么删除阿
你是wubi安装的吧?把C:\boot.ini文件的内容帖上来看看 :em09
头像
小草疯狂
帖子: 230
注册时间: 2009-03-26 2:15

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#8

帖子 小草疯狂 » 2009-03-31 19:11

:em11 晕,不怕的啦!把我Win系统C盘下的boot.ini文件改下就好了,那个menu.lst,我也不会该,我是直接把Ubuntu下的/boot/grub/menu.lst文件复制到Win系统C盘下的,而且显示还有点乱码,不过还好,能用!嘿嘿! :em06
有朋友,没忧愁!耶!
gdhuihui1
帖子: 29
注册时间: 2009-03-31 12:46

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#9

帖子 gdhuihui1 » 2009-03-31 20:14

还没看懂,先感谢各位大侠的关心,一会慢慢看,有了你们,使我这个刚来UBUNTU的新手心里好暖,感激阿!
gdhuihui1
帖子: 29
注册时间: 2009-03-31 12:46

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#10

帖子 gdhuihui1 » 2009-03-31 20:25

我按照5楼大侠的方法输密码之后,显示:command not fond
是无的什么东西丢了吗?
按照6楼大侠的输了之后显示:没有该文件目录!,网上的好多命令我照输之后好像都是这样的!哈哈,先给自己打气,一定可以搞明白
harmock
帖子: 56
注册时间: 2008-06-12 10:42

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#11

帖子 harmock » 2009-04-01 11:39

gdhuihui1 写了:我按照5楼大侠的方法输密码之后,显示:command not fond
是无的什么东西丢了吗?
按照6楼大侠的输了之后显示:没有该文件目录!,网上的好多命令我照输之后好像都是这样的!哈哈,先给自己打气,一定可以搞明白
启动到ubuntu系统里,运行是否正常?能否打开一些系统软件操作?能联网吧?不是的话还是重装吧。
如果是,打开系统-系统管理-新立得软件包管理器,输入密码,在右上快速搜索框内输入gedit,回车。在下面的框内选中gedit,右键选择“标记已便安装”,点“应用“。待安装完成后,再输入命令就不会出现command not found错误了。但一般来说,安装好系统后,这些软件已经安装好了,不会出现这样的问题。再试试。
如果是刚接触ubuntu的新手,建议还是用wubi装好了,就算ubuntu系统不正常或是崩溃,不会影响启动菜单里已安装的winxp系统的。当ubuntu出现问题后就启动到winxp内发贴。觉得有些基础后,再改为硬盘安装好了。当初我也是这样过来,从这个网站里的许多热心释疑者学到了许多东西。

看看我手提的menu.lst内容吧,只选择最下面的一部分:红字是本人加的注释:
title Ubuntu 8.10, kernel 2.6.27-12-generic
uuid cb638199-9264-43de-a411-64a78f974fa3
kernel /boot/vmlinuz-2.6.27-12-generic root=UUID=cb638199-9264-43de-a411-64a78f974fa3 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-12-generic
quiet
正常启动系统,就是你启动时要选择的系统。当然可能跟你的不一定相同,以下也是,只作参考

title Ubuntu 8.10, kernel 2.6.27-12-generic (recovery mode)
uuid cb638199-9264-43de-a411-64a78f974fa3
kernel /boot/vmlinuz-2.6.27-12-generic root=UUID=cb638199-9264-43de-a411-64a78f974fa3 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-12-generic
恢复模式,相当于winxp里的安全模式

title Ubuntu 8.10, kernel 2.6.27-11-generic
uuid cb638199-9264-43de-a411-64a78f974fa3
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=cb638199-9264-43de-a411-64a78f974fa3 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet
旧核心,相对于上面的来讲

title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid cb638199-9264-43de-a411-64a78f974fa3
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=cb638199-9264-43de-a411-64a78f974fa3 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-11-generic
旧核心安全模式

title Ubuntu 8.10, memtest86+
uuid cb638199-9264-43de-a411-64a78f974fa3
kernel /boot/memtest86+.bin
quiet
内存测试,本人还没用过

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
#title Other operating systems(Linux):
#root
前面均带有#号,本行命令是启动到其它系统。本人不希望出现在启动菜单内,就用#号标记了


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Dell Utility
root (hd0,0)
savedefault
chainloader +1
dell系统盘


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows XP Home
root (hd0,1)
savedefault
chainloader +1
winxp系统
meinhimmel
帖子: 7
注册时间: 2009-03-29 11:52

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#12

帖子 meinhimmel » 2009-04-01 16:51

在ubuntu的启动选项里面的系统顺序跟/boot/menu.lst 里面设定的启动顺序相同。
你记住哪个系统进不去或者有错误,然后进入正常的系统。
打开/boot/menu.lst这个文件,然后把对应的系统选项用#给注释掉,最后保存就行了!!!
可能无法保存,是因为你没有修改权限,在终端里面修改权限,比如干脆点:sudo chmod 777 /boot/menu.lst
gdhuihui1
帖子: 29
注册时间: 2009-03-31 12:46

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#13

帖子 gdhuihui1 » 2009-05-07 19:33

汗,终于打开了,哈哈,首先想说的是没有一定文化还真用不了linux!XP小学生都会用!
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=7959e269-1939-49a6-b515-583baaeff685 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,11)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 8.04.2, kernel 2.6.24-24-generic
root (hd0,11)
kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=7959e269-1939-49a6-b515-583baaeff685 ro quiet splash
initrd /boot/initrd.img-2.6.24-24-generic
quiet

title Ubuntu 8.04.2, kernel 2.6.24-24-generic (recovery mode)
root (hd0,11)
kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=7959e269-1939-49a6-b515-583baaeff685 ro single
initrd /boot/initrd.img-2.6.24-24-generic

title Ubuntu 8.04.2, kernel 2.6.24-23-generic
root (hd0,11)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=7959e269-1939-49a6-b515-583baaeff685 ro quiet splash
initrd /boot/initrd.img-2.6.24-23-generic
quiet

title Ubuntu 8.04.2, kernel 2.6.24-23-generic (recovery mode)
root (hd0,11)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=7959e269-1939-49a6-b515-583baaeff685 ro single
initrd /boot/initrd.img-2.6.24-23-generic

title Ubuntu 8.04.2, kernel 2.6.24-16-generic
root (hd0,11)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=7959e269-1939-49a6-b515-583baaeff685 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04.2, kernel 2.6.24-16-generic (recovery mode)
root (hd0,11)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=7959e269-1939-49a6-b515-583baaeff685 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04.2, memtest86+
root (hd0,11)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda10.
title Ubuntu 8.04 (8.04) (on /dev/sda10)
root (hd0,9)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sda10
initrd /boot/initrd.img-2.6.24-16-generic
savedefault
boot
头像
AngelMAX
帖子: 2228
注册时间: 2009-02-25 18:18

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#14

帖子 AngelMAX » 2009-05-07 20:11

多了两个旧核心而已。没关系的,如果想删除,可以用EE给的牛X命令

代码: 全选

sudo aptitude purge ~ilinux-image-.*\(\!`uname -r`\) #清除非当前内核。
在中国搞IT的谁不知道Ctrl+C,Ctrl+V啊~
gdhuihui1
帖子: 29
注册时间: 2009-03-31 12:46

Re: 不小心多装了几个ubuntu 系统怎么删除阿,

#15

帖子 gdhuihui1 » 2009-05-09 23:21

AngelMAX 写了:多了两个旧核心而已。没关系的,如果想删除,可以用EE给的牛X命令

代码: 全选

sudo aptitude purge ~ilinux-image-.*\(\!`uname -r`\) #清除非当前内核。
谢谢大侠指点,成功删除了,好像还有一个说是删除失败,目录不为空,呵呵,不理他了,以后再慢慢搞,
回复