Login Register






How to create an image from a SSD drive? filter_list
Author
Message
How to create an image from a SSD drive? #1
Hello,
I have an SSD drive that using kind of Linux. It is an SSD drive for MITEL 3300 switch: https://www.telecomspares.com/images/icp...i%20II.jpg
I want to create a backup from it. The SSD drive has below structure:
Code:
$ lsblk -f NAME FSTYPE LABEL UUID                                FSAVAIL FSUSE% MOUNTPOINT sdc                                                                  ├─sdc1 │    vfat  /sysro │                020C-0000                                          ├─sdc2 │    vfat  /db  0257-0000                                          ├─sdc3 │    vfat  /vmail │                02F6-0000                                          ├─sdc4 │                                                                    ├─sdc5 │    vfat  /sysro │                036A-0000                                          ├─sdc6 │    vfat  /db  037F-0000                                          └─sdc7     vfat  /unused                   03FA-0000         
First, I unmounted all of the partitions:
Code:
$ sudo umount /dev/sdcX
Then, used below command to create a clone:
Code:
$ sudo dd if=/dev/sdc of=/home/jason/SSD.dd 234441648+0 records in 234441648+0 records out 120034123776 bytes (120 GB, 112 GiB) copied, 2850.17 s, 42.1 MB/s
And:
Code:
$ file SSD.dd SSD.dd: DOS/MBR boot sector; partition 1 : ID=0x6, active, start-CHS (0x0,1,1), end-CHS (0x8f,254,63), startsector 63, 2313297 sectors; partition 2 : ID=0xb, start-CHS (0x90,0,1), end-CHS (0x3ea,254,63), startsector 2313360, 13799835 sectors; partition 3 : ID=0xc, start-CHS (0x3eb,0,1), end-CHS (0x3ff,254,63), startsector 16113195, 29543535 sectors; partition 4 : ID=0xf, start-CHS (0x3ff,0,1), end-CHS (0x3ff,254,63), startsector 45656730, 188784918 sectors
After it, I plugged another SSD drive with the same capacity and executed below command to recover the image to this new SSD drive:
Code:
# dd if=SSD.dd | pv | dd of=/dev/sdc bs=1M 234441648+0 records iniB/s] [                      <=>                        ] 234441648+0 records out 120034123776 bytes (120 GB, 112 GiB) copied, 4376.66 s, 27.4 MB/s 111GiB 1:12:56 [26.2MiB/s] [                    <=>                          ] 1+2129501 records in 1+2129501 records out 120034123776 bytes (120 GB, 112 GiB) copied, 4415.03 s, 27.2 MB/s
But, when I plugged this new SSD to the switch then it doesn't work!


Thank you.
(This post was last modified: 11-29-2020, 08:24 AM by Hack3rcon.)

Reply

RE: How to create an image from a SSD drive? #2
Moved from the Operating Systems forum to Hardware & Customization.
[Image: AD83g1A.png]

Reply

RE: How to create an image from a SSD drive? #3
Any idea?
How can I to see the hidden parts of a HDD?

Reply

RE: How to create an image from a SSD drive? #4
(11-29-2020, 08:23 AM)Hack3rcon Wrote:
Code:
dd if=SSD.dd | pv | dd of=/dev/sdc bs=1M

I notice you don't append "conv=sync,noerror". Is that intentional or have you tried that already? Have you tried cloning the drive using other means?
[Image: 7ajmN5P.jpg]

Telegram: Oni_SL (Link)

Reply

RE: How to create an image from a SSD drive? #5
Thank you for your reply.
That parameters just check the image health?
Can "dd" copy (HPA and DCO) of a disk?

Reply

RE: How to create an image from a SSD drive? #6
(11-30-2020, 01:28 PM)Hack3rcon Wrote: Thank you for your reply.
That parameters just check the image health?
Can "dd" copy (HPA and DCO) of a disk?

Sync does a few other things:
https://superuser.com/a/622553

I have seen HPA/DCO referenced in relation to dd, but I am not certain.
[Image: 7ajmN5P.jpg]

Telegram: Oni_SL (Link)

Reply

RE: How to create an image from a SSD drive? #7
I'd also recommend trying drive-to-drive, rather than image-to-drive for transfer (if you haven't already).
[Image: 7ajmN5P.jpg]

Telegram: Oni_SL (Link)

Reply

RE: How to create an image from a SSD drive? #8
Thank you for your reply.
Why original drive has difference hashes compared to cloned drive?
Code:
Original: Partition 0: Size: 1.10 GB SHA-1: 20f9d5196736771e6bffb0c12052e996d35e8df3 MD5: dd5a5ffb08d35d7758a77c9dacba3874 Partition 1: Size: 6.58 GB SHA-1: 8018ce32f313cabfd8ebf9fb7f14a1d79988a1b0 MD5: d5277242c62bde2ec3932049d65229ab Partition 2: Size: 14.09 GB SHA-1: 1a3385d06f9ce95af80669b1af29d6d3a9e436ce MD5: 7845181ea5c5467a7219ed714d97b09c Partition 3: Size: 1.10 GB SHA-1: 77216106ff98a77479a81b95abd10b4a4a5cc46f MD5: 032e997221da902b884ce23b26c6d0e9 Partition 4: Size: 6.59 GB SHA-1: 507276ebc81fdadd4dcd36b9ac2c024f7d52ddc9 MD5: 7cf0951a2fd6c4e9bbd101688b719ddb Partition 5: Size: 82.33 GB SHA-1: c3d0cf989c17cc8fae518ab8729df3d4f9599eb5 MD5: b779439080a8a19c6f38f99883d86d9a ********************************************************** Cloned: Partition 0: Size: 1.10 GB SHA-1: 88b4f781a66f8407326bde847c16114e40b7aacf MD5: 8e67ea69b7d17bf867760175b6697d11 Partition 1: Size: 6.58 GB SHA-1: 6f623c54386e4346fd72cb09ea4539b38543575b MD5: 2f3ad684cac91559646242764e984355 Partition 2: Size: 14.09 GB SHA-1: a91ad5962611ca36746283de9bc6c3d28921aeb0 MD5: dfbd62f46af3d3d4c6a2989f0a0c12a3 Partition 3: Size: 1.10 GB SHA-1: 6dab8007bed89608bca5bd026c0aee9c45dbd48b MD5: c5779f6cb8b00106799cbd08d468ca79 Partition 4: Size: 6.59 GB SHA-1: 980908929ee34d2ca09e15dab1a7bc474b00e587 MD5: ab7e328be37708cbc1a597a4e115782e Partition 5: Size: 82.33 GB SHA-1: a22fa1ba60062cf4981c23d0b8cbee807679cc82 MD5: 1685d0acb10c0d4e4d2ef8b419c0c588
I created an image with "OSForensics" tool too.
Cloned drive can't boot and show me:
Code:
MITEL SYSTEM ROM R3.1/10 Aug 5 2011 (83 - POWER_ON_RESET) CCA Number : 56009581 Ra.4 System Model : 00620001 F2500 CPU Model : 8360 R80480021 Reset Config Low : 0804008c Reset Config High : b4500006 Coherent System Bus Clock (MHz) : 266 CPM Clock (MHz) : 399 Core Clock (MHz) : 533 DDR Clock (MHz) : 133 Local Bus Clock (MHz) : 66 Input Clock (MHz) : 33 Internal Memory Map : f0000000 Main Memory (MB) : 512 Local Memory (MB) : 0 Flash Memory (MB) : 4 MAC Address : 08000f640a40 POST Bypass : 0 Watchdog Bypass : 0 Slot Id : 0 Starting POST... SDRAM CS1 Data Bit Walk 1................... PASSED SDRAM CS1 Data Bit Walk 0................... PASSED SDRAM CS1 Address Walk 1................... PASSED SDRAM CS1 Address Walk 0................... PASSED SDRAM CS1 March Test........................ PASSED Starting vxWorks... Decompressing FPGA image...615412 bytes decompressed successfully Programming the FPGA image...OK FPGA version 0002:6123 loaded SATA RAID Controller Not Present. VxWorks System Boot Copyright 1984-2002 Wind River Systems, Inc. CPU: Mitel MMC-C PPC83XX F2500 Version: VxWorks5.5.2 BSP version: 3.1/10 Creation date: Aug 5 2011, 18:41:11 Press <SPACE><SPACE><SPACE> to stop auto-boot AFTER countdown starts... <7><6><5><4><3><2><1><0> auto-booting... boot device : ata=0 unit number : 0 processor number : 0 host name : bootHost file name : /partition1/RTC8260 inet on ethernet (e) : 172.18.6.5:fffffff0 host inet (h) : 192.168.137.10 gateway inet (g) : 172.18.6.14 user (u) : ftp ftp password (pw) : ftp flags (f) : 0x0 target name (tn) : MyPhone other (o) : qefcc Disk Configuration Started. Creating block device for controller 0 drive 0... done. Creating CBIO device for controller 0 drive 0... done. 0KB added to /partition1 partition free disk space after partition 0 is 0KB 0KB added to /partition2 partition free disk space after partition 1 is 0KB 0KB added to /partition3 partition free disk space after partition 2 is 0KB 0KB added to /partition4 partition free disk space after partition 3 is 0KB Attaching to partition table for 4 partitions on controller 0 drive 0... done. Creating Cache Layer for partition 0 (/partition1) on controller 0 drive 0... done. Creating Cache Layer for partition 1 (/partition2) on controller 0 drive 0... done. Creating Cache Layer for partition 2 (/partition3) on controller 0 drive 0... done. Creating Cache Layer for partition 3 (/partition4) on controller 0 drive 0... done. Creating Dos FS device for partition 0 (/partition1) on controller 0 drive 0... done. Creating Dos FS device for partition 1 (/partition2) on controller 0 drive 0... done. Creating Dos FS device for partition 2 (/partition3) on controller 0 drive 0... done. Creating Dos FS device for partition 3 (/partition4) on controller 0 drive 0... done. Disk Configuration Complete. Loading /partition1/RTC8260...66125120 Starting at 0x6857c8...
It is a VxWorks operating system.
(This post was last modified: 12-17-2020, 10:20 PM by Hack3rcon.)

Reply

RE: How to create an image from a SSD drive? #9
(12-17-2020, 10:18 PM)Hack3rcon Wrote: Why original drive has difference hashes compared to cloned drive?
Are both drives the same size/capacity?

If not, then the copy Is not byte-for-byte perfect, which may result In a different hash.
[Image: AD83g1A.png]

Reply

RE: How to create an image from a SSD drive? #10
(12-18-2020, 04:12 AM)mothered Wrote:
(12-17-2020, 10:18 PM)Hack3rcon Wrote: Why original drive has difference hashes compared to cloned drive?
Are both drives the same size/capacity?

If not, then the copy Is not byte-for-byte perfect, which may result In a different hash.
I made another clone and hashes are same, but system can't boot Sad
Any special tools or...?

Reply