kaizen 发表于 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.
不是吗?
怎样出去报错?
除去了就行了吗?

kaizen 发表于 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
然后该怎么办?

GGGO 发表于 2004-7-4 14:59:42

照那篇英文文章的话是:
sfdisk -d /dev/hda > MyPartitionTable.txt
编辑MyPartitionTable.txt使之成为

# 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

也就是删掉
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
就行了。

kaizen 发表于 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里面吧

cee1 发表于 2004-7-4 15:29:24

yes

kaizen 发表于 2004-7-4 16:39:30

不会吧,这样我的windows就重新启动了?在MyPartitionTable.txt里面删除后大不了改变了该文本文件,对系统会产生影响吗?不会这么简单吧.

cee1 发表于 2004-7-4 16:57:22

再用命令(linux下)
cat MyPartitionTable.txt | sfdisk --no-reread -H255 /dev/hda
这时把txt的内容输入到命令中

kaizen 发表于 2004-7-4 17:08:29

输入/root/mpt.txt信息如下
#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后出现下面信息现在我该怎么办
# 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   IdSystem
/dev/hda1          0+    769   770-   6184993+1bHidden W95 FAT32
/dev/hda2      770    3491    2722   21864465    fW95 Ext'd (LBA)
/dev/hda3   *   3492    4798    1307   10498477+83Linux
/dev/hda4       4799    4864      66   530145   82Linux swap
/dev/hda5      770+   2125    1356-10892038+   bW95 FAT32
/dev/hda6       2126+   3491    1366-10972363+   bW95 FAT32
Input in the following format; absent fields get a default value.
<start> <size> <type > <bootable [-,*]> <c,h,s> <c,h,s>
Usually you only need to specify <start> and <size> (and perhaps <type>).

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

**********************************

kaizen 发表于 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
相应的语句试试。

kaizen 发表于 2004-7-4 18:06:33

不行那样后能看见windows启动时的滚动条但是在等录界面前就报错重气了
我cat /root/mpt.txt | sfdisk --no-reread -H255 /dev/hda后出现如下信息
# 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   IdSystem
/dev/hda1          0+    769   770-   6184993+1bHidden W95 FAT32
/dev/hda2      770    3491    2722   21864465    fW95 Ext'd (LBA)
/dev/hda3   *   3492    4798    1307   10498477+83Linux
/dev/hda4       4799    4864      66   530145   82Linux swap
/dev/hda5      770+   2125    1356-10892038+   bW95 FAT32
/dev/hda6       2126+   3491    1366-10972363+   bW95 FAT32
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectorsIdSystem
/dev/hda1            6312370049   123699871bHidden W95 FAT32
/dev/hda2      1237005056098979   43728930   fW95 Ext'd (LBA)
/dev/hda3   *5609898077095934   2099695583Linux
/dev/hda4      7709593578156224    106029082Linux swap
/dev/hda5      1237011334154189   21784077   bW95 FAT32
/dev/hda6      3415425356098979   21944727   bW95 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 ). )
现在怎么办?

kaizen 发表于 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 ).
一看就知道有错误了这么办啊?
**************************************急啊**********************************

GGGO 发表于 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的输入。
这个是那篇英文文章写的。实际效果我不清楚,不知道能否行得同?

kaizen 发表于 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 ).
这么办?

kaizen 发表于 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命令后的输出结果没有错误为止?
页: 1 2 3 [4] 5 6
查看完整版本: vwinxp无法启动了(在线等)急啊!!!