UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 310
- 注册时间: 2009-05-04 23:56
UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
进入系统后“System”->“System Administrator”->“Partition Editor”。
网上找到的资料这么说的 ,可惜9.04找不到这个命令和程序啊!是不是没有升级成功的原因呢?现在升级因为硬盘大小的原因,有问题了。
网上找到的资料这么说的 ,可惜9.04找不到这个命令和程序啊!是不是没有升级成功的原因呢?现在升级因为硬盘大小的原因,有问题了。
- sxdhaoren
- 帖子: 852
- 注册时间: 2008-10-01 0:20
- 系统: ubuntu kylin16.04.3
-
- 帖子: 310
- 注册时间: 2009-05-04 23:56
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
谢谢失恋的朋友。现在的问题严重到了100% disk usage,连安装任何程序都有问题了。sxdhaoren 写了:Partition Editors是分区编辑器,在新立得里搜索GParted,安装
准备删除某些程序,可是,启动ADD/MOVE功能也有问题了。
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
-
- 帖子: 310
- 注册时间: 2009-05-04 23:56
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
有。U盘版本的。smallapple 写了:有livecd吗?
用livecd启动,里面就有Gparted。
现在用LIVE CD体验模式启动。
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
系统-->系统管理-->分区编辑器 (也许是E文,对照一下)
在gparted调整分区完记得按新的UUID修改menu.lst和fstab
在gparted调整分区完记得按新的UUID修改menu.lst和fstab
-
- 帖子: 310
- 注册时间: 2009-05-04 23:56
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
不对啊。其中系统安装所在的/DEV/SDA5,ext3无法改大!只能改小。可是目前我的问题就是这个地方太小了。laixt 写了:有。U盘版本的。smallapple 写了:有livecd吗?
用livecd启动,里面就有Gparted。
现在用LIVE CD体验模式启动。
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
-
- 帖子: 310
- 注册时间: 2009-05-04 23:56
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
把前面的一个WINDOWS分区,划出10个G,把这个分区拷贝到那里去。然后准备把这个分区删除,修改BOOT相关的信息和资料。实在不行,重新安装系统了事。smallapple 写了:先释放后面或前面空间,没空间怎么变大?
ext3后面的分区缩小下。
-
- 帖子: 310
- 注册时间: 2009-05-04 23:56
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
laixt 写了:smallapple 写了:先释放后面或前面空间,没空间怎么变大?
ext3后面的分区缩小下。
把前面的一个WINDOWS分区,划出10个G,把这个分区拷贝到那里去。然后准备把这个分区删除,修改BOOT相关的信息和资料。实在不行,重新安装系统了事。
图三是我现在的分区分布图。
图一,二分别是现在的和原来的两个分区的属性。UUID吧。
应该怎么样操作,把原来从sda5启动的程序调整到sda4来?然后我才可以把SDA4删除掉呢?
-
- 帖子: 310
- 注册时间: 2009-05-04 23:56
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
viewtopic.php?f=139&t=155696
一 转移/boot目录在硬盘上的位置。
备份/boot,sudo cp -r /boot boot
缷载/boot分区,sudo umount /boot
将boot目录复制回根目录 sudo cp -r boot /
二 重启,用windows安装光盘启动,将sda8和sda1格掉(,选择装在sda8上,果然就可以安装了,安装完之后,sda8就是C盘,D盘就是sda1,D盘容量只有不到一百M,也只占用了几十M。
三 用UBUNTU liveCD 启动电脑,打开终端,运行 sudo grub,得到grub>这样的提示符,
在其后输入find /boot/grub/stage1 得到类似于这样的一个结果(hd0,1),其实也就是找到现在的/boot所在分区,
再运行 root (hd0,1) ,然后运行 setup (hd0) ,
然后运行quit退出到终端。
四 修改menu.lst ,
先在终端输入sudo gedit 然后打开/boot所在分区,找到menu.lst这个文件,直接拖到终端窗口中,这样就得到了现在menu.lst这个文件的地址和文件名,直接按Enter
将启动菜单里的root一行的(hd0,0)修改为(hd0,1),将kernel和initrd两行中的/vmlinuz-2.6.24-21-generic root=UUID=8e8da985-598c-4525-af06-bfe0e45c5405 ro quiet splash locale=zh_CN和/initrd.img-2.6.24-21-generic前加上/boot,
如下所示,红色的是我加上去的:
看过这个帖子,没有很明白。因为里面没有出现我所需要修改的SDA4,5之类的东西。只是HD0,11什么的。
哪位大虾能够指点一下?
一 转移/boot目录在硬盘上的位置。
备份/boot,sudo cp -r /boot boot
缷载/boot分区,sudo umount /boot
将boot目录复制回根目录 sudo cp -r boot /
二 重启,用windows安装光盘启动,将sda8和sda1格掉(,选择装在sda8上,果然就可以安装了,安装完之后,sda8就是C盘,D盘就是sda1,D盘容量只有不到一百M,也只占用了几十M。
三 用UBUNTU liveCD 启动电脑,打开终端,运行 sudo grub,得到grub>这样的提示符,
在其后输入find /boot/grub/stage1 得到类似于这样的一个结果(hd0,1),其实也就是找到现在的/boot所在分区,
再运行 root (hd0,1) ,然后运行 setup (hd0) ,
然后运行quit退出到终端。
四 修改menu.lst ,
先在终端输入sudo gedit 然后打开/boot所在分区,找到menu.lst这个文件,直接拖到终端窗口中,这样就得到了现在menu.lst这个文件的地址和文件名,直接按Enter
将启动菜单里的root一行的(hd0,0)修改为(hd0,1),将kernel和initrd两行中的/vmlinuz-2.6.24-21-generic root=UUID=8e8da985-598c-4525-af06-bfe0e45c5405 ro quiet splash locale=zh_CN和/initrd.img-2.6.24-21-generic前加上/boot,
如下所示,红色的是我加上去的:
看过这个帖子,没有很明白。因为里面没有出现我所需要修改的SDA4,5之类的东西。只是HD0,11什么的。
哪位大虾能够指点一下?
-
- 帖子: 310
- 注册时间: 2009-05-04 23:56
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
find /boot/grub/stage1 :
输出:
(hd0,3),
(hd0,4)
我要把他改成为多少呢?
就是以下如何操作?
再运行 root (hd0,1) ,然后运行 setup (hd0) ,
然后运行quit退出到终端。
输出:
(hd0,3),
(hd0,4)
我要把他改成为多少呢?
就是以下如何操作?
再运行 root (hd0,1) ,然后运行 setup (hd0) ,
然后运行quit退出到终端。
- adagio
- 论坛版主
- 帖子: 22110
- 注册时间: 2008-02-17 23:47
- 来自: 美丽富饶的那啥星球
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
你的更分区是哪个?
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……
---------------------------------------------------------------------------------
★ [图片版]新手当自强(续)FAQ
★ [新手进阶]挂载、fstab、调整linux分区
★ [图片版]E17桌面环境配置手把手
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……
---------------------------------------------------------------------------------
★ [图片版]新手当自强(续)FAQ
★ [新手进阶]挂载、fstab、调整linux分区
★ [图片版]E17桌面环境配置手把手
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
-
- 帖子: 310
- 注册时间: 2009-05-04 23:56
Re: UBUNTU系统总算成功了。可惜硬盘分区小了。如何调整呢?
this is the munu.lst
how can I modify it? for the changed partition?
# 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=d162dc29-300a-431f-909f-6b80be6c20ba ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=d162dc29-300a-431f-909f-6b80be6c20ba
## 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
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## 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 9.04, kernel 2.6.28-11-generic
uuid d162dc29-300a-431f-909f-6b80be6c20ba
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=d162dc29-300a-431f-909f-6b80be6c20ba ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid d162dc29-300a-431f-909f-6b80be6c20ba
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=d162dc29-300a-431f-909f-6b80be6c20ba ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid d162dc29-300a-431f-909f-6b80be6c20ba
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
rootnoverify (hd0,0)
savedefault
chainloader +1
how can I modify it? for the changed partition?
# 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=d162dc29-300a-431f-909f-6b80be6c20ba ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=d162dc29-300a-431f-909f-6b80be6c20ba
## 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
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## 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 9.04, kernel 2.6.28-11-generic
uuid d162dc29-300a-431f-909f-6b80be6c20ba
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=d162dc29-300a-431f-909f-6b80be6c20ba ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid d162dc29-300a-431f-909f-6b80be6c20ba
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=d162dc29-300a-431f-909f-6b80be6c20ba ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, memtest86+
uuid d162dc29-300a-431f-909f-6b80be6c20ba
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
rootnoverify (hd0,0)
savedefault
chainloader +1