Pages: 1 [2]   Go Down

Author Topic: Z3100/Z3200 drive cloning/backup/firmware  (Read 9876 times)

William Chitham

  • Full Member
  • ***
  • Offline Offline
  • Posts: 170
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #20 on: June 10, 2021, 07:14:26 am »

Wow, this has been a slow burn, great to see this problem finally toppled. I always thought it was just a question of getting the right brains engaged and it sounds as if you guys are it.
Thanks for the good work,
William.
Logged

zerodata

  • Newbie
  • *
  • Offline Offline
  • Posts: 11
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #21 on: June 10, 2021, 01:18:13 pm »

Wow, this has been a slow burn, great to see this problem finally toppled. I always thought it was just a question of getting the right brains engaged and it sounds as if you guys are it.
Thanks for the good work,
William.

This is what happens when this sort of hardware hits the auction/resale market at stupid prices.

I only got involved because I picked up a z3200 that was so underused in its lifetime that it still had 7/12 original starter cartridges in it for a price that'd probably make most of you cry.  The only catches so far were 1) having to get new ink and heads and 2) having to replace the belt which of course shredded after making the first test print.
Logged

GST

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 55
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #22 on: June 11, 2021, 04:25:34 am »

Ha, thats exactly my story, too  :)
Logged

GST

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 55
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #23 on: June 13, 2021, 01:57:55 pm »

Another step forward:

login as: root
Last login: Mon Nov 29 14:02:57 2010 from 192.0.0.190
Linux (none) 2.6.10_mvl401-pc_target #53 Wed Jul 23 17:16:06 CEST 2008 i686 GNU/Linux

Welcome to MontaVista(R) Linux(R) Professional Edition 4.0.1 (0502020).

 8)
Logged

GST

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 55
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #24 on: June 13, 2021, 02:41:16 pm »

system is getting more and more open source now ...

# troya              Obtain bootmode from FP keyboard
#
# DESCRIPTION: This script will return the bootmode defined as a power-up key combination, magic packet or lock files.
#
#
# KEYPAD DESCRIPTION:
#
#    The keypad sends 16 bits (2 bytes) of data in the following format:
#
#   15 -  8    7       6        5       4       3        2       1        0
#   +-------+------+--------+-------+-------+--------+-------+--------+-------+
#   | reser |  Up  |  Power |  Menu |   NA  | Enter  | Down  | Back   | Cancel|
#   | ved   |      |        |       |       |        |       |        |       |
#   +-------+------+--------+-------+-------+--------+-------+--------+-------+
#
#    A bit is 1 when the corresponding key is pressed and 0 when released.
#    This script will transform this into a string that defines the bootmode for everybody.
#
#    Bits 1 to 5 are reserved for general bootmodes, so we will have up to 7 of them
#
#    Bits 6 is for special sub-bootmodes. This will we used mainly for development and will allow us to
#    define special features like start or not r-services, etc ...
#
#
# BOOTMODE CHECK SEQUENCE:
#
#    We determine the bootmode by analizing the following sequence:
#
#          Step 1.  Check if any FP key has been pressed. If yes, this will be the bootmde
#          Step 2.  If from 1, there is no key pressed, check if we receive the "magic" packet thru LAN
#          Step 3.  If there is no magic paquet, check the lock files in /home/gw
#
#
# OUTPUT: <general bootmode> <io_submode> <engine_submode> <formatter_submode> <view_submode>
#
#          <general bootmode>:            Activable thru:      FP Key            Lock file
#                                         ________________________________________________
#               . printer                                        X                   X
#               . manufacturing                                  X                   X
#               . hp-service                                     X                   X
#               . lang-select                                    X                   X
#
#               . pc-target                                                          X
#               . development                                    X (provisional)     X
#
#         <io_submode>:
#               . r-services                                     X (provisional)     X
#                    ( activate rlogin, rcp, etc )
#
#         <engine_submode>:
#               . debug                                                              X
#                   ( ddd & tcl port )
#               . tcl-open                                                           X
#                   ( tcl port )
#
#         <formatter_submode>:
#               . debug                                                              X
#                   ( ddd )
#
#         <view_submode>:
#                   ( not defined )
#

# Vector of defined bootmodes:
#              mode[<key-combination-decimal-value>]="<bootmode name>"
#
# NOTE: In product.rc script file there is a comprobation that the bootmode is allowed
#       If you include here one bootmode, include it also in the other script

MAX_BOOTMODES=31

mode[0]="printer"
#mode[1]="manufacturing"     # CANCEL
mode[2049]="manufacturing"  # SW3 + CANCEL
mode[8]="lang-select"       # ENTER
mode[136]="hp-service-1"    # UP + ENTER
mode[12]="hp-service-2"     # DOWN + ENTER
mode[141]="development"     # CANCEL + ENTER + UP + DOWN
mode[16392]="games"         # SW1 + ENTER
mode[8200]="logon"          # SW2 + ENTER
mode[2056]="logviewer"      # SW3 + ENTER
mode[4104]="logoff"         # SW4 + ENTER

#
# FGC OJO!!! eliminate development bootmode !!
#

DEFAULT_BOOTMODE="printer"
Logged

zerodata

  • Newbie
  • *
  • Offline Offline
  • Posts: 11
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #25 on: June 23, 2021, 10:15:03 pm »

Another step forward:

login as: root
Last login: Mon Nov 29 14:02:57 2010 from 192.0.0.190
Linux (none) 2.6.10_mvl401-pc_target #53 Wed Jul 23 17:16:06 CEST 2008 i686 GNU/Linux

Welcome to MontaVista(R) Linux(R) Professional Edition 4.0.1 (0502020).

 8)

Tell the class how you got a root login.
Logged

GST

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 55
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #26 on: June 24, 2021, 04:14:31 am »

two steps necessary:
- remove or rename /sbin/iptables (disabling the firewall in the service menu didnt help)
- create symlink /etc/rc3.d/S20ssh pointing to ../init.d/ssh to start ssh daemon

 both can be done when mounting the drive in some live linux session on a PC

I am still stuck in how to access nvram and what parameters need to be touched for converting a Q6718A to a Q6720A.
Logged

NackJich

  • Newbie
  • *
  • Offline Offline
  • Posts: 38
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #27 on: June 25, 2021, 10:02:54 am »

Fascinating discussion! If you Google that password, it seems to be generic and related to Seagate HDD firmware?
Logged

zerodata

  • Newbie
  • *
  • Offline Offline
  • Posts: 11
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #28 on: June 26, 2021, 12:24:02 pm »

Fascinating discussion! If you Google that password, it seems to be generic and related to Seagate HDD firmware?

It's not generic.  It's specific to drives used on these formatter boards, but you can extract the password from Seagate drives by connecting to the controller on the drive using a USB-TTL serial cable and issue commands to directly dump specific sectors, including the one containing the password.

Logged

GST

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 55
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #29 on: July 02, 2021, 04:54:08 pm »

After some fiddling around, understanding all the scripts and checks running, I was convinced hard- and software to be identical between non-PS and PS versions. Using strace and some guesswork, I finally figured a very simple process to migrate my Z3200 Photo to a Z3200PS.
Now comes the problem: to prevent any trouble with HP and/or Adobe and this forum, I refrain from posting this in public as of now.

cu
Logged

GST

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 55
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #30 on: July 07, 2021, 08:22:07 am »

Ok, some more findings:

that revealed ATA password really only protects HPs marketing bullshit, but does nothing to protect user data on disk or the like. Make sure you take out the disk of your Designjets before duping them, all previously saved jobs can be re-printed without much hassle. That ATA password surely has been public for years already.
What really makes me angry: not only are non-PS and PS version of same hard and software, HP decided to cripple the non-PS version even further, just for more differentiation (say to get more people to spend the extra bucks).
The PS version not only enables PDF and PS spooling directly, it also gives the user access to the job queue to preview, store or cancel stuff. Not related to any Adobe license at all.
Even further, the built-in Intel 82541GI/PI is a fully featured Gigabit NIC, but will only offer 10/100MBit on the non-PS model. Doing the "upgrade" to PS will automatically enable full 10/100/1000MBit negotiation.
To better hide their intention HP decided to encrypt firmware updates (which are just  .tgz files) with ccrypt using a static password (translated "the night confuses me"), used also on Z5200, Z6100 and probably many more.
In this regards I would like to encourage people to clone the disk, enable root access to get full control and full potential of your Designjets!



Logged

149113

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 78
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #31 on: July 11, 2021, 08:06:23 am »

Just catching up with this thread after a long time away from the board. Sounds like great progress. Just a suggestion here. What might be helpful is a summary in one post on how to back up the drive or clone it to SDD. Something simple like: Step 1 - remove drive from the Z3200... Step 2 - disconnect drive from interface board... Step 3 - Connect SATA drive to a computer running Linux. Step 4 - issue these commands in this order... etc. Instructions that us less Linux fluent owners could follow easily
Logged

zerodata

  • Newbie
  • *
  • Offline Offline
  • Posts: 11
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #32 on: July 11, 2021, 01:12:37 pm »

Just catching up with this thread after a long time away from the board. Sounds like great progress. Just a suggestion here. What might be helpful is a summary in one post on how to back up the drive or clone it to SDD. Something simple like: Step 1 - remove drive from the Z3200... Step 2 - disconnect drive from interface board... Step 3 - Connect SATA drive to a computer running Linux. Step 4 - issue these commands in this order... etc. Instructions that us less Linux fluent owners could follow easily

Here's a rough outline:

Requirements:

1) Computer running Linux with "hdparm" and "parted" utilities installed.
2) Disk off your formatter board. (This is the SOURCE)
3) A target disk to clone to OR sufficient disk space (80+ GB) on your Linux PC. (This is the TARGET)
4) A USB to SATA adapter which supports passing ATA Security commands or having your source hard drive directly connected to the Linux computer's onboard SATA connectors.
5) Enough working knowledge of Linux/command lines or ability to read some HOWTOs.

Process:

1) Connect drives and boot Linux PC.  Login and switch to root user.
2) Determine which drive is what by using "parted -l" which will give you output like this:

Quote
Model: KBG40ZNS256G NVMe TOSHIBA 256GB (nvme)
Disk /dev/nvme0n1: 256GB

So you can see make/model of the drive and its corresponding /dev/device entry, which you need for the next steps.

3) When you figure out what your SOURCE hard drive disk location is (I'm going to assume /dev/sdb), issue "hdparm -I /dev/sdb" and you should get something like this:

Quote
# hdparm -I /dev/sdb
/dev/sdb:
[...]
Security:
        Master password revision code = 65534
                supported
                enabled
                locked

        not     frozen
                expired: security count
                supported: enhanced erase
                Security level high
        4min for SECURITY ERASE UNIT. 2min for ENHANCED SECURITY ERASE UNIT.
[...]

The key point is your SOURCE drive is LOCKED at this point.  You need to unlock it.

4) Issue "hdparm --user-master u --security-unlock "MartaLaiaDesiree" /dev/sdb" to unlock the drive.

5) At this point you should be able to see partition on your drive:

Quote
# fdisk /dev/sdb

Command (m for help): p
Disk /dev/sdb: 298.9 GiB, 320072933376 bytes, 625142448 sectors
Disk model: [redacted]
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: [redacted]

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *           63    273104    273042 133.3M 83 Linux
/dev/sdb2          273105   2281229   2008125 980.5M 83 Linux
/dev/sdb3         2281230  18298034  16016805   7.7G 83 Linux
/dev/sdb4        18298035 156296384 137998350  65.8G  5 Extended
/dev/sdb5        18298098  20306159   2008062 980.5M 82 Linux swap / Solaris
/dev/sdb6        20306223  62316134  42009912    20G 83 Linux
/dev/sdb7        62316198 120326849  58010652  27.7G 83 Linux
/dev/sdb8       120326913 156296384  35969472  17.2G 83 Linux

This is the point at which you can tinker with things on your drive by mounting those partitions and editing the files AND/OR clone your drive to another drive or make a backup image.

https://medium.com/codex/the-art-of-cloning-disks-the-dd-command-primary-usage-patterns-ff377b7616c9 A general guide for cloning disks.

Logged

GST

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 55
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #33 on: July 11, 2021, 01:51:09 pm »

My notes:

Steps to clone HDD:

1, get the formatter out, remove the disk
2, plug the disk and the one you want to use for copy to a PC and boot some live Linux (maybe from USB)
3, you may be prompted for the SATA password in BIOS, just cancel this and boot Linux
4, find the proper disk name in Linux, open a terminal and do: sudo fdisk -l (depending on the used Linux distribution you may or may not need sudo before each command)
5, unlock the disk in linux: sudo hdparm --user-master u --security-unlock "MartaLaiaDesiree" /dev/sda (or whatever fdisk -l showed you. The password needs to be set in quotes)
6, make a copy of the disk using dd: dd if=/dev/sda of=/dev/sdc bs=32M (in this case sda is source, sdc is target).
Use a disk or SSD at least the size of the original, 160GB will do. Copy process will take some time and doesnt show any progress. Wait until the command prompt comes back.
7, shutdown your PC, store the original disk in a safe place and continue to work using the copy or just put it back into the printer.

That  clone can be copied  again much easier, even running Windows with special tools like Trueimage or Partition Assistant

regards
Logged

149113

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 78
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #34 on: July 12, 2021, 06:03:16 pm »

Both posts are excellent and I am gonna try this tonight. Thanks!

EDIT:

dministrator@administrator-Inspiron-7375:~$ sudo hdparm --user-master u --security-unlock "MartaLaiaDesiree" /dev/sdb
security_password: "MartaLaiaDesiree"

/dev/sdb:
 Issuing SECURITY_UNLOCK command, password="MartaLaiaDesiree", user=user
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


Drive is connected to a USB to SATA enclosure. Any suggestions?


EDIT: I figured it out. It did not like the USB to SATA connector I was using. I found a workaround. The dd command is running now. Thanks again!
« Last Edit: July 12, 2021, 08:46:03 pm by 149113 »
Logged

Endeavour

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 384
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #35 on: February 10, 2022, 03:33:29 pm »

Just want to confirm this process worked ok for me

I bought a 64GB SSD from Amazon for $25cad and its working great.

I just wish I could make it skip the FSCK on startup as thats not necessary now lol

Logged

GST

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 55
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #36 on: February 11, 2022, 08:53:29 am »

In my case the FSCK stopped with a fresh CMOS battery.
Logged

orgsol

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
Re: Z3100/Z3200 drive cloning/backup/firmware
« Reply #37 on: March 07, 2022, 10:10:13 pm »

I have just inherited a Z2100 with no HDD. Before I send it to the recycle pile I would like to try and see if I can breath a little more life into it. Hoping someone can point me to a download of the HDD image. I have searched on google but struggling with the right terms to use. Hoping someone may give some assistance. I have an array of HDD's and not knowing if the unit will go beyond the HDD startup error code not wanting to buy a pre configured one off ebay in hope it will work.

Thanks in advance.
Logged
Pages: 1 [2]   Go Up