Author Topic: Bit Copy Of A Mixed Use Hard Drive  (Read 1399 times)

0 Members and 1 Guest are viewing this topic.

Offline German_EETopic starter

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Bit Copy Of A Mixed Use Hard Drive
« on: November 08, 2019, 05:22:35 pm »
The hard drive on my workshop machine is used for both MS Windows 10 and Ubuntu Linux, because of this there are six different partitions on the hard drive including UEFI, NTFS and ext3. I would like to make a bit copy of the entire 250 Gb drive for disaster recovery purposes, in the old days I would have used something like Norton Ghost but I am not sure if this program can cope with a mixture of partition types.

The two operating systems don't help here, Linux has trouble reading UEFI formatted drives and MS Windows refuses to recognize an ext3 partition.

So, what can I use to make a bit copy of everything on the drive in one go?
Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 

Offline andycsmith

  • Contributor
  • Posts: 16
  • Country: gb
Re: Bit Copy Of A Mixed Use Hard Drive
« Reply #1 on: November 08, 2019, 05:34:40 pm »
you could try https://www.clonezilla.org/, the latest version handles UEFI and should cope with Linux as its Linux based software. I use it for taking images of windows PC's.
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7990
  • Country: gb
Re: Bit Copy Of A Mixed Use Hard Drive
« Reply #2 on: November 08, 2019, 05:37:48 pm »
The two operating systems don't help here, Linux has trouble reading UEFI formatted drives

Eh?!

You have Linux. Use dd.
 

Offline helius

  • Super Contributor
  • ***
  • Posts: 3637
  • Country: us
Re: Bit Copy Of A Mixed Use Hard Drive
« Reply #3 on: November 08, 2019, 05:38:47 pm »
Code: [Select]
# dd if=/dev/hda of=backup.raw conv=sparse iflag=direct & only if your current directory is on a different disk, of course.
 

Offline I wanted a rude username

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: au
  • ... but this username is also acceptable.
Re: Bit Copy Of A Mixed Use Hard Drive
« Reply #4 on: November 09, 2019, 01:47:47 am »
Yep, and also if you want the image to be as small as possible, first run zerofree on the Linux filesystems (and equivalent on the Windows filesystems) and, then when you dd, pipe the output through xz or your favourite compression program.
 

Offline German_EETopic starter

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Re: Bit Copy Of A Mixed Use Hard Drive
« Reply #5 on: November 09, 2019, 07:54:29 am »
I tried using dd overnight, everything was copied across except the two EFI partitions so the search for an answer continues.
Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7990
  • Country: gb
Re: Bit Copy Of A Mixed Use Hard Drive
« Reply #6 on: November 09, 2019, 08:49:54 am »
I tried using dd overnight, everything was copied across except the two EFI partitions so the search for an answer continues.

I think you're searching for a question..

If you use dd to copy a raw block device, everything will be copied. UEFI or not.
 

Offline Halcyon

  • Global Moderator
  • *****
  • Posts: 5656
  • Country: au
Re: Bit Copy Of A Mixed Use Hard Drive
« Reply #7 on: November 09, 2019, 09:23:08 am »
I tried using dd overnight, everything was copied across except the two EFI partitions so the search for an answer continues.

I think you're searching for a question..

If you use dd to copy a raw block device, everything will be copied. UEFI or not.

Absolutely. dd cares not what is on the disk. It could be complete garbage (encrypted) or blank, it will still image it, bit-for-bit, start to finish.
 

Online magic

  • Super Contributor
  • ***
  • Posts: 6736
  • Country: pl
Re: Bit Copy Of A Mixed Use Hard Drive
« Reply #8 on: November 09, 2019, 11:00:40 am »
I wouldn't make images of a disk containing any filesystem which is mounted read-write at the time. This is asking for an inconsistent snapshot which may fail to mount or cause data corruption down the line after restoration.

I have no idea what you mean by UEFI format and EFI partitions.

There is the new UEFI GUID partition tables, Linux of course supports them or it wouldn't even mount its own partition. There are some individual partitions for UEFI use, I know nothing about their contents because my household is UEFI-free but you can certainly image them by reading /dev/sdxN regardless of what filestystem format they contain.

I tried using dd overnight, everything was copied across except the two EFI partitions so the search for an answer continues.
Maybe it's time to ask what exactly have you done and how you know what is copied and what is not.
« Last Edit: November 09, 2019, 11:06:50 am by magic »
 

Offline wilfred

  • Super Contributor
  • ***
  • Posts: 1252
  • Country: au
Re: Bit Copy Of A Mixed Use Hard Drive
« Reply #9 on: November 09, 2019, 11:32:39 am »
Be sure to verify your copy to another HDD will work by booting from it. The last thing you'd want is aggravation when you have dire need of it to work.

And I agree dd should be suitable.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf