September 18th, 2015, 18:12



September 18th, 2015, 23:56
SanDisk Extreme
SanDisk used to provide a utility (when asked) under NDA to change the type bit to Fixed disk. It has however changed it stance on this and now refuses to provide it. This utility (ATCFWCHG.COM) however can be found for download at various places (try Google).
You will need to boot DOS and run it with the CF configured as either the master on the primary IDE interface or the master on the secondary interface. It will not work if the drive is attached as a slave or to any other interfaces.
To set a SanDisk Extreme adapter attached to the primary IDE interface to Fixed disk
ATCFWCHG.COM /P /F
To set a SanDisk Extreme adapter attached to the secondary IDE interface (Ultrabay) to Fixed disk
ATCFWCHG.COM /S /F
NOTE!
It seems that the ATCFWCHG.EXE utility is incompatible with SATA to IDE bridges, such as found in the X41. In those cases you will have to connect the CF card to another computer or ThinkPad with a regular IDE (PATA) interface to change the flag, after which you can put it into the ThinkPad X41.
September 19th, 2015, 15:02


D:\>ATCFWCHG /P /F
NAND Athens ID Drive Config Word (Fixed/Removable) Change Utility Version 1.4.
Fail (error #20)
D:\>
September 19th, 2015, 23:59
September 20th, 2015, 17:27
the "removable bit" is bit #15 (and #14) of word #0 of the Identify Device information block. An ATA device clears this bit whereas an ATAPI device sets it
SanDisk's ATCFWCHG tool attempts to modify this Identify Device bit in the card's firmware. ISTM that this tool should be run in a real DOS environment
this tool is not universal, ie it may be restricted to "Athens" flash controllers
I pointed you to a URL where someone demonstrated how to create a bootable Windows XP environment on a CD card by using a Linux Grub boot loader. Did you try it?
September 20th, 2015, 20:07
September 20th, 2015, 22:28
September 20th, 2015, 23:58
September 21st, 2015, 4:04
7.16.7.2 Word 0 [of Identify Device data]: General configuration
If the device is an ATA device, then bit 15 shall be cleared to zero.
...
Devices supporting the CFA [CompactFlash Association] feature set shall place the value 848Ah in word 0.
7.17.6.2 Word 0 [of Identify Packet Device data]: General configuration
Bits (15:14) of word 0 indicate the type of device. Bit 15 shall be set to one and bit 14 shall be cleared to zero to indicate the device is an ATAPI device.
Bits (12:8) of word 0 indicate the command set used by the device. This value follows the peripheral device type as defined in SPC-4 (e.g., 05h indicates a CD/DVD device)
*******************************************************************************
HDAT2 v4.7.1 (c) 2009 CBL 02.05.2015 16:06:10.012
*******************************************************************************
Dump IDENTIFY DEVICE [WDC WD2500BB-55RDA0]
*******************************************************************************
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 0123456789ABCDEF
Ú--------------------------------------------------------------------¿
0000 ³ 7A 42 FF 3F 37 C8 10 00 00 00 00 00 3F 00 00 00 zBÿ?7È.....?... ³
0001 ³ 00 00 00 00 20 20 20 20 57 20 2D 44 4D 57 4E 41 .... W -DMWNA ³
0002 ³ 33 4B 33 30 39 34 33 38 00 00 00 10 32 00 30 32 3K309438...2.02 ³
0003 ³ 30 2E 4B 30 30 32 44 57 20 43 44 57 35 32 30 30 0.K002DW CDW5200 ³
0004 ³ 42 42 35 2D 52 35 41 44 20 30 20 20 20 20 20 20 BB5-R5AD 0 ³
*******************************************************************************
HDAT2 v4.7.1 (c) 2009 CBL 02.05.2015 05:51:13.064
*******************************************************************************
Dump IDENTIFY DEVICE [HL-DT-ST DVDRAM GSA-4040B]
*******************************************************************************
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 0123456789ABCDEF
Ú--------------------------------------------------------------------¿
0000 ³ C0 85 00 00 00 00 00 00 00 00 00 00 00 00 00 00 À….............. ³
0001 ³ 00 00 00 00 32 4B 33 38 55 37 35 47 32 31 20 38 ....2K38U75G21 8 ³
0002 ³ 20 20 20 20 20 20 20 20 00 00 00 00 00 00 33 41 ......3A ³
0003 ³ 34 30 20 20 20 20 4C 48 44 2D 2D 54 54 53 44 20 40 LHD--TTSD ³
0004 ³ 44 56 41 52 20 4D 53 47 2D 41 30 34 30 34 20 42 DVAR MSG-A0404 B ³
September 21st, 2015, 5:18
maybe you should get a different brand of CF card that has support
Years ago I modified the firmware in a Ricoh 2x CD burner. This ATAPI device was limited to PIO modes but its stablemate supported DMA...
located the Identify Device / Identify Packet Device data block within the firmware image, flipped the DMA bits, recalculated the checksum, and flashed the modified file to the drive
You can see the card's Identify Device data with a tool such as CrystalDiskInfo.

A tool such as HDAT2 can also dump these data, plus the Identify Packet Device data if your card supports it.

I'm not a data recovery professional, so other forum members would be best placed to tell you whether the ATCFWCHG tool is suitable for your card.
September 21st, 2015, 5:28
September 21st, 2015, 20:02
September 21st, 2015, 23:55
September 22nd, 2015, 10:10
A friend of mine remove my Sandisk Extreme 32 Gb without "secure remove", and all my data of the flash disk was gone. To recover the partition, I used Partition Guru Pro, but accidentaly I used the option "HDD mode", and now mi flash drive shows as "fixed disk". Is there a way to set it back to "removable"? I google a lot, and found the REMOVABLE MEDIA BIT issue, but there is no software to change it. Any clue?

September 23rd, 2015, 1:08
September 23rd, 2015, 4:33
September 23rd, 2015, 4:54
Word.Bit Description
==========================
0.15 0 = reserved for non magnetic drives
0.14 1 = format speed tolerance gap required
0.13 1 = track offset option available
0.12 1 = data strobe offset option available
0.11 1 = rotational speed tolerance is > 0.5%
0.10 1 = disc transfer rate > 10 Mbit/sec
0.9 1 = disc transfer rate <= 10 Mbit/sec but > 5 Mbit/sec
0.8 1 = disc transfer rate <= 5 Mbit/sec
0.7 1 = removable cartridge drive
0.6 1 = fixed drive
0.5 1 = spindle motor control option implemented
0.4 1 = head switch time > 15 usec
0.3 1 = not MFM encoded
0.2 1 = soft sectored
0.1 1 = hard sectored
0.0 0 = ATA reserved (should be zero)September 23rd, 2015, 12:28
not trolling, just lightheartedly saying that just because you want something, doesn't mean it is possible or easily do-able
but, anyway.. Have you tried in a command prompt in windows(elevated) Diskpart? you can set some stuff in there, maybe research it. also there may be more control in a Linux OS.
********************************************************************************
HDAT2 v5.0 (c) 2013 CBL 24.09.2015 17:43:41
********************************************************************************
Device information [SDCFXPS-032G]
********************************************************************************
--------------------------------------------------------------------------------
Source Cylinders Heads Sectors Total sectors Size
--------------------------------------------------------------------------------
ATA LBA28 62041 16 63 62537328 32.02 GB
CHS 62041 16 63 62537328 32.02 GB
INT13h/BIOS 1024 255 63 16450560 8.42 GB
Ext.INT13h 3892 255 63 0 0.00 KB
(* = invalid parameters)
--------------------------------------------------------------------------------
Device model [ATA/SSD] SDCFXPS-032G
Manufacturer unknown
Orphan (not useable) sectors 62537328 [32.02 GB]
Translation/max. LBA mode ?/28-bits
Logical sector size [B] 512
Physical sector size [B] 512
Detect mode PCI
ATA I/O port Base/Control/IRQ 0170h/0376h/15
--------------------------------------------------------------------------------
ATA/ATAPI Identify Device
--------------------------------------------------------------------------------
Integrity word (optional)
-> Signature: failed [reported 00h, should be A5h]
-> Checksum : failed [reported 00h, should be 30h]
ATA major version 0000h
-> not reported
ATA minor version 0000h
-> not reported
Transfer mode: max. supported Ultra DMA 7/ATA166
Transfer mode: selected Ultra DMA 2/ATA33
Serial number OAZ071115134539
Firmware HDX9.03
Cache 1.02 KB
-> Cache type: dual port
General Configuration 848Ah = 1000010010001010b
-> Removable device
-> Protocol type: ATAPI
-> Device supports the CFA feature set
Specific Configuration 0000h
Maximum queue depth 1
Hardware Reset result 604Fh = 0110000001001111b
-> Device detected CBLID- above V[iH]
-> Device 0 Hardware Reset result 01001111b
-> device determined by: other method
-> diagnostics passed
-> did not detect the assertion of PDIAG-
-> did not detect the assertion of DASP-
-> responds when Device 1 is selected
Detected an 80-conductor cable YES
Multiword DMA transfer cycle time per word [ns]
-> Minimum: 120
-> Manufacturer's recommended: 120
Minimum PIO transfer cycle time [ns]
-> without IORDY flow control: 120
-> with IORDY flow control: 120
Security Status [vendor specific] 0000h = 0000000000000000b
Master Password Identifier (Revision Code) 0000h
-> Master Password Identifier feature is not supported
Time for Normal security erase unit not specified
Time for Enhanced security erase unit not specified
Extended number of user addressable sectors reserved
--------------------------------------------------------------------------------
Capabilities
-> DMA supported
-> LBA supported
-> IORDY may be disabled
-> IORDY supported
-> Standby timer values shall be vendor specific
-> [14] shall be set to one
--------------------------------------------------------------------------------
Command/Feature Sets supported ENABLED
--------------------------------------------------------------------------------
Power Management feature set NO
Write cache YES
WRITE BUFFER command NO
READ BUFFER command NO
NOP command NO
Compact Flash (CFA) feature set NO
Advanced Power Management (APM) feature set NO
48-bit Address feature set YES
FLUSH CACHE command YES
FLUSH CACHE EXT command YES
--------------------------------------------------------------------------------
Advanced Power Management (APM) level value 00h
Acoustic Management (AAM): vendors/current value 00h/00h
Read/Write LONG: ECC bytes 4
Read/Write MULTIPLE: sectors per DRQ data block
-> Maximum: 1
-> Current: 0
CFA power mode supported
-> Maximum current [mA]: 500
Free-fall Control Sensitivity not supported
Number of data blocks per DOWNLOAD MICROCODE mode 3 not supported
Transport Major revision number: support not reported
Transport Minor revision number not reported
SMART Command Transport (SCT) Command set not supported
Trusted Computing feature (TCG) not valid
Nominal media rotation rate [rpm] not reported
Device Nominal Form Factor not reported
DATA SET MANAGEMENT
-> The Trim function is not supported.
LBA Range Entry (DATA SET MANAGEMENT) [sectors] 0
Additional Product Identifier not supported
--------------------------------------------------------------------------------
NV Cache
--------------------------------------------------------------------------------
-> not supported
--------------------------------------------------------------------------------
Extended INT13h
--------------------------------------------------------------------------------
Extended INT13h support YES
Major/Vendor/Extension Version 2.1/0.0/0.0
-> EDD v1.1
Subset
-> Fixed disk access subset: YES
-> Device locking and ejecting subset: NO
-> Enhanced Disk Drive (EDD) subset: YES
-> 64-bit extension: NO
INT13h Identify Device support not detected
--------------------------------------------------------------------------------
Device Parameter Table (DPT)
--------------------------------------------------------------------------------
Information flags
-> The geometry returned in bytes 4-15 shall be valid
-> Bits 4-6 are not valid
Block size [B] 512
DPT Extension (DPTE) pointer F000h:A5D0h
Key to presence of Device Path (BEDDh) 0000h
--------------------------------------------------------------------------------
Device Parameter Table Extension (DPTE)
--------------------------------------------------------------------------------
Version 1.1 [11h]
Checksum
-> O.K. [reported DAh, should be DAh]
I/O Port base address 0170h
Control Port address 0376h
IRQ 15
Head register upper nibble
-> ATA DEV = Master
-> LBA enable = YES
BIOS Vendor specific 00h
ATA READ/WRITE MULTIPLE Block Count 1
DMA information 20h
-> DMA channel = 00h
-> DMA type = 02h
PIO information 04h
-> PIO type = 04h
BIOS selected HW specific option flags
-> Fast PIO access
-> Vendor specific translation
-> HPA Active
--------------------------------------------------------------------------------
********************************************************************************
HDAT2 v5.0 (c) 2013 CBL 24.09.2015 17:44:11
********************************************************************************
Dump IDENTIFY DEVICE [SDCFXPS-032G]
********************************************************************************
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 0123456789ABCDEF
Ú--------------------------------------------------------------------ż
0000 ł 8A 84 59 F2 00 00 10 00 00 00 40 02 3F 00 BA 03 Š„Yň.....@?.ş ł
0001 ł 70 3E 00 00 20 20 20 20 4F 20 5A 41 37 30 31 31 p>.. O ZA7011 ł
0002 ł 35 31 33 31 35 34 39 33 02 00 02 00 04 00 44 48 51315493...DH ł
0003 ł 39 58 30 2E 00 33 44 53 46 43 50 58 2D 53 33 30 9X0..3DSFCPX-S30 ł
0004 ł 47 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 G2 ł
0005 ł 20 20 20 20 20 20 20 20 20 20 20 20 20 20 01 80 € ł
0006 ł 00 00 00 0F 00 00 00 02 00 00 07 00 59 F2 10 00 .........Yň. ł
0007 ł 3F 00 70 3E BA 03 00 01 70 3E BA 03 00 00 07 00 ?.p>ş.p>ş... ł
0008 ł 03 00 78 00 78 00 78 00 78 00 00 00 00 00 00 00 .x.x.x.x....... ł
0009 ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
000A ł 00 00 00 00 28 70 0C 74 00 40 20 00 00 34 00 00 ....(pt.@ ..4.. ł
000B ł FF 04 00 00 00 00 00 00 00 00 4F 60 00 00 00 00 ˙........O`.... ł
000C ł 00 00 00 00 00 00 00 00 70 3E BA 03 00 00 00 00 ........p>ş.... ł
000D ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
000E ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
000F ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
0010 ł 00 00 46 43 00 00 00 00 00 00 00 00 00 00 00 00 ..FC............ ł
0011 ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
0012 ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
0013 ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
0014 ł F4 81 00 00 00 00 12 00 00 00 00 00 00 00 02 60 ô...........` ł
0015 ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
0016 ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
0017 ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
0018 ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
0019 ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
001A ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
001B ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
001C ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
001D ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
001E ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
001F ł 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ł
Ŕ--------------------------------------------------------------------Ů
********************************************************************************
HDAT2 v5.0 (c) 2013 CBL 24.09.2015 17:48:33
Options:
DASD devices detect:
HDD: 2/2/2
FDD: 1/1
CMOS check:
CMOS battery power : 80h -> O.K.
POST diagnostics status: 00h -> O.K.
Shutdown/Reset status : 00h
-> Power-on or Soft reset
Floppy drive detect:
CMOS: 1 floppy drive(s)
BIOS: 1 floppy drive(s)
1. Floppy drive: 3« 1.44 MB
Checked 1 floppy drive(s)
PCI scan:
Bus= 0, Device= 7, Function=1
1. BaseClass: Storage, SubClass: IDE
BaseClass = 01h, SubClass = 01h, Programming interface = 8Ah
Bus = 0, Device = 7, Function = 1, Header type = 00h
Host: Vendor ID = 1106h, Device ID = 0571h, Revision = 06h
Host vendor name: VIA Technologies Inc
Subsystem: Vendor ID = 0000h, Device ID = 0000h
Subsystem vendor name: unknown
Address 4: I/O port = E000h-E00Fh
Primary channel: I/O Port 01F0h, IRQ 14 (compatibility mode)
Secondary channel: I/O Port 0170h, IRQ 15 (compatibility mode)
Bus Master: supported, primary: enabled, secondary: enabled
Bus Master Control Register: E000h
Built-In Self Test: not supported
PCI ATA devices:
[0/0 01F0h/03F6h/14] ST3320620A
[0/1 01F0h/03F6h/14] disabled or not present
[1/0 0170h/0376h/15] SDCFXPS-032G
[1/1 0170h/0376h/15] disabled or not present
Detect on-board ATA/ATAPI devices:
[2/0 01F0h/03F6h/14] already detected
[3/0 0170h/0376h/15] already detected
[4/0 01E8h/03EEh/0] disabled or not present
[4/1 01E8h/03EEh/0] disabled or not present
[5/0 0168h/036Eh/0] disabled or not present
[5/1 0168h/036Eh/0] disabled or not present
[6/0 0100h/0306h/0] disabled or not present
[6/1 0100h/0306h/0] disabled or not present
Detect ASPI devices:
ASPI not found
Detect BIOS INT13h devices:
BIOS number 80h: already detected
BIOS number 81h: already detected
Detect OS:
Detected OS DOS, version 7.10 Microsoft
DOS is in HMA
List of detected devices:
1. '3« 1.44 MB' [ATA/FDD] 00h
2. 'ST3320620A' [ATA/PATA] 80h
3. 'SDCFXPS-032G' [ATA/SSD] 81h
CF cards now identify themselves with a value of 848Ah in word 0. This means that older software will see them as ATAPI devices (bit 0 = 1) with removable media (bit 7 = 1). I can't see how that makes any sense.
supported the removable feature set (eg DOOR LOCK, DOOR UNLOCK, MEDIA EJECT)
I'm not sure what Partition Guru does to convert a USB drive to "HDD mode", but I suspect it may use the SCSI MODE SELECT command to flip the Removable Media Bit (RMB), assuming that is possible.
September 23rd, 2015, 16:24
September 23rd, 2015, 21:20
I Simply use a USB floppy disk drive (TEAC FD 05PUB) used.
Start the program with the parameters at ATCFWCHG ATCFWCHG / S / 1 / F.
/ S means IDE Secondary (Secondary); / P means Primary
/ 1 means slave HDD (because 0 = Master)
/ F is fixed bit set (/ R removable)
The program comes back with the message PASS.
Now the CF card as a Fixed CF, thus as a normal HDD operating systems can be detected.
Are you saying that Transcend SLC CF cards appear "fixed" to Windows 2000?
Yes: Transcend has some CFs that appear as non-removable.
Powered by phpBB © phpBB Group.