Hi there,
I am trying to clone a time machine backup hard disk from a macbook air (journalled hfsplus filesystem) using my ubuntu 12.04.
So far I managed to extract the disk image without problems using
Code:
dd if=/dev/sdf of=diskimage
Everything seems ok, I can mount the image
Code:
sudo mount -o loop -t hfsplus diskimage mountpointfordiskimage
So far everything works perfectly.
I do want to clone this disk though, So I am plugging in a new hard disk, erasing everything using fdisk (just to be on the safe side), and then
Code:
dd if=diskimage of=/dev/sdf
Everything seems to be fine, but I cannot mount the hard disk.
fdisk does not see any partitions, nor does gparted.
I THOUGHT that dd copies everything, including partition tables. This seems to be wrong.
Trying to mount the disk
Code:
sudo mount -t hfsplus /dev/sdf mountpointfordiskimage
results in
Code:
mount: wrong fs type, bad option, bad superblock on /dev/sdf,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
as does
Code:
sudo mount -o force -t hfsplus /dev/sdf mountpointfordiskimage
sudo mount -o loop -t hfsplus /dev/sdf mountpointfordiskimage
sudo mount -o force -o loop -t hfsplus /dev/sdf mountpointfordiskimage
Trying to mount the disk results in the following log entries:
Code:
sudo mount -o loop -t hfsplus diskimage mountpointfordiskimage
dmesg
[103357.622861] hfs: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. mounting read-only.
sudo mount -t hfsplus /dev/sdf mountpointfordiskimage
dmesg
[103464.475052] hfs: invalid secondary volume header
[103464.475056] hfs: unable to find HFS+ superblock
What can I do in order to copy the working diskimage to my new hard disk such that the resulting disk is a working hfsplus filesystem that can be mounted on linux and mac and can
be read and written on mac?
Bookmarks