Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

启动扇区读取问题

25 views
Skip to first unread message

方潇

unread,
Jun 30, 2012, 9:11:21 AM6/30/12
to osfrom...@googlegroups.com
有大神有空指点下吗?

存在问题:
读取U盘时
在window下用winhex读取的启动扇区
和在linux下用dd读取前512字节
的结果为什么不同?

目标:
想修改U盘的启动扇区,使其能兼容fat32格式,然后实现读取存放在u盘中的loader文件的功能

高山流水

unread,
Jul 1, 2012, 8:03:27 AM7/1/12
to osfrom...@googlegroups.com
我不是大神,可能说得不好。据我所知,LINUX读取二进制文件可以用od命令,dd命令我只知道可以用它来写盘片,好像不能用来读二进制。

2012/6/30 方潇 <fxs...@gmail.com>,

--
You received this message because you are subscribed to the Google
Groups "自己动手写操作系统" group.
To post to this group, send email to osfrom...@googlegroups.com
To unsubscribe from this group, send email to
osfromscratc...@googlegroups.com
For more options, visit this group at
https://groups.google.com/group/osfromscratch?hl=en

sung descent

unread,
Jul 1, 2012, 10:20:54 AM7/1/12
to osfrom...@googlegroups.com
請問一下, 用什麼方法來讀取 u盘, bios call 或者自己寫 usb storage driver?

方潇

unread,
Jul 1, 2012, 9:54:42 PM7/1/12
to osfrom...@googlegroups.com
是先用dd写出前512字节,然后用xxd读的

方潇

unread,
Jul 1, 2012, 9:58:45 PM7/1/12
to osfrom...@googlegroups.com
自己写的系统是用的int13中断,目前还没有能力写usb驱动
至于在我提的问题中,是用软件读写的,都是算是系统调用


2012/7/1 sung descent <desc...@gmail.com>

Tobias Du

unread,
Mar 1, 2013, 10:17:50 PM3/1/13
to osfrom...@googlegroups.com
你做U盘的BOOTer有做成功吗?

fxstar1於 2012年6月30日星期六UTC+8下午9時11分21秒寫道:
Reply all
Reply to author
Forward
0 new messages