Can someone please help me if I can copy a UFS storage from one drive to another? The purpose is to back up a drive and quickly copy it if the original drive fails for some reason, or to replicate to other system without going through installation and configuration which can be very cumbersome in some scenarios.
I have a thumb drive with UFS file system storage from a PFSense installation. I made it so I can easily copy it to another drive versus re-doing installation. However, it does not work.
The thumb drive info (/dev/sda):
Size: 128GB
Partitioning: GUID Partition table
Partition 1: 524 KB
Partition 2: 8.6 GB ufs, type: FreeBSD Boot
When using the following DD command:
dd if=/dev/sda of/dev/sdb bs=1M count=9000 status=progress
The second drive (a USB at /dev/sdb) info (after copying):
Size: 64GB
Partitioning: Unknown (PMBR)
Contents: Unallocated Space
This also happens after I copy from the original thumb drive to a file, the write the file to another drive.
I got this error when trying to boot the 2nd drive up:
da0: 40.000MB/s transfers
da0: 61057MB (125045424 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
GEOM: da0: corrupt or invalid GPT detected.
GEOM: da0: GPT rejected -- may not be recoverable.
mountroot: waiting for device /dev/ufsid/675eb96de3f187dc...
Mounting from ufs:/dev/ufsid/675eb96de3f187dc failed with error 19.
Loader variables:
vfs.root.mountfrom=ufs:/dev/ufsid/675eb96de3f187dc
vfs.root.mountfrom.options=rw,noatime
Manual root filesystem specification:
<fstype>:<device> [options]
Mount <device> using filesystem <fstype>
and with the specified (optional) option list.
eg. ufs:/dev/da0s1a
zfs:zroot/ROOT/default
cd9660:/dev/cd0 ro
(which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)
? List valid disk boot devices
. Yield 1 second (for background tasks)
<empty line> Abort manual input
I have a thumb drive with UFS file system storage from a PFSense installation. I made it so I can easily copy it to another drive versus re-doing installation. However, it does not work.
The thumb drive info (/dev/sda):
Size: 128GB
Partitioning: GUID Partition table
Partition 1: 524 KB
Partition 2: 8.6 GB ufs, type: FreeBSD Boot
When using the following DD command:
dd if=/dev/sda of/dev/sdb bs=1M count=9000 status=progress
The second drive (a USB at /dev/sdb) info (after copying):
Size: 64GB
Partitioning: Unknown (PMBR)
Contents: Unallocated Space
This also happens after I copy from the original thumb drive to a file, the write the file to another drive.
I got this error when trying to boot the 2nd drive up:
da0: 40.000MB/s transfers
da0: 61057MB (125045424 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
GEOM: da0: corrupt or invalid GPT detected.
GEOM: da0: GPT rejected -- may not be recoverable.
mountroot: waiting for device /dev/ufsid/675eb96de3f187dc...
Mounting from ufs:/dev/ufsid/675eb96de3f187dc failed with error 19.
Loader variables:
vfs.root.mountfrom=ufs:/dev/ufsid/675eb96de3f187dc
vfs.root.mountfrom.options=rw,noatime
Manual root filesystem specification:
<fstype>:<device> [options]
Mount <device> using filesystem <fstype>
and with the specified (optional) option list.
eg. ufs:/dev/da0s1a
zfs:zroot/ROOT/default
cd9660:/dev/cd0 ro
(which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)
? List valid disk boot devices
. Yield 1 second (for background tasks)
<empty line> Abort manual input