系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
jiehanzheng
- 帖子: 55
- 注册时间: 2009-04-14 23:11
#1
帖子
由 jiehanzheng » 2009-10-25 12:59
安装 Ubuntu 时只能看到整个硬盘,没有分区信息,仔细读完置顶贴以后,还是不会操作..
下面是运行两条语句的结果:
ubuntu@ubuntu:~$ sudo fdisk -lu
Disk /dev/sda: 64.0 GB, 64023257088 bytes
240 heads, 63 sectors/track, 8270 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x13dbf84d
Device Boot Start End Blocks Id System
/dev/sda1 * 63 116665919 58332928+ 7 HPFS/NTFS
/dev/sda2 116674560 125057519 4191480 12 Compaq diagnostics
ubuntu@ubuntu:~$ sudo parted /dev/sda print
Error: Can't have a partition outside the disk!
看起来是 sda2 超出了磁盘大小,sda2 应该是 ThinkPad 的恢复分区,没占满,应该可以调小一些。
请问,如何调整它的大小?我刚刚试了 Norton PartitionMagic,不行,
-
adagio
- 论坛版主
- 帖子: 22110
- 注册时间: 2008-02-17 23:47
- 来自: 美丽富饶的那啥星球
#3
帖子
由 adagio » 2009-10-25 15:17
你的问题可能就在那个sda2,ubuntu不认识这种分区
我要是你,就备份数据,然后重新分区
-
jiehanzheng
- 帖子: 55
- 注册时间: 2009-04-14 23:11
#4
帖子
由 jiehanzheng » 2009-10-25 15:28
这好像是恢复分区,所以要是丢了可能损失比较惨重... 没法恢复了就
能 resize 么?
还有,我也没法备份那个分区的数据呀.. 任何系统都打不开那个 volume... 我只知道那个分区没满~
-
jiehanzheng
- 帖子: 55
- 注册时间: 2009-04-14 23:11
#5
帖子
由 jiehanzheng » 2009-10-25 15:32
会不会和 Can't have a partition outside the disk! 有关系呢?
-
eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
#6
帖子
由 eexpress » 2009-10-25 15:41
win才需要恢复分区的啊。
df -hT -x tmpfs 看下吧。这尺寸看了头晕的。
● 鸣学
-
jiehanzheng
- 帖子: 55
- 注册时间: 2009-04-14 23:11
#7
帖子
由 jiehanzheng » 2009-10-25 15:56
eexpress 写了:win才需要恢复分区的啊。
df -hT -x tmpfs 看下吧。这尺寸看了头晕的。
是呀,我希望保留恢复功能,以防之后出问题没法恢复了...
-
billbear
- 帖子: 3681
- 注册时间: 2008-05-03 23:42
#8
帖子
由 billbear » 2009-10-25 19:09
是 sda2 超出磁盘。需要缩小 sda2,问题是不知道它的文件系统是什么,就不知道怎么缩小。
sudo blkid 看看,我想应该是 fat。
-
jiehanzheng
- 帖子: 55
- 注册时间: 2009-04-14 23:11
#9
帖子
由 jiehanzheng » 2009-10-25 19:36
billbear 写了:是 sda2 超出磁盘。需要缩小 sda2,问题是不知道它的文件系统是什么,就不知道怎么缩小。
sudo blkid 看看,我想应该是 fat。
感谢,现在去运行看看,稍等
-
jiehanzheng
- 帖子: 55
- 注册时间: 2009-04-14 23:11
#10
帖子
由 jiehanzheng » 2009-10-25 19:44
Here's my result:
代码: 全选
ubuntu@ubuntu:~$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="AC886A55886A1DD8" LABEL="Preload" TYPE="ntfs"
/dev/sda2: LABEL="SERVICEV001" UUID="66C8-7338" TYPE="vfat"
-
billbear
- 帖子: 3681
- 注册时间: 2008-05-03 23:42
#11
帖子
由 billbear » 2009-10-25 20:24
是 fat,把分区 id 改成 0b 或 0c 应该就能识别和缩小了。回头再改回 12 去。我想是这样的。
或者应该可以用 ghost 把 sda2 备份一个,然后删掉重建,ghost 恢复回去。
话说回来, 64G 的硬盘, xp 吧?那个恢复分区我通常是直接干掉的。
-
jiehanzheng
- 帖子: 55
- 注册时间: 2009-04-14 23:11
#12
帖子
由 jiehanzheng » 2009-10-25 21:34
Sorry, how to do that, how to adjust partition's ID? That's ThinkPad X300's recovery partition, I think I need it.
I'm currently running on Ubuntu 9.10 LIve CD, so apologize for the English reply.
-
jiehanzheng
- 帖子: 55
- 注册时间: 2009-04-14 23:11
#13
帖子
由 jiehanzheng » 2009-10-25 21:35
And, btw, where to resize that? In Windows XP or Ubuntu?
-
billbear
- 帖子: 3681
- 注册时间: 2008-05-03 23:42
#14
帖子
由 billbear » 2009-10-25 22:03
jiehanzheng 写了:Sorry, how to do that, how to adjust partition's ID? That's ThinkPad X300's recovery partition, I think I need it.
I'm currently running on Ubuntu 9.10 LIve CD, so apologize for the English reply.
sudo sfdisk -c -f $disk $partnum $id
对你来说,现在 $disk 是 /dev/sda,$partnum 是 2,$id 是 0c
-
billbear
- 帖子: 3681
- 注册时间: 2008-05-03 23:42
#15
帖子
由 billbear » 2009-10-25 22:12
jiehanzheng 写了:And, btw, where to resize that? In Windows XP or Ubuntu?
Better under windows. I think Windows understands FAT better than linux does. I have positive experiences with "winPM".
But I cannot assure you that this will not cause data loss or malfunction of that partition.
You are at your own risk.