Card Tricks - a small utility to help manage SD cards - page 14 - General Help and Assistance on using CHDK stable releases - CHDK Forum

Card Tricks - a small utility to help manage SD cards

  • 209 Replies
  • 296994 Views
*

Offline fe50

  • ******
  • 3099
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Card Tricks - a small utility to help manage SD cards
« Reply #130 on: 18 / January / 2009, 10:50:42 »
Advertisements
Joe,
imo it doesn't matter if the card is SD or SDHC - but with SDHC cards the camera itself must support SDHC.

An older camera without SDHC support always reject a SDHC card (with any size), normally with 'card error' - you can't do anything with such a card in such a camera...

The autostart mechanism in CHDK is limited to 4GB/FAT16 (SD or SDHC), that's why a card > 4GB must be partitioned (needs CHDK multi partition support, CHDK starts from a small FAT16 partition and then swaps the partitions on the fly)...

Re: Card Tricks - a small utility to help manage SD cards
« Reply #131 on: 18 / January / 2009, 11:34:34 »
I think I understand, but am not sure.  I thought that maybe the memory addresses were different in the two types, meaning as to what line in the header you could change.

So much to learn, so little time left.
SX100 IS; A510

*

Offline fe50

  • ******
  • 3099
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Card Tricks - a small utility to help manage SD cards
« Reply #132 on: 18 / January / 2009, 11:55:48 »
I think I understand, but am not sure.  I thought that maybe the memory addresses were different in the two types, meaning as to what line in the header you could change.

The SD and SDHC cards uses different reader hard/software (aka the in-camera 'card reader'), therefore an old SD-only device (e.g. an older camera or USB card reader) can't access the card.

The logical structure of the card's first sector (the 512 bytes where we write the BOOTDISK identifier) is always the same.
The CHDK autostart method hijacks the original Canon firmware update mechanism to load & run the CHDK code on the camera; this update mechanism is designed (by Canon) to work only with FAT16...

Quote
So much to learn, so little time left.
Yeah - that's true !

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Card Tricks - a small utility to help manage SD cards
« Reply #133 on: 20 / January / 2009, 06:57:04 »
@fe50

Quote
The problem is the Win98 format command: there's no /FS: switch since Win98 can only use FAT.

I'm being lazy here, but if it's not too much work, could you get me a dump of the '98 format help output ?
Then it would be a breeze to add support ...

wim

PS Interestingly, i also just ran into the fact that good old debug.exe (present in all Win versions) is able to read/write
     disk sectors, if it behaves sufficiently equal that would open up the possibility of replacing bootable.exe with a
     debug script on OS'es that don't support it ...
« Last Edit: 20 / January / 2009, 07:05:10 by whim »


*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Card Tricks - a small utility to help manage SD cards
« Reply #134 on: 20 / January / 2009, 09:30:33 »
Since I was getting a bit fed up with (false, of course) virus reports about CardTricks, here is

             CardTricks-144-SFX.exe - 510 kB

  • None of the (35) scanners on Virus Total gave a false alarm on this today at 15:00 h (GMT+1)

  • No need to upgrade from 1.43, functionally identical; if you want to anyway, just point the self-extractor
    to the folder containing your previous version

  • This is a 7-zip self-extracting archive, just get 7-zip (open source, get it here: http://www.7-zip.org)
    and you can manually unpack it, giving you full access to the source before running anything  :D

  • The previous method (AutoIt 'FileInstall' + UPX --ultra-brute) was ~20% more efficient than the current
    (UPX --ultra-brute on the CT exe, then 7-zip LZMA Ultra SFX on exe + /CardTricks folder)  -
    must be the SFX stub, i suppose  :( 

to all users of previous versions: thanks for your confidence,
and sorry, but this update will do more for me than for you   :haha

wim

PS Still don't have a clue why previous method triggered these alarms, though ...
« Last Edit: 20 / January / 2009, 11:36:10 by whim »

Re: Card Tricks - a small utility to help manage SD cards
« Reply #135 on: 20 / January / 2009, 13:21:47 »

Quote
I'm being lazy here, but if it's not too much work, could you get me a dump of the '98 format help output ?
Then it would be a breeze to add support ...

Is that something I could do? Running ME, for what it's worth. If it entails DOS commands, then I'd need them exact.   :D

Edit - whim, is this what you were talking about a couple of pages back? It didn't make a text file, so the screencap is the best I can do.
« Last Edit: 20 / January / 2009, 13:39:18 by Joe 1956 »
SX100 IS; A510

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Card Tricks - a small utility to help manage SD cards
« Reply #136 on: 20 / January / 2009, 14:12:08 »
@Joe

It's dead simple: (i will put "" around what you see or should type)

- open a DOS box.

- type (remember, omit the ""):    "format /? > C:\joeshelp.txt" and press <Enter>

- you can now close the DOS box and check if 'joeshelp.txt' is there (in the root of your disk C:)

- (assuming here you've got your browser opened on this thread and are logged in)
       - click 'REPLY' and type your message
       - check bottom left under the 'frame' where you're typing: click 'Additional Options'
       - click 'browse ...' (or whatever it says on the button) in the line starting with 'Attach:'
       - you should get a file select box, browse to and select 'joeshelp.txt'
       - done, file is attached (alternatively, you can of course also copy and paste between 'joeshelp.txt' and the forum editor)
       - send message

wim

I just included the last section because you seemed to have trouble getting stuff on your computer into your messages.
remember, if you just want to get some text from a file into your message, that you should only use plain text
You might get in trouble if you do a copy-paste from, let's say, Word. However, attaching always works (but mind the size)
There's more too: you can format your text in the forum editor with the buttons above your message.
Gee, I hope all this works on your ME ! by the way, attachment are NOT shown when you do a Preview

       
« Last Edit: 20 / January / 2009, 14:14:42 by whim »

Re: Card Tricks - a small utility to help manage SD cards
« Reply #137 on: 20 / January / 2009, 14:40:22 »
No, it just didn't do anything, left no text file, but this time it did.



Quote
Formats a disk for use with MS-DOS.

FORMAT drive: [/V[:label]] [/Q] [/F:size] [/C]
FORMAT drive: [/V[:label]] [/Q] [/T:tracks /N:sectors] [/C]
FORMAT drive: [/V[:label]] [/Q] [/1] [/4] [/C]
FORMAT drive: [/Q] [/1] [/4] [/8] [/C]

  /V[:label]  Specifies the volume label.
  /Q          Performs a quick format.
  /F:size     Specifies the size of the floppy disk to format (such
              as 160, 180, 320, 360, 720, 1.2, 1.44, 2.88).
  /T:tracks   Specifies the number of tracks per disk side.
  /N:sectors  Specifies the number of sectors per track.
  /1          Formats a single side of a floppy disk.
  /4          Formats a 5.25-inch 360K floppy disk in a high-density drive.
  /8          Formats eight sectors per track.
  /C          Tests clusters that are currently marked "bad."
SX100 IS; A510


*

Offline fe50

  • ******
  • 3099
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Card Tricks - a small utility to help manage SD cards
« Reply #138 on: 21 / January / 2009, 03:37:45 »
@wim  ...sorry, a bit late, was busy...
Format.com on Win98/ME do not support the 64k cluster FAT16, so we cant use it.

Yes, with debug it should be possible, but IMO the diskeditor method should be the better way:
'raw' writing on a drive with debug could be very dangerous, with a diskeditor (like HxD) the user can easily check whether the right drive is selected, there are also multiple warnings, it's much 'safer'...

Thx for the new CT version, i'll update the drops & the wikia...

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Card Tricks - a small utility to help manage SD cards
« Reply #139 on: 21 / January / 2009, 08:28:06 »
@fe50

Quote
'raw' writing on a drive with debug could be very dangerous, with a diskeditor (like HxD) the user can easily check whether the right drive is selected

totally agreed, but i meant this as a possible 'universal' replacement for 'bootable.exe' in CT - but, with your comments
on Win9x/ME 'format' limitations, this doesn't seem likely to happen anytime soon ...

wim

 

Related Topics