磁盘大小的困惑

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
nieyong2010
帖子: 7
注册时间: 2009-05-28 23:48

磁盘大小的困惑

#1

帖子 nieyong2010 » 2010-11-09 21:51

磁盘分区问题
在ubuntu的安装过程中,新建一个分区/dev/sda13,将ubuntu安装在这个分区上。结果在启动的时候,出现了Error:out of disk的错误。查找其原因,ubuntu安装过程中(或者在livecd下)显示磁盘的最大cyclinders要比在fedora下面看到的磁盘cyclinders大,

使用ubuntu 的livecd启动,查看硬盘的分区情况如下所示:

代码: 全选

root@ubuntu:/# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001

   Device Boot      Start         End      Blocks   Id  System
   /dev/sda1               1        1912    15358108+   7  HPFS/NTFS
   /dev/sda2   *        1913        9259    59013925+   f  W95 Ext'd (LBA)
   /dev/sda5            1913        3824    15358108+   7  HPFS/NTFS
   /dev/sda6            3825        4716     7164958+   b  W95 FAT32
   /dev/sda7            4717        5609     7167999+  83  Linux
   /dev/sda8            5609        6246     5119999+  83  Linux
   /dev/sda9            6246        6310      511999+  82  Linux swap / Solaris
   /dev/sda10           6311        6963     5245191   83  Linux
   /dev/sda11           7476        8128     5245191   83  Linux
   /dev/sda12           8129        8651     4200966   83  Linux
   /dev/sda13           8652        9259     4882432   83  Linux
登录到fedora之下,查看磁盘分区情况如下所示:

代码: 全选

[root@localhost ny]# fdisk -l

disk /dev/sda: 73.7 gb, 73728996352 bytes
255 heads, 63 sectors/track, 8963 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
disk identifier: 0x00000001

   device boot      start         end      blocks   id  system
   /dev/sda1               1        1912    15358108+   7  hpfs/ntfs
   /dev/sda2   *        1913        9259    59013925+   f  w95 ext'd (lba)
   /dev/sda5            1913        3824    15358108+   7  hpfs/ntfs
   /dev/sda6            3825        4716     7164958+   b  W95 FAT32
   /dev/sda7            4717        5609     7167999+  83  Linux
   /dev/sda8            5609        6246     5119999+  83  Linux
   /dev/sda9            6246        6310      511999+  82  Linux swap / Solaris
   /dev/sda10           6311        6963     5245191   83  Linux
   /dev/sda11           7476        8128     5245191   83  Linux
   /dev/sda12           8129        8651     4200966   83  Linux
   /dev/sda13           8652        9259     4882432   83  Linux
可以明显看出,上面显示磁盘一共只有8963个cylinders,而ubuntu livecd 下显示确是9729个。如果按照fedora下的磁盘大小来算,安装ubuntu的分区/dev/sda13结束位置确是9259,超过了磁盘最大的cylinder。

现在需要弄明白的几点有:

1 为什么ubuntu在安装时显示磁盘的大小超过了8963个cylinders呢?
2 在fedora使用fdisk命令显示的磁盘大小,是否不准确,是不是确实磁盘比显示的大,还存在一个隐藏空间。因为我记得我的电脑以前有联想的一键还原功能。
ryoohki
帖子: 3249
注册时间: 2008-10-28 20:18

Re: 磁盘大小的困惑

#2

帖子 ryoohki » 2010-11-11 17:37

可能是 fdisk 的版本不一样
nieyong2010
帖子: 7
注册时间: 2009-05-28 23:48

Re: 磁盘大小的困惑

#3

帖子 nieyong2010 » 2010-11-13 12:26

ryoohki 写了:可能是 fdisk 的版本不一样
fdisk的版本不一样,也不能够把我的磁盘的柱面数目给算错了呀。求内行解答呀?
同时,使用fdisk的时候,出现下面的问题:

代码: 全选

[root@localhost ny]# fdisk /dev/sda

The number of cylinders for this disk is set to 8963.
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)
不知道能否从这里找到一些突破口呢?
uestczhangchao
帖子: 1
注册时间: 2009-10-14 15:02

Re: 磁盘大小的困惑

#4

帖子 uestczhangchao » 2010-11-14 0:20

是不是机子上有其他federa不能识别的分区啊?
回复