无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 3824|回复: 2
打印 上一主题 下一主题

SYSLinux 运行的一个问题,请教

[复制链接]
跳转到指定楼层
1#
发表于 2011-5-13 17:48:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Hi,all
     我遇到一个问题,首先对U盘分区,
     fdisk /dev/sdb
     n
     1
     
      +5G
      t
      6

     分区之后的信息是:
Disk /dev/sdb: 8011 MB, 8011120640 bytes
247 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 15314 * 512 = 7840768 bytes
Disk identifier: 0x8ef631df

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         686     5252671    6  FAT16

然后我再格式化U盘,
sudo mkfs.vfat /dev/sdb1

这个时候使用 fdisk -l
打印还是对的

但是我运行syslinux之后:sudo  syslinux /dev/sdb

发现分区错乱,信息如下:

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   ?      137949      265854   979374166   66  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(734, 123, 14) logical=(137948, 6, 21)
Partition 1 has different physical/logical endings:
     phys=(120, 143, 6) logical=(265853, 186, 22)
Partition 1 does not end on cylinder boundary.
/dev/sdb2   ?      225242      482806  1972168331    7  HPFS/NTFS
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(187, 180, 14) logical=(225241, 197, 52)
Partition 2 has different physical/logical endings:
     phys=(784, 0, 13) logical=(202345, 177, 1)
Partition 2 does not end on cylinder boundary.
/dev/sdb3   ?      214171      341732   976730017   7d  Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(252, 59, 46) logical=(214170, 230, 39)
Partition 3 has different physical/logical endings:
     phys=(139, 118, 4) logical=(61271, 37, 28)
Partition 3 does not end on cylinder boundary.
/dev/sdb4   ?       70766       70770       32804   6f  Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(370, 101, 50) logical=(70765, 130, 27)
Partition 4 has different physical/logical endings:
     phys=(10, 114, 13) logical=(70769, 200, 38)
Partition 4 does not end on cylinder boundary.


请给予指点。
谢谢了
2#
 楼主| 发表于 2011-5-13 19:09:33 | 只看该作者

已经解决了

不好意思,是我这边执行错了。查看了man syslinux发现没有指定offset

解决方法为:
sudo syslinux /dev/sdb -o 31744


如果以后有人遇到相关问题,需要注意把31744改成相应的的offset值

此帖结束。
回复

使用道具 举报

3#
 楼主| 发表于 2011-5-13 19:41:40 | 只看该作者

补充

其实加了offset的命令应该相当于
syslinux  /dev/sdb1

但是,这样做了之后U盘不能boot.

现在我分区格式化了之后,切换到了windows,使用syslinux.exe进行设置是没有问题了,可能是软件版本的问题。
回复

使用道具 举报

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

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-4-26 21:03

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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