QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: kaizen

vwinxp无法启动了(在线等)急啊!!!

[复制链接]
 楼主| 发表于 2004-7-4 13:22:45 | 显示全部楼层
就多:
$ sfdisk -d /dev/hda
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
不是吗?
怎样出去报错?
除去了就行了吗?
回复

使用道具 举报

 楼主| 发表于 2004-7-4 13:31:13 | 显示全部楼层
我用sfdisk -d /dev/hda 后显示如下信息:
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
# partition table of /dev/hda
unit: sectors

/dev/hda1 : start=       63, size= 12369987, Id=1b
/dev/hda2 : start= 12370050, size= 43728930, Id= f
/dev/hda3 : start= 56098980, size= 20996955, Id=83, bootable
/dev/hda4 : start= 77095935, size=  1060290, Id=82
/dev/hda5 : start= 12370113, size= 21784077, Id= b
/dev/hda6 : start= 34154253, size= 21944727, Id= b
然后该怎么办?
回复

使用道具 举报

发表于 2004-7-4 14:59:42 | 显示全部楼层
照那篇英文文章的话是:
sfdisk -d /dev/hda > MyPartitionTable.txt
编辑MyPartitionTable.txt使之成为
[code:1]
# partition table of /dev/hda
unit: sectors

/dev/hda1 : start= 63, size= 16771797, Id= 7, bootable
/dev/hda2 : start= 16771860, size=217632555, Id= f
/dev/hda3 : start= 0, size= 0, Id= 0
/dev/hda4 : start= 0, size= 0, Id= 0
/dev/hda5 : start= 16771923, size=104856192, Id= 7
/dev/hda6 : start=121628178, size=112776237, Id= 7
[/code:1]
也就是删掉
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
就行了。
回复

使用道具 举报

 楼主| 发表于 2004-7-4 15:27:56 | 显示全部楼层
就这样就行了?在哪里把
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
删除掉阿?不回是在MyPartitionTable.txt里面吧
回复

使用道具 举报

发表于 2004-7-4 15:29:24 | 显示全部楼层
yes
回复

使用道具 举报

 楼主| 发表于 2004-7-4 16:39:30 | 显示全部楼层
不会吧,这样我的windows就重新启动了?在MyPartitionTable.txt里面删除后大不了改变了该文本文件,对系统会产生影响吗?不会这么简单吧.
回复

使用道具 举报

发表于 2004-7-4 16:57:22 | 显示全部楼层
再用命令(linux下)
cat MyPartitionTable.txt | sfdisk --no-reread -H255 /dev/hda
这时把txt的内容输入到命令中
回复

使用道具 举报

 楼主| 发表于 2004-7-4 17:08:29 | 显示全部楼层
输入/root/mpt.txt信息如下
[root@Kaizen root]#  cat /root/mpt.txt
# partition table of /dev/hda
unit: sectors

/dev/hda1 : start=       63, size= 12369987, Id=1b
/dev/hda2 : start= 12370050, size= 43728930, Id= f
/dev/hda3 : start= 56098980, size= 20996955, Id=83, bootable
/dev/hda4 : start= 77095935, size=  1060290, Id=82
/dev/hda5 : start= 12370113, size= 21784077, Id= b
/dev/hda6 : start= 34154253, size= 21944727, Id= b
*******
输入sfdisk --no-reread -H255 /dev/hda后出现下面信息现在我该怎么办
[root@Kaizen root]# sfdisk --no-reread -H255 /dev/hda
Warning: HDIO_GETGEO says that there are 16 heads

Disk /dev/hda: 77545 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hda1          0+    769     770-   6184993+  1b  Hidden W95 FAT32
/dev/hda2        770    3491    2722   21864465    f  W95 Ext'd (LBA)
/dev/hda3   *   3492    4798    1307   10498477+  83  Linux
/dev/hda4       4799    4864      66     530145   82  Linux swap
/dev/hda5        770+   2125    1356-  10892038+   b  W95 FAT32
/dev/hda6       2126+   3491    1366-  10972363+   b  W95 FAT32
Input in the following format; absent fields get a default value.
<start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s>
Usually you only need to specify <start> and <size> (and perhaps <type>).

/dev/hda1 :   (这里我该输入什么?)

**********************************
回复

使用道具 举报

 楼主| 发表于 2004-7-4 17:16:37 | 显示全部楼层
在/dev/hda1后我输入start= 63, size= 12369987, Id=1b(在txt文件里得来的)出现下面信息
/dev/hda1 :start= 63, size= 12369987, Id=1b
trailing junk after number

/dev/hda1 :

这是怎么回事,不是把txt里面的内容输入就行了吗?
回复

使用道具 举报

发表于 2004-7-4 17:54:42 | 显示全部楼层
你的 Windows 是装在哪个区?

如果是 C 盘,那么就不是 (hd0,4)  而应该是 (hd0,0),修改 /boot/grub/grub.conf
相应的语句试试。
回复

使用道具 举报

 楼主| 发表于 2004-7-4 18:06:33 | 显示全部楼层
不行那样后能看见windows启动时的滚动条但是在等录界面前就报错重气了
我cat /root/mpt.txt | sfdisk --no-reread -H255 /dev/hda后出现如下信息
[root@Kaizen root]# cat /root/mpt.txt | sfdisk --no-reread -H255 /dev/hda Warning: HDIO_GETGEO says that there are 16 heads

Disk /dev/hda: 77545 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hda1          0+    769     770-   6184993+  1b  Hidden W95 FAT32
/dev/hda2        770    3491    2722   21864465    f  W95 Ext'd (LBA)
/dev/hda3   *   3492    4798    1307   10498477+  83  Linux
/dev/hda4       4799    4864      66     530145   82  Linux swap
/dev/hda5        770+   2125    1356-  10892038+   b  W95 FAT32
/dev/hda6       2126+   3491    1366-  10972363+   b  W95 FAT32
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/hda1            63  12370049   12369987  1b  Hidden W95 FAT32
/dev/hda2      12370050  56098979   43728930   f  W95 Ext'd (LBA)
/dev/hda3   *  56098980  77095934   20996955  83  Linux
/dev/hda4      77095935  78156224    1060290  82  Linux swap
/dev/hda5      12370113  34154189   21784077   b  W95 FAT32
/dev/hda6      34154253  56098979   21944727   b  W95 FAT32
Successfully wrote the new partition table

Re-reading the partition table ...
BLKRRPART: 设备或资源忙
The command to re-read the partition table failed
Reboot your system now, before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk( 8 ). )
现在怎么办?
回复

使用道具 举报

 楼主| 发表于 2004-7-4 19:53:11 | 显示全部楼层
为什么在我的grub.conf里面有下面的信息
title Other
rootnoverify (hd0,4)
chainloader +1
有人说rootnoverify (hd0,0)才能正常启动
我改了后能看见winxp启动时的滚动条,但是后面就是两条错误信息,然后就重起了(这是在用cat /root/mpt.txt | sfdisk --no-reread -H255 /dev/hda前)现在我都不敢关机了因为用了cat /root/mpt.txt | sfdisk --no-reread -H255 /dev/hda后
有这样的内容:
Re-reading the partition table ...
BLKRRPART: 设备或资源忙
The command to re-read the partition table failed
Reboot your system now, before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk( 8 ).
一看就知道有错误了这么办啊?
**************************************急啊**********************************
回复

使用道具 举报

发表于 2004-7-4 20:52:22 | 显示全部楼层
你理解错了。干脆我把过程写出来吧。
1、sfdisk -d /dev/hda > MyPartitionTable.txt
2、编辑MyPartitionTable.txt文件,去掉开始的错误信息,保存。
3、cat MyPartitionTable.txt | sfdisk --no-reread -H255 /dev/hda
     注释:上面的命令打全再回车。就是把MyPartitionTable.txt的内容当作sfdisk的输入。
这个是那篇英文文章写的。实际效果我不清楚,不知道能否行得同?
回复

使用道具 举报

 楼主| 发表于 2004-7-4 21:51:05 | 显示全部楼层
为什么结果是这样的?没有成功吗?
Re-reading the partition table ...
BLKRRPART: 设备或资源忙
The command to re-read the partition table failed
Reboot your system now, before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk( 8 ).
这么办?
回复

使用道具 举报

 楼主| 发表于 2004-7-4 22:48:38 | 显示全部楼层
我用cat MyPartitionTable.txt | sfdisk --no-reread -H255 /dev/hda 把改后的txt中的内容写到命令后(就是把"警告"去处后的TXT)

但是用命令sfdisk -d /dev/hda > MyPartitionTable.txt后发现txt的内容还是和没改一样

我想应该不是直接把"警告"删掉就完事了吧,会不会是要修改其内容一直到用sfdisk -d /dev/hda > MyPartitionTable.txt命令后的输出结果没有错误为止?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-28 13:20 , Processed in 0.118368 second(s), 13 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表