Reading a hard drive from a sparc64 box in an i386 box

John Nielsen lists at jnielsen.net
Thu Sep 14 13:04:11 PDT 2006


I have a hard drive containing a single slice that was installed in a sparc64 
box running FreeBSD 6.1. I have installed the drive in an i386 box running 
6-STABLE. Is there any way I can get the files off the drive before 
repartitioning it? Running "sunlabel" from the i386 box shows the same output 
as it did on the sparc64 machine, but the only entry in /dev for the drive is 
ad3. (And sadly, mount /dev/ad3 /mnt didn't work.)

I suppose the thing to do would be to somehow translate the label into a 
bsdlabel-compatible one, but I'm hesitant to experiment since I don't want to 
lose the files. (My fail-back plan is to put the drive back in the sparc64 
box and suffer through transferring everything over the slow network link.)

Any ideas or success or failure stories would be appreciated.

In case it's useful, here's the sunlabel output:

%sunlabel ad3
# /dev/ad3:
text: FreeBSD56G cyl 58166 alt 2 hd 32 sec 63
bytes/sector: 512
sectors/cylinder: 2016
sectors/unit: 117262656

8 partitions:
#
# Size is in sectors.
# Offset is in cylinders.
#    size       offset
#    ---------- ----------
  c:  117262656          0
  d:  117262656          0


And with -c:

%sunlabel -c ad3
# /dev/ad3:
text: FreeBSD56G cyl 58166 alt 2 hd 32 sec 63
bytes/sector: 512
sectors/cylinder: 2016
sectors/unit: 117262656

8 partitions:
#
# Size is in cylinders.
# Offset is in cylinders.
#    size       offset
#    ---------- ----------
  c:      58166          0
  d:      58166          0

Thanks!

JN


More information about the freebsd-sparc64 mailing list