Author Topic: Can SDM and CHDK be on the same SDHC card In-Camera  (Read 5397 times)

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: Can SDM and CHDK be on the same SDHC card In-Camera
« Reply #45 on: 20 / February / 2009, 12:56:28 »
  • Publish
  • this was bound to happen... i will refrain from more comments ;)
    luckily you were able to restore the partition.
    how does whim do it in cardtricks? imo he checks if the selected drive is marked as removable drive, isnt it so? making it impossible to select a harddisk.

    Offline whim

    • Guru Member
    • ******
    • Posts: 1977
    • A620/A630/A590-101b/i70-101b/i870-101a/i300
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #46 on: 20 / February / 2009, 13:35:52 »
  • Publish
  • @PhyrePhox

    like this:

    Quote
    ; @HomeDrive  = Drive letter of drive containing current user's home directory.
    ; $here = path to CardTricks program

    Local $illegal = StringLeft(@HomeDrive,1) & StringLeft(@SystemDir, 1) & StringLeft($here, 1)

    Do
       $card_drive = FileSelectFolder( "Select your SD Card drive - Please note that only 'Removable' or" & @CRLF & _
                                                     "'Unknown' (and 'Fixed' if selected) drive types will be" & @CRLF & _
                                                    "accepted; select Cancel if no drive selectable.", _
                                                    "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}", 2, "", $cardmenu )   ; 'My Computer'
                      
       If $card_drive = "" Then ExitLoop
       $card_drive = StringLeft($card_drive, 3)   ; ignore selected subdir
       Switch DriveGetType($card_drive)
          Case "Removable", "Unknown"
             $acceptable = True
          Case "Fixed"
             If IsChecked($chk_fix_disk) Then
                $acceptable = True
             Else
                $acceptable = False
             EndIf
          Case Else
             $acceptable = False
       EndSwitch

    Until ( StringInStr($illegal, StringLeft($card_drive, 1)) = 0 ) And  $acceptable

    wim

    Offline Microfunguy

    • Developers
    • Guru Member
    • ****
    • Posts: 3205
      • StereoData Maker
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #47 on: 20 / February / 2009, 16:16:40 »
  • Publish
  • i will refrain from more comments ;)


    That is a good boy, now you are starting to behave.

    Offline Microfunguy

    • Developers
    • Guru Member
    • ****
    • Posts: 3205
      • StereoData Maker
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #48 on: 20 / February / 2009, 16:18:32 »
  • Publish
  • How I reproduced this behavior

    I have all the information I need, which OS are you using  ?

    Offline ewavr

    • Developers
    • Hero Member
    • ****
    • Posts: 1057
    • A710IS
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #49 on: 20 / February / 2009, 16:26:58 »
  • Publish
  • which OS are you using  ?
    Windows XP Professional SP3 in real computer, Windows 7 beta in virtual machine.

    Offline Hacki

    • Sr. Member
    • ****
    • Posts: 352
    • SX100
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #50 on: 20 / February / 2009, 16:41:09 »
  • Publish
  • That is a good boy, now you are starting to behave.

    I sincerely hope they find a cure for whatever you have soon.

    Offline Microfunguy

    • Developers
    • Guru Member
    • ****
    • Posts: 3205
      • StereoData Maker
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #51 on: 20 / February / 2009, 16:41:16 »
  • Publish
  • Windows XP Professional SP3 in real computer,

    Finally, do you know which key you pressed ?

    Quote
    Windows 7 beta in virtual machine

    So, you will be able to test the modified sdminst.exe  safely  ?   :)

    Offline ewavr

    • Developers
    • Hero Member
    • ****
    • Posts: 1057
    • A710IS
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #52 on: 20 / February / 2009, 17:34:09 »
  • Publish
  • Finally, do you know which key you pressed ?


    "Create partition", "Two partitions" - without SD card in reader.
    Here is video - http://www.zshare.net/video/559148075201cac4/  (download original file for best quality).
    Quote
    So, you will be able to test the modified sdminst.exe  safely  ?   :)

    Yes, of course.
    « Last Edit: 20 / February / 2009, 17:40:20 by ewavr »

    Offline whoever

    • Sr. Member
    • ****
    • Posts: 280
    • IXUS950
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #53 on: 20 / February / 2009, 20:55:08 »
  • Publish
  • Quote
    Quote
    That is a good boy, now you are starting to behave.
    I sincerely hope they find a cure for whatever you have soon.

    I thought I would abstain from reading for a time, but I cannot stop, it's only getting better...

    CHDK Forum

    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #53 on: 20 / February / 2009, 20:55:08 »

    Offline Microfunguy

    • Developers
    • Guru Member
    • ****
    • Posts: 3205
      • StereoData Maker
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #54 on: 22 / February / 2009, 15:09:14 »
  • Publish
  • Here is new version of the SDM installer.

    I do not have a 'virtual machine' to test this on.

    Do not try this at home !

    Offline whim

    • Guru Member
    • ******
    • Posts: 1977
    • A620/A630/A590-101b/i70-101b/i870-101a/i300
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #55 on: 22 / February / 2009, 15:25:35 »
  • Publish
  • Could be even worse if you try it at work ...  :D

    wim

    edit: gave it a quick try, it seems to auto-search for removable devices, and disable
            dangerous buttons ( = all but exit ) when none found. Would IMHO be even more
            secure if the logic was reversed, i.e. disable by default, enable after finding an approved device
            Not sure if the Cmd window for formatting is 'by design', but just thought i'd mention that you
            could use silent formatting by using 'echo | format {params}'
            BTW there's a discrepancy in the size indication (see attach)
    « Last Edit: 22 / February / 2009, 15:56:16 by whim »

    Offline PhyrePhoX

    • Global Moderator
    • Guru Member
    • *****
    • Posts: 2254
    • make RAW not WAR
      • PhyreWorX
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #56 on: 22 / February / 2009, 17:09:55 »
  • Publish
  • why is the folder that contains scripts and lang files still called CHDK in the sdm release? you should rename it.

    Offline Microfunguy

    • Developers
    • Guru Member
    • ****
    • Posts: 3205
      • StereoData Maker
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #57 on: 22 / February / 2009, 18:09:30 »
  • Publish
  • gave it a quick try

    Thanks Wim, I will report your comments to Central Command  :)

    Offline ewavr

    • Developers
    • Hero Member
    • ****
    • Posts: 1057
    • A710IS
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #58 on: 24 / February / 2009, 15:24:42 »
  • Publish
  • Here is new version of the SDM installer.


    Well, this version is more safe than previous.
    But because drive selection combobox is not read-olny, we can erase manualy text on it, then format our hard drive  ;)
    Suggestion: make drive selection combobox read-only.
    Screenshot in attachment.

    Offline whim

    • Guru Member
    • ******
    • Posts: 1977
    • A620/A630/A590-101b/i70-101b/i870-101a/i300
    Re: Can SDM and CHDK be on the same SDHC card In-Camera
    « Reply #59 on: 24 / February / 2009, 16:58:35 »
  • Publish
  • Quote
    Suggestion: make drive selection combobox read-only.

    ... or do a sanity check on the command line params, before passing it to format

    wim

    edit: maybe both is even better  :D

     


    SimplePortal 2.3.3 © 2008-2010, SimplePortal