分区编辑器(gparted)的奇怪问题[解决]

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

分区编辑器(gparted)的奇怪问题[解决]

#1

帖子 wesley628 » 2009-05-29 13:50

[解决]见8楼
俺刚开始用ubuntu没多久,就想多折腾折腾,但是在分区方面碰到一个奇怪的问题。
俺的硬盘是640的,原来的分区方案是:
sda1 40g
sda5 78g
sda6 2g
sda7 80g
sda8 356g
其中sd5是“/”,sd6是交换分区,其他分区都是NTFS。(因为我原来一直用win)

昨天尝试用新的分区方案,将原来的sd5,sd6删掉,重新分区为256M(“/boot”),75G("/"),4G(交换分区)然后重装。
但是问题来了,重新分区后对应分区表为:
sda1 40g
sda7 256m
sda8 75g
sda9 4g
sda5 80g
sda6 356g

一般来说应该是按sda5,sda6...这样的顺序依次排列的吧?为啥充分个区就这样的了呢?有没有办法能把这种序列调整过来?
还望各位赐教,顺便一提,现在操作系统可以正常使用,并无其他异常。
附图:
附件
Screenshot--dev-sda - GParted.png
上次由 wesley628 在 2009-05-30 10:57,总共编辑 3 次。
认真魔人附体
头像
wowoto
帖子: 3049
注册时间: 2009-04-11 12:17
系统: windows7

Re: 分区编辑器(gparted)的奇怪问题

#2

帖子 wowoto » 2009-05-29 14:17

no problem...no news is good news.. :em06
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
头像
wesley628
帖子: 68
注册时间: 2009-05-20 11:21

Re: 分区编辑器(gparted)的奇怪问题

#3

帖子 wesley628 » 2009-05-29 14:22

wowoto 写了:no problem...no news is good news.. :em06
不,实际上还是有问题的,再使用Clonezilla进行还原时,会失败。
认真魔人附体
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 分区编辑器(gparted)的奇怪问题

#4

帖子 smallapple » 2009-05-29 14:24

sudo fdisk /dev/sda

Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

Command (m for help): x

Expert command (m for help): m
Command action
b move beginning of data in a partition
c change number of cylinders
d print the raw data in the partition table
e list extended partitions
f fix partition order
g create an IRIX (SGI) partition table
h change number of heads
i change the disk identifier
m print this menu
p print the partition table
q quit without saving changes
r return to main menu
s change number of sectors/track
v verify the partition table
w write table to disk and exit

Expert command (m for help): f

修复后要重建grub
头像
wesley628
帖子: 68
注册时间: 2009-05-20 11:21

Re: 分区编辑器(gparted)的奇怪问题

#5

帖子 wesley628 » 2009-05-29 14:27

smallapple 写了:sudo fdisk /dev/sda

Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

Command (m for help): x

Expert command (m for help): m
Command action
b move beginning of data in a partition
c change number of cylinders
d print the raw data in the partition table
e list extended partitions
f fix partition order
g create an IRIX (SGI) partition table
h change number of heads
i change the disk identifier
m print this menu
p print the partition table
q quit without saving changes
r return to main menu
s change number of sectors/track
v verify the partition table
w write table to disk and exit

Expert command (m for help): f

修复后要重建grub
尝试一下
认真魔人附体
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 分区编辑器(gparted)的奇怪问题

#6

帖子 adagio » 2009-05-29 15:43

1. 这个分区编号仅仅是编号而已,但实际的扇区还是连续的,并不影响使用
2. 这样做是有道理的,因为linux有时会在grub或者fstab或者其他地方调用分区编号,如果不这样就乱了
3. 用win版的分区工具从新分一下区就会顺序排列了
4. 但这样可能会影响你的ubuntu(不一定,看具体情况)
5. 你的“/”分区太大了,浪费。最好调整为10G根分区+65G的“/home”
6. swap太大,浪费
7. /boot这个分区完全是多余的
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
wesley628
帖子: 68
注册时间: 2009-05-20 11:21

Re: 分区编辑器(gparted)的奇怪问题

#7

帖子 wesley628 » 2009-05-29 21:21

adagio 写了:1. 这个分区编号仅仅是编号而已,但实际的扇区还是连续的,并不影响使用
2. 这样做是有道理的,因为linux有时会在grub或者fstab或者其他地方调用分区编号,如果不这样就乱了
3. 用win版的分区工具从新分一下区就会顺序排列了
4. 但这样可能会影响你的ubuntu(不一定,看具体情况)
5. 你的“/”分区太大了,浪费。最好调整为10G根分区+65G的“/home”
6. swap太大,浪费
7. /boot这个分区完全是多余的
1 确实不影响使用呢
2 分区不按排列顺序编号总觉得有些别扭。。。
3&4 没试过,代价很大。。。
5&6 是么。。。下次我再调节一下
7 /boot其实很有用,尤其是在还原的时候,万一失败了,其他的系统还可以继续使用。我已经连续四五次还原失败了。。。这是血的教训。。。
总之多谢你的意见,我会仔细琢磨一下的
认真魔人附体
头像
wesley628
帖子: 68
注册时间: 2009-05-20 11:21

Re: 分区编辑器(gparted)的奇怪问题

#8

帖子 wesley628 » 2009-05-30 10:55

莫名奇妙的解决了。
先是在win下面把未分区的空间分了个区,再重启,grub启动失败。于是用livecd修复,分区顺序莫名其妙地就恢复了。
附图
附件
Screenshot--dev-sda - GParted1.png
认真魔人附体
cpring
帖子: 10
注册时间: 2008-04-18 12:26

Re: 分区编辑器(gparted)的奇怪问题[解决]

#9

帖子 cpring » 2009-08-10 12:13

怪乱的,看不大懂
不过我倒是看到一个

7 /boot其实很有用,尤其是在还原的时候,万一失败了,其他的系统还可以继续使用。我已经连续四五次还原失败了。。。这是血的教训。。。
总之多谢你的意见,我会仔细琢磨一下的
这个怎么用的啦。
回复