Author Topic: problems with backupdms.bat - problem solved/workaround  (Read 13844 times)

0 Members and 4 Guests are viewing this topic.

Offline TheJohnny

  • A few posts under my belt.
  • *
  • Posts: 34
  • My Music Keg is worth more money than my car... :)
problems with backupdms.bat - problem solved/workaround
« on: May 04, 2007, 11:55:36 am »
Hello,

I wanted to hack my DMS, but I got stuck very early with backupdms.bat.

The Phatnoise Music Manager is not running, the Virus Scan is not running.

The batch says, that it found multiple or no new drives.

diskpart.nodms:

Code: [Select]

Microsoft DiskPart Version 5.1.3565

Copyright (C) 1999-2003 Microsoft Corporation.
Auf Computer: NOTEBOOK

  Datentr.  Status      Größe    Frei     Dyn  GPT
  --------  ----------  -------  -------  ---  ---
       0    Online        93 GB      0 B         


diskpart.dms:

Code: [Select]

Microsoft DiskPart Version 5.1.3565

Copyright (C) 1999-2003 Microsoft Corporation.
Auf Computer: NOTEBOOK

  Datentr.  Status      Größe    Frei     Dyn  GPT
  --------  ----------  -------  -------  ---  ---
       0    Online        93 GB      0 B         
       1    Online         9 GB      0 B         



Edit: title
« Last Edit: May 07, 2007, 07:53:08 pm by TheJohnny »
Kenwood KDC-M6021G, Kenwood KHD-C710, DMS now with 100GB Toshiba MK1031GAS

Offline VorTechS

  • Administrator
  • Veteran.
  • *****
  • Posts: 1678
  • PhatHack Media Manager & DMS Tools Wizard Author
Re: problems with backupdms.bat
« Reply #1 on: May 04, 2007, 12:55:53 pm »
I had the same problem, and there is as yet no work-around.
The second disk part, when called as part of the script is failing.

On the bright-side, PhatHack Media Manager will so have the hack available [subject to testing].

A little more patience and you shall have a hacked box!

[It's also possible judb might be able to help you, and I'm sure he'll answer with an appropriate suggestion if he can]
Kenwood KDC-W7031 | Kenwood KHD-CX910 | 250GB DMS | PhatHack Media Manager v1.1.4 (Alpha) | VIOT

Catch me weekdays 8am-4pm GMT on IRC @ irc.freenode.net on channel #phathack (aka the chat link!!)

Offline judb

  • Administrator
  • Veteran.
  • *****
  • Posts: 1329
  • ph4t l3wtz
Re: problems with backupdms.bat
« Reply #2 on: May 04, 2007, 01:52:58 pm »
Well his log shows the new drive in the second file, which if I recall correctly VorTechS was not doing that.

Try deleting those files and restart the process.. only wait like a minute before you progress forward, we maybe should have forced a delay in there.

Offline VorTechS

  • Administrator
  • Veteran.
  • *****
  • Posts: 1678
  • PhatHack Media Manager & DMS Tools Wizard Author
Re: problems with backupdms.bat
« Reply #3 on: May 04, 2007, 02:15:38 pm »
I did a quick check by writing something similar in a .bat file without using any additional script.

The problems lies with diskpart and being part of a batch file.  I don't think there's any way you can get round it.
Kenwood KDC-W7031 | Kenwood KHD-CX910 | 250GB DMS | PhatHack Media Manager v1.1.4 (Alpha) | VIOT

Catch me weekdays 8am-4pm GMT on IRC @ irc.freenode.net on channel #phathack (aka the chat link!!)

Offline TheJohnny

  • A few posts under my belt.
  • *
  • Posts: 34
  • My Music Keg is worth more money than my car... :)
Re: problems with backupdms.bat
« Reply #4 on: May 04, 2007, 02:47:12 pm »
Thanks for the answers so far.

I think (part of) the problem is that I'm using a German Windows XP Version.

An English Windows will show this on the screen (taken from VorTechS' post):

Code: [Select]
Microsoft DiskPart version 5.1.3565

Copyright (C) 1999-2003 Microsoft Corporation.
On computer: STUART_M

  Disk ###  Status      Size     Free     Dyn  Gpt
  --------  ----------  -------  -------  ---  ---
  Disk 0    Online       233 GB      0 B         
  Disk 1    Online        19 GB      0 B         

A German Windows will show that on the screen:

Code: [Select]
Microsoft DiskPart Version 5.1.3565

Copyright (C) 1999-2003 Microsoft Corporation.
Auf Computer: NOTEBOOK

  Datentr.  Status      Größe    Frei     Dyn  GPT
  --------  ----------  -------  -------  ---  ---
       0    Online        93 GB      0 B         
       1    Online         9 GB      0 B         

Correct me if I'm wrong, but the shell script searches for "Disk" which is not to be found in the ouput of the German version.
« Last Edit: May 04, 2007, 02:48:54 pm by TheJohnny »
Kenwood KDC-M6021G, Kenwood KHD-C710, DMS now with 100GB Toshiba MK1031GAS

Offline VorTechS

  • Administrator
  • Veteran.
  • *****
  • Posts: 1678
  • PhatHack Media Manager & DMS Tools Wizard Author
Re: problems with backupdms.bat
« Reply #5 on: May 04, 2007, 03:13:27 pm »
Yes, you could be right there ;)

I'm sure jud will help you modify the script files as necessary - or if you prefer you can wait for my Windows Wizard to be released which should be language independent.
Kenwood KDC-W7031 | Kenwood KHD-CX910 | 250GB DMS | PhatHack Media Manager v1.1.4 (Alpha) | VIOT

Catch me weekdays 8am-4pm GMT on IRC @ irc.freenode.net on channel #phathack (aka the chat link!!)

Offline judb

  • Administrator
  • Veteran.
  • *****
  • Posts: 1329
  • ph4t l3wtz
Re: problems with backupdms.bat
« Reply #6 on: May 04, 2007, 06:37:42 pm »
you are correct, I didn't read close enough to notice the language problem. 

There are several instances where the language change will have to be fixed.

The commands in the file like "grep Disk" and "grep Partition" etc will have to be modified to match the german version of the text.

This will have to happen in all the .sh files in that folder in order for it to work, or you'll have to do the hack on a US English version of Windows XP.

Offline TheJohnny

  • A few posts under my belt.
  • *
  • Posts: 34
  • My Music Keg is worth more money than my car... :)
Re: problems with backupdms.bat
« Reply #7 on: May 04, 2007, 07:49:49 pm »
Hello,

I wrote 'Disk' in the partition lines of diskpart.dms and diskpart.nodms and write protected both files.

I could execute the hackdms.bat, but couldn't complete the hack in my car.

There is only the message "EJECT" on my stereo.
Kenwood KDC-M6021G, Kenwood KHD-C710, DMS now with 100GB Toshiba MK1031GAS

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: problems with backupdms.bat
« Reply #8 on: May 05, 2007, 08:29:12 am »
Make it search for "Online" that's all that will match the proper lines

Offline Devil1978

  • A few posts under my belt.
  • *
  • Posts: 31
Re: problems with backupdms.bat
« Reply #9 on: May 07, 2007, 04:47:08 pm »
I have the same problem on my german windows xp too.
Can i install a new hdd in my DMS manually without this tools?

Offline TheJohnny

  • A few posts under my belt.
  • *
  • Posts: 34
  • My Music Keg is worth more money than my car... :)
Re: problems with backupdms.bat
« Reply #10 on: May 07, 2007, 07:13:04 pm »
I don't know. But I would say no.

But it's easy to do a workaround for this problem.

Just let 'backupdms.bat' run one time so that the files diskpart.dms and diskpart.nodms are created. Open both files with Wordpad (not Editor, because it can't read the line break) and insert 'Disk' in both files in the one or two lines as seen in the example:
Code: [Select]
Microsoft DiskPart Version 5.1.3565

Copyright (C) 1999-2003 Microsoft Corporation.
Auf Computer: NOTEBOOK

  Datentr.  Status      Größe    Frei     Dyn  GPT
  --------  ----------  -------  -------  ---  ---
  Disk 0    Online        93 GB      0 B         
  Disk 1    Online         9 GB      0 B         
Take care of the spaces so that the first line in both files is exactly the same.
Then write-protect both files, so that can't be overwritten anymore and let 'backupdms.bat' run. If you do this don't change the HDD configuration of your system! The DMS must always be the same number, no. 1 in the example above.

You will get two errors, that the files can't be written and one error that the files can't be deleted, but that doesn't matter.

You can use this method with all '*.bat' except for 'newdms.bat' because then your drive is another one. Just go through the above again and create two new files with the new HDD.
Kenwood KDC-M6021G, Kenwood KHD-C710, DMS now with 100GB Toshiba MK1031GAS

Offline VorTechS

  • Administrator
  • Veteran.
  • *****
  • Posts: 1678
  • PhatHack Media Manager & DMS Tools Wizard Author
Re: problems with backupdms.bat - problem solved/workaround
« Reply #11 on: May 07, 2007, 08:47:32 pm »
Or wait about 2 weeks for the new Wizard to be approved, and this should work for all languages!
Kenwood KDC-W7031 | Kenwood KHD-CX910 | 250GB DMS | PhatHack Media Manager v1.1.4 (Alpha) | VIOT

Catch me weekdays 8am-4pm GMT on IRC @ irc.freenode.net on channel #phathack (aka the chat link!!)

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: problems with backupdms.bat - problem solved/workaround
« Reply #12 on: May 08, 2007, 10:32:55 am »
Hmm... sounds like we need to make the scripts see if it couldn't update the files and error out :p

Just edit the .sh file and change where it looks for "Disk" to look for "Online" -- should be lines containing "grep"

Offline Dirtboy

  • Newbie
  • Posts: 4
    • Dirtboy
Re: problems with backupdms.bat - problem solved/workaround
« Reply #13 on: May 19, 2007, 03:03:05 pm »
Or wait about 2 weeks for the new Wizard to be approved, and this should work for all languages!

I'm having the same problem...  Patiently waiting the 2 weeks... ;D

Offline judb

  • Administrator
  • Veteran.
  • *****
  • Posts: 1329
  • ph4t l3wtz
Re: problems with backupdms.bat - problem solved/workaround
« Reply #14 on: May 19, 2007, 03:41:54 pm »
http://forum.phathack.com/index.php/topic,1189.0/topicseen.html go get the file and see if it works for you

Offline VorTechS

  • Administrator
  • Veteran.
  • *****
  • Posts: 1678
  • PhatHack Media Manager & DMS Tools Wizard Author
Re: problems with backupdms.bat - problem solved/workaround
« Reply #15 on: May 20, 2007, 12:22:20 pm »
PLEASE NOTE: Do not use PhatHack Media Manager in order to try out the hack!
I found a bug and didn't get enough time to patch up the hack process compared to the standalone wizard that is now available - I don't believe it will work for anyone.

If you wish to join the controlled beta for the new Hack Process, please reply to the thread [as you have done Dirtboy] and I'll add you to the mailing list, send me a PM, or send me a personal mail (see my profile).

The next release of PhatHack Media Manager WILL be up-to-date!
« Last Edit: May 20, 2007, 12:32:08 pm by VorTechS »
Kenwood KDC-W7031 | Kenwood KHD-CX910 | 250GB DMS | PhatHack Media Manager v1.1.4 (Alpha) | VIOT

Catch me weekdays 8am-4pm GMT on IRC @ irc.freenode.net on channel #phathack (aka the chat link!!)