Board logo

标题: USBexFAT.com DOS下可读写U盘的exfat分区 [打印本页]

作者: yaya     时间: 2010-12-27 18:03    标题: USBexFAT.com DOS下可读写U盘的exfat分区

USBexFAT.com 配合usbaspi.sys,可驱动u盘,读写fax16、fat32、exfat分区。
支持usb-fdd,usb-zip,usb-hdd格式。
程序在DOS命令符下或autoexec.bat中加载,显示中文需要cp936uni.tbl或者cp936uni.gbk文件。
支持长文件名,需加载doslfn.com 4.0e版本(4.0f版本不能正确回写中文)。
输入 '/? ' 可显示帮助信息。
由于DOS使用4字节存储文件长度,因此单个文件尺寸大于4G时不能正确读写。


v1.0a版本:支持usb-fdd格式,修正了一些错误。

[ Last edited by yaya on 2011-1-7 at 15:45 ]
附件 1: USBexFAT_1.0a.rar (2011-1-7 15:45, 7.85 K,下载次数: 37)

作者: Roy     时间: 2010-12-29 01:04
幫你轉載了:
http://www.bttr-software.de/forum/board_entry.php?id=9208
作者: fujianabc     时间: 2010-12-29 10:37
很强的东西啊!
不过不能支持4G以上的文件很遗憾,很多人把u盘格成exFAT就是为了存储4G以上文件用的
作者: yaya     时间: 2010-12-29 10:53
谢谢Roy版主的转载!
作者: Roy     时间: 2010-12-29 11:18
要是如果有DOSNTFS就更好了 (bean寫的ntfs讀寫庫還是很好的,只是沒人放在DOS用喔)
作者: Roy     时间: 2010-12-29 11:22
另外,bttr的RayeR發現DOSExFAT不支持多合一讀卡器,看看你要不要修。
作者: yaya     时间: 2010-12-29 15:14
多合一讀卡器是由usbaspi.sys识别和驱动的,在dos下加载usbaspi,看下一屏幕信息,是否已经识别。
USBexFAT对于u盘,需要格式化为hdd或zip,即有主引导记录MBR。
作者: yaya     时间: 2010-12-30 11:40
usbaspi.sys支持PCI规范中类/子类/设计的06/07/00,即CardBus bridge桥设备;
支持0c/03/00,0c/03/10,0c/03/20,即Universal Serial Bus Mass Storage通用串行总线大容量存储器uhci/ohci/ehci设备。

对于大容量存储器,支持usb_msc规范中子类02(一般为CD-ROM)的协议00,01或50;
支持子类05(一般为FDD)的协议50;
支持子类06(通常的u盘)的协议50;
支持子类04(FDD)。
作者: Roy     时间: 2010-12-31 12:59
對了,能加載後卸載嗎?
(我還是想說,要是加上只讀NTFS支援就更好了)
作者: yaya     时间: 2011-1-1 10:39
当前版本加载后不能卸载
作者: yaya     时间: 2011-1-5 17:56
松下的usbaspi.sys启动太慢,对于某些机型第一次启动死机,必须重启,且不能识别主机前部的usb端口。出于学习和研究的目的,DIY了一下。有同样兴趣的朋友可向我索取,请研究完毕后予以删除。

由于DIY是为了u盘使用,去掉了对大容量存储器子类04(FDD)的支持。需要该项功能的朋友请使用原始版本。

[ Last edited by yaya on 2011-1-6 at 10:42 ]
作者: fdisk21     时间: 2011-1-6 08:16
谢谢,我喜欢exFAT
作者: Roy     时间: 2011-1-6 09:17


  Quote:
Originally posted by yaya at 2011-1-5 17:56:
松下的usbaspi.sys启动太慢,对于某些机型第一次启动死机,必须重启,且不能识别主机前部的usb端口。出于学习和研究的目的,DIY了一下。有同样兴趣的朋友可向我索取,请研究完毕后予以删除。

RayeR報告說他的USB-FDD被認成HDD了。

原文:
So then I took USB floppy SONY MPF820U at home. It was recognized by USBASPI.SYS but drive letter was not assigned. It displayed multiple error about partition. Of course floppy doesn't contain a MBR with partitions it looks like a bug treating floppy as a HDD.


ASPI Manager for USB mass-storage  Version 2.27x                             
FANJIANYE Revised in 2010/09/16                                             
                                                                             
    ID:0 LUN:0 = SONY     USB-FDU          5.01                             
                                                                             
    Installed ASPI manager.                                                
1 char device installed.                                                     
Driver loaded.                                                               
USBexFAT ASPI DISK DRIVER Ver 1.0a. FANJIANYE create in 2011/01/02           
                                                                             
ID:LUN=0:0= HD .. SONY    USB-FDU                                          
Read error in partition read.                                               
Read error in partition read.                                               
Read error in partition read.                                               
Read error in partition read.                                               
Read error in partition read.                                               
Read error in partition read.                                               
Read error in partition read.                                               
Read error in partition read.                                               
Not found installable device.

作者: yaya     时间: 2011-1-6 11:15
抱歉!没有同时修改显示信息。对于usb-fdd应当把HD显示为FD。重新上传至1楼。
关于RayeR的報告,可能真的是把FDD当成HDD了。逻辑0扇区是不是微软分区?比如没有55aa标识,没有fat16/32,或exfat标识?或者使用原版usbaspi.sys试一试,因为DIY版本不支持大容量存储器子类04(FDD)。

[ Last edited by yaya on 2011-1-7 at 15:47 ]
作者: Roy     时间: 2011-1-6 16:26


  Quote:
Originally posted by yaya at 2011-1-6 11:15:
抱歉!没有同时修改显示信息。对于usb-fdd应当把HD显示为FD。
关于RayeR的報告,可能真的是把FDD当成HDD了。逻辑0扇区是不是微软分区?比如没有55aa标 ...

他那顆是真的USB軟驅喔。

Edit:另外他用原版則是找不到該驅動器。

[ Last edited by Roy on 2011-1-6 at 21:40 ]
作者: yaya     时间: 2011-1-7 17:34
由于是真的软驱,原版usbaspi没有作为aspi管理器驻留内存,驻留内存是为了截获int13及int40,为软驱提供支持。它通过打开文件‘RAMFDD’来判断是否安装了软驱。

[ Last edited by yaya on 2011-1-7 at 17:36 ]
作者: Roy     时间: 2011-1-8 11:27
節錄轉載由Doug對USBASPI 2.27x所做的review:

  Quote:
I'll make a few comparisons between this 2010 revised USBASPI
driver (v2.27x) and the 2008 (latest?) Panasonic USBASPI driver
(v2.27).

(Note that there's also another "revised" USBASPI.EXE fork --
v2.28 (2008) -- that's hosted at mdgx's site, but i've found it
to be kinda buggy. It looks to be a revision of Panasonic v2.24
(2007). The good news about that one is that it has command-line
help with /? -- tells what most switches mean.)

As RayeR already mentioned, the 2.27x USBASPI.SYS can load from
the command line with the David Woodhouse / Eric Auer DEVLOAD.COM
-- this makes it convenient to load these drivers at some point
during a DOS session, so otherwise won't take up memory. (Note
that they can't be unloaded -- this requires a reboot.)

A text scan of the de-compressed 2.27x file shows command-line
switches similar to (the same as?) the later Panasonic series.

Nicely, 2.27x seems to load *way* quicker than the original
Panasonic 2.27 driver! Without the /U, /O, or /E switches
(actually with only /V), using DEVLOAD, flashdisc in root hub, my
measurements:

2.27x USBASPI.SYS: 01.17 sec
2.27 USBASPI.SYS: 12.86 sec

That difference is a factor of 11! Quite noticeable.

Also nice, 2.27x does NOT install in memory when it can't find a
target USB device -- unlike the Panasonic drivers which load into
memory regardless (frustrating, in that it requires a system
reboot if you want to try again).

The 2.27x driver detects all of the following devices on my
current system (with Intel 82801EB/ER ICH5/ICH5R):

Zip-100 drive (UHCI)
Verbatim 16m (!) flashdisc (UHCI)
PNY 2g0 flashdisc (EHCI)
Vivitar binoculars/camera (UHCI)
IBM (Teac) diskette drive (UHCI)
Microtech (Teac) diskette drive (UHCI)

However, that doesn't mean that USBEXFAT can successfully assign
drive letters to them! (USBEXFAT results to come....)

What didn't work? ZiO! Smartmedia Card Reader/Writer (UHCI),
SanDisk 12-in-1 Card Reader/Writer (EHCI). I guess that's to be
expected.

All in all, nice work! Looks like i'll be using the USBASPI
v2.27x revision for most of my USB mass-storage stuff.

- Doug B.

[ Last edited by Roy on 2011-1-8 at 11:29 ]
作者: ACW     时间: 2011-1-16 03:47
还有我在这台笔记本电脑上用原版的USBASPI总是死机(试过多个版本),但USBASPI 2.27x则不会(而且速度很快),可以顺利加载USB光驱。这也是目前在该电脑的DOS系统下驱动USB光驱的唯一途径。唯一的问题就是加载后通过USB HUB连接的外接鼠标就不能用了(这个是由BIOS支持的),大概是被USBASPI 2.27x给“重置”了,试过/norst也没用。

[ Last edited by ACW on 2011-1-16 at 03:53 ]
作者: Roy     时间: 2011-1-17 17:14
Laaca的報告:

  Quote:
I tried the flash disk formated to exFAT.

* Good point is that it somewhat works and generaly is possible to read and write files on and from flash disk.

* Bad point is that it is quite buggy. It shows some non valid (nonexisting) files with empty names and zero length.
Writting is problematic - it seems that better works writting standard 8+3 files than LFN names. Sometimes file is written (copied), sometimes not.

Test done with 32GB flash disk formatede with exfat with 32kb clusters.


作者: yaya     时间: 2011-1-18 17:14
USBexFAT主要是转换fat与exfat的目录,其他任务由dos自己完成。由于1扇区容纳的目录数量不同,因此剩余空间填充了1条隐藏目录。在不显示隐藏目录的情况下是看不到的。

在不加载doslfn等软件的情况下,是不能显示长文件名的,也不能写入长文件名。