| Electronics > Repair |
| N9020A hard drive cloning |
| (1/2) > >> |
| radar_macgyver:
I have a Keysight N9020A MXA spectrum analyzer with the older single-core CPU module with the non-removable hard drive. It's a mechanical 40 GB drive with a parallel ATA interface, and I figured it's a matter of time before it dies so I made an image of it using 'ddrescue'. ddrescue found one bad sector on the entire drive, but was otherwise able to make an image. I wrote the image onto a 64 GB compact flash card in a CF to PATA adapter, and could verify that the drive is readable. It shows four partitions: Windows XP, User Data, Calibration and Recovery. When I installed the CF card in the instrument, it does boot into XP, but it shows only the 'C:' drive. The other three are not visible, and the spectrum analyzer application refuses to start. Using the "Disk Management" utility (after logging in as Administrator) shows four partitions on the disk, but only one is 'active'. I'm unable to mark the others as active, the option is grayed out. Using a PATA to USB adapter, I plugged the drive into a Windows 11 machine and all four partitions were visible and I could see the files on them. The instrument boots and runs fine after reinstalling the original hard drive. Any clues on how to correctly image and restore this drive? |
| KE5FX:
--- Quote from: radar_macgyver on October 24, 2024, 12:17:29 am ---I have a Keysight N9020A MXA spectrum analyzer with the older single-core CPU module with the non-removable hard drive. It's a mechanical 40 GB drive with a parallel ATA interface, and I figured it's a matter of time before it dies so I made an image of it using 'ddrescue'. ddrescue found one bad sector on the entire drive, but was otherwise able to make an image. I wrote the image onto a 64 GB compact flash card in a CF to PATA adapter, and could verify that the drive is readable. It shows four partitions: Windows XP, User Data, Calibration and Recovery. When I installed the CF card in the instrument, it does boot into XP, but it shows only the 'C:' drive. The other three are not visible, and the spectrum analyzer application refuses to start. Using the "Disk Management" utility (after logging in as Administrator) shows four partitions on the disk, but only one is 'active'. I'm unable to mark the others as active, the option is grayed out. Using a PATA to USB adapter, I plugged the drive into a Windows 11 machine and all four partitions were visible and I could see the files on them. The instrument boots and runs fine after reinstalling the original hard drive. Any clues on how to correctly image and restore this drive? --- End quote --- I usually either attach the old and new drives on a PC temporarily and boot Clonezilla from a USB stick, or use a dedicated disk copier such as this one. Both have worked fine for backing up hard drives in various embedded systems, from car infotainment systems running QNX to spectrum analyzers running Windows. The built-in Windows utilities are either hard to use or incapable, and the old standby commercial products like Acronis are basically malware at this point, installing tons of unrelated junk that may or may not uninstall cleanly. Also, booting an OS from CF is asking for grief in my experience. At least I've never had much luck with them. I'd try to find a way to use a real SSD or hard drive. |
| fzabkar:
--- Quote from: radar_macgyver on October 24, 2024, 12:17:29 am ---When I installed the CF card in the instrument, it does boot into XP, but it shows only the 'C:' drive. The other three are not visible, and the spectrum analyzer application refuses to start. Using the "Disk Management" utility (after logging in as Administrator) shows four partitions on the disk, but only one is 'active'. I'm unable to mark the others as active, the option is grayed out. --- End quote --- The active partition is the one that the system boots from. That's why you can make only one partition active. Note that CF cards can be preconfigured as either ATA or ATAPI devices. You need the former. A tool such as HDAT2 will enable you to retrieve a 512-byte info block using the Identify Device (ATA) or Identify Packet Device (ATAPI) command. You can also do this with CrystalDiskInfo (Text Copy). |
| radar_macgyver:
Thank you for the replies! --- Quote from: KE5FX on October 24, 2024, 02:59:16 am ---I usually either attach the old and new drives on a PC temporarily and boot Clonezilla from a USB stick, or use a dedicated disk copier such as this one. Both have worked fine for backing up hard drives in various embedded systems, from car infotainment systems running QNX to spectrum analyzers running Windows. --- End quote --- I did try Clonezilla, it would not let me select the original drive from the spectrum analyzer (CZ would detect it, but then only show me the USB drive that I booted CZ from). I had used the 'whole disk' copy mode rather than partitions, and chose to write an image to another drive rather than a disk-to-disk copy. --- Quote from: KE5FX on October 24, 2024, 02:59:16 am ---Also, booting an OS from CF is asking for grief in my experience. At least I've never had much luck with them. I'd try to find a way to use a real SSD or hard drive. --- End quote --- The interface available from the embedded PC is a 2.5" parallel ATA, so I will find a SATA to PATA adapter (I didn't know these exist - turns out they do) and figure out how to power it within the N9020A's CPU module. I successfully used a CF card to replace the HDD of other embedded devices with PATA HDDs that ran DOS (an older Seapath inertial navigation system) and Windows NT (R&S ZVC Network Analyzer). --- Quote from: fzabkar on October 24, 2024, 03:12:53 am ---The active partition is the one that the system boots from. That's why you can make only one partition active. --- End quote --- I forgot to mention that I went down this track because while the Windows "Disk Management" utility shows four entries, only one has a drive letter assigned. The other three do not have a letter, and attempting to assign one gives an error that the partition is not currently active. --- Quote from: fzabkar on October 24, 2024, 03:12:53 am ---Note that CF cards can be preconfigured as either ATA or ATAPI devices. You need the former. A tool such as HDAT2 will enable you to retrieve a 512-byte info block using the Identify Device (ATA) or Identify Packet Device (ATAPI) command. You can also do this with CrystalDiskInfo (Text Copy). --- End quote --- I think this could be the the reason if Windows XP distinguishes between ATA and ATAPI devices (all four partitions of the cloned CF disk is readable under both Windows 11 and Linux). I'll check this when I have access to the drive if there's an option to switch to ATAPI. When looking up info on ATA vs ATAPI CF cards I did find a couple of your older posts on other forums, and just like in those, I am using a SanDisk CF card. |
| radar_macgyver:
CrystalDiskInfo does not detect the CF card when using a USB adapter to connect it to a Windows desktop. |
| Navigation |
| Message Index |
| Next page |