要把ubuntu直接装进硬盘,fdisk一下了,看不懂

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

要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#1

帖子 snowtown86 » 2009-07-25 10:34

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf0b1ebb0

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3825 30723288+ 7 HPFS/NTFS
/dev/sda2 3825 17647 111028224 f W95 Ext'd (LBA)
Partition 2 does not end on cylinder boundary.
/dev/sda3 17648 19457 14538825 12 Compaq diagnostics
/dev/sda5 3825 8032 33792000 7 HPFS/NTFS
/dev/sda6 8032 12749 37888000 7 HPFS/NTFS
/dev/sda7 12749 17647 39345152 7 HPFS/NTFS

0 电脑是联想旭日C466笔记本电脑,上面的结果是在wubi装的ubuntu下得到的。

1 Boot 下面有*的是活动分区(还是启动分区)的意思吗?一个硬盘上只能有一个这样的分区吗?怎么弄成这样的分区?

2 Id 是什么意思?怎么还有个“f”,“12”?

3 System 一列,我windows是NTFS格式的啊,前面HPFS是什么意思?

4 W95 Ext'd (LBA) (是不是分区表啊)和 Compaq diagnostics是什么格式?

5 /dev/sda2 3825 17647 111028224 f W95 Ext'd (LBA)
Partition 2 does not end on cylinder boundary.
下面这句话是怎么回事?

6 在xp下显示有个隐藏分区,一定是/dev/sda3咯。那么它是主分区?要是主分区,我就不能把ubuntu装进这里了,是不是?
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#2

帖子 adagio » 2009-07-25 10:43

1 是的
2 分区类型代号
3 就是NTFS
4 f是扩展分区,12就是Compaq diagnostics
5 你的sda2没有结束在最终柱面,即sda2开头和sda1结束有重叠,最好修复一下
6 是主分区,但是是隐藏的特殊分区类型,可能是用于恢复系统。可以装这里,但是需要格式化,并将失去恢复功能
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#3

帖子 smallapple » 2009-07-25 10:47

sudo fdisk /dev/sda

The number of cylinders for this disk is set to 38913.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

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)

1. a
2,3.4. l
头像
snowtown86
帖子: 1239
注册时间: 2009-06-13 16:01

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#4

帖子 snowtown86 » 2009-07-25 11:27

adagio 写了:1 是的
2 分区类型代号
3 就是NTFS
4 f是扩展分区,12就是Compaq diagnostics
5 你的sda2没有结束在最终柱面,即sda2开头和sda1结束有重叠,最好修复一下
6 是主分区,但是是隐藏的特殊分区类型,可能是用于恢复系统。可以装这里,但是需要格式化,并将失去恢复功能

5 你的sda2没有结束在最终柱面,即sda2开头和sda1结束有重叠,最好修复一下

请问这个用什么修复呢?
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#5

帖子 adagio » 2009-07-25 11:35

用分区软件,PQ或者PM扫描一下
当然最好的是全部重新分区,因为你的sda5、sda6、sda7也有部分重叠,用虽然问题不大,但总是有隐患
特别装linux的时候,可能会安装失败
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
snowtown86
帖子: 1239
注册时间: 2009-06-13 16:01

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#6

帖子 snowtown86 » 2009-07-25 11:39

这个重叠是什么原因造成的呢?
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#7

帖子 adagio » 2009-07-25 11:42

那我不知道,可能是不规范的分区方式造成的,比如ghost什么的
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
snowtown86
帖子: 1239
注册时间: 2009-06-13 16:01

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#8

帖子 snowtown86 » 2009-07-25 11:51

adagio 写了:用分区软件,PQ或者PM扫描一下
当然最好的是全部重新分区,因为你的sda5、sda6、sda7也有部分重叠,用虽然问题不大,但总是有隐患
特别装linux的时候,可能会安装失败
全部重新分区,硬盘里的东西就都没了吧。还是PQ PM能保留数据
头像
snowtown86
帖子: 1239
注册时间: 2009-06-13 16:01

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#9

帖子 snowtown86 » 2009-07-25 12:31

嘿,找到个好东西 :em09


千奇百怪的分区表错误 - 光盘安装只能看到整个硬盘而无法看到分区的同学请过来瞧瞧。

viewtopic.php?f=77&t=194802
头像
snowtown86
帖子: 1239
注册时间: 2009-06-13 16:01

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#10

帖子 snowtown86 » 2009-07-29 11:53

全部重新分区后,终于装上ubuntu了, :em99

不过后面带的加号是什么意思呢? :em23
fdisk.png
而且,我这样分区后,再在/dev/sda3安装vista时提示“windows无法找到符合其安装条件的系统卷”,然后就无法安装,这是怎么回事?/dev/sda3是主分区啊,难道vista非得装在第一主分区不成?? :!:
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#11

帖子 adagio » 2009-07-29 12:54

把sda3激活
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
snowtown86
帖子: 1239
注册时间: 2009-06-13 16:01

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#12

帖子 snowtown86 » 2009-07-29 14:01

我是用sudo fdisk /dev/sda 命令选择a toggle a bootable flag来激活

激活完重启成这样了

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1957 15719571 83 Linux
/dev/sda2 1958 16904 120061777+ 5 Extended
/dev/sda3 * 16905 19458 20506624 7 HPFS/NTFS
/dev/sda5 1958 3707 14056843+ 83 Linux
/dev/sda6 3708 3841 1076323+ 82 Linux swap / Solaris
/dev/sda7 3842 6516 21486906 7 HPFS/NTFS
/dev/sda8 6517 9555 24410736 7 HPFS/NTFS
/dev/sda9 9556 13202 29294496 b W95 FAT32
/dev/sda10 13203 16904 29736283+ b W95 FAT32

还是没法安
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#13

帖子 smallapple » 2009-07-29 14:03

把sda1的boot取消
头像
snowtown86
帖子: 1239
注册时间: 2009-06-13 16:01

Re: 要把ubuntu直接装进硬盘,fdisk一下了,看不懂

#14

帖子 snowtown86 » 2009-07-29 17:44

终于搞定了


ubuntu + vista 双系统 :em11


谢谢 adagio ,smallapple,and other people!!


下面图片中的加号呢,“或者更多”的意思,ubuntu也不确定啊 :lol:
fdisk.png
回复