View Single Post
  #2   (View Single Post)  
Old 28th May 2017
daemonbak daemonbak is offline
Fdisk Soldier
 
Join Date: Feb 2015
Posts: 51
Default

I ended up using disklabel -E to manually partition the disk. All sizes are the same as the source drive... with a little stolen from home to adjust for the slightly smaller size.

I did notice that the offset default was 64 on the new drive, but the original source drive was 32 offset. I left it 64 to be safe.

Now what would be the best way to backup:
src drive > target drive?

Would this be dump | restore one partition at a time and then use dd for partition k (/home)

Thanks

New disklabel -e sd1
Code:
 /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: Cruzer
duid: 4ba99503bda02123
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 3800
total sectors: 61056064
boundstart: 64
boundend: 61047000
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:          4202368               64  4.2BSD   2048 16384    1
  b:          8608800          4202432    swap
  c:         61056064                0  unused
  d:          4202400         12811232  4.2BSD   2048 16384    1
  e:          8396640         17013632  4.2BSD   2048 16384    1
  f:          8396640         25410272  4.2BSD   2048 16384    1
  g:          2105280         33806912  4.2BSD   2048 16384    1
  h:          6299520         35912192  4.2BSD   2048 16384    1
  i:          8396640         42211712  4.2BSD   2048 16384    1
  j:          6299520         50608352  4.2BSD   2048 16384    1
  k:          4139104         56907872  4.2BSD   2048 16384    1

# Notes:
# Up to 16 partitions are valid, named from 'a' to 'p'.  Partition 'a' is
# your root filesystem, 'b' is your swap, and 'c' should cover your whole
# disk. Any other partition is free for any use.  'size' and 'offset' are
# in 512-byte blocks. fstype should be '4.2BSD', 'swap', or 'none' or some
# other values.  fsize/bsize/cpg should typically be '2048 16384 16' for a
# 4.2BSD filesystem (or '512 4096 16' except on alpha, sun4, ...)

Last edited by daemonbak; 28th May 2017 at 04:13 AM.
Reply With Quote