dd: writing `/dev/fd0': Input/output error

小魔菇 2010-04-24 11:17:45
dd: writing `/dev/fd0': Input/output error
我在虚拟机上创建了个软盘镜象 然后挂在虚拟机上 我想通过dd写如二进制可执行文件 但是出错
命令是 dd if=test.bin of=/dev/fd0 bs=512 count=1
test.bin只有512个字节

请高手指点一下吗?
...全文
569 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
handledos 2010-04-26
  • 打赏
  • 举报
回复
哦 ,你必须的保证你的test.bin文件只有512B才行。
小魔菇 2010-04-26
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 handledos 的回复:]

先创建一个软盘镜像 比如 :a.img dd if=test.bin of=a.img bs=512 count=1 conv=notrunc
搞定。
[/Quote]
实际上 我也是这样做的 但是没搞定
小魔菇 2010-04-26
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 handledos 的回复:]

哦 ,你必须的保证你的test.bin文件只有512B才行。
[/Quote]
能保证 就那么点字节
handledos 2010-04-25
  • 打赏
  • 举报
回复
先创建一个软盘镜像 比如 :a.img dd if=test.bin of=a.img bs=512 count=1 conv=notrunc
搞定。
小魔菇 2010-04-25
  • 打赏
  • 举报
回复
表沉了 我顶之
小魔菇 2010-04-24
  • 打赏
  • 举报
回复
查了下日志
floppy driver state
-------------------
now=25946822 last interrupt=25946074 diff=748 last called handler=cea59aba
timeout_message=floppy start
last output bytes:
0 90 25946072
13 80 25946072
0 90 25946072
1a 90 25946072
0 90 25946072
3 80 25946072
c1 90 25946072
9 90 25946072
7 80 25946074
0 90 25946074
8 80 25946074
e6 80 25946074
0 90 25946074
0 90 25946074
0 90 25946074
1 90 25946074
2 90 25946074
9 90 25946074
2a 90 25946076
ff 90 25946076
last result at 25946074
last redo_fd_request at 25946072
20 0
status=50
fdc_busy=1
do_floppy=cea5625f
fd_timer.function=cea56dd2
cont=cea5effc
current_req=cc05bc90
command_status=-1

floppy0: floppy timeout called
end_request: I/O error, dev fd0, sector 0
小魔菇 2010-04-24
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 qihuanfengyun 的回复:]

你有实际的软盘吗?

虽说你从虚拟机创建了,但是虚拟机总不能在你 dd if=test.bin of=/dev/fd0 bs=512 count=1 的时候把test.bin给你自动创建个文件并存在host系统吧。

就跟usb似的你虽然在虚拟机添加了,但你host没U盘能行吗?
[/Quote]
虚拟软盘 我已经挂在虚拟机上了
否则日志就不会有这些信息了
qihuanfengyun 2010-04-24
  • 打赏
  • 举报
回复
你有实际的软盘吗?

虽说你从虚拟机创建了,但是虚拟机总不能在你 dd if=test.bin of=/dev/fd0 bs=512 count=1 的时候把test.bin给你自动创建个文件并存在host系统吧。

就跟usb似的你虽然在虚拟机添加了,但你host没U盘能行吗?

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧