News:

I have updated the spam detection on registrations, and as such I am enabling new users.  If we have spam, I will change it back to by approval.

Main Menu

problems with backupdms.bat - problem solved/workaround

Started by TheJohnny, May 04, 2007, 12:55:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TheJohnny

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:



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:



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
Kenwood KDC-M6021G, Kenwood KHD-C710, DMS now with 100GB Toshiba MK1031GAS

VorTechS

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!!)

judb

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.

VorTechS

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!!)

TheJohnny

#4
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):

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:

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.
Kenwood KDC-M6021G, Kenwood KHD-C710, DMS now with 100GB Toshiba MK1031GAS

VorTechS

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!!)

judb

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.

TheJohnny

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

sbingner

Make it search for "Online" that's all that will match the proper lines

Devil1978

I have the same problem on my german windows xp too.
Can i install a new hdd in my DMS manually without this tools?

TheJohnny

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:
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

VorTechS

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!!)

sbingner

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"

Dirtboy

Quote from: VorTechS on May 07, 2007, 09:47:32 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

judb


VorTechS

#15
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!
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!!)