[haiku] Re: Recovering data from faulty BeOS volume

  • From: "Alexander G. M. Smith" <agmsmith@xxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Sat, 09 Sep 2017 09:09:58 -0400 EDT

andrewjameswood wrote on Sat, 9 Sep 2017 10:50:16 +0100:

I can mount the disk from an alternative Haiku nightly installation on 
another disk but cannot access the 'Desktop' folder on the faulty disk. 

If it's important data, copy the whole disk partition (or even the whole disk 
drive) to somewhere else (USB disk drive or a disk over the network, etc).  
Possibly use a Linux live boot CD like Knoppix.  Open a root shell, and copy 
the disk partition (named something like /dev/sda2, use fdisk /dev/sda to list 
them all) to that file somewhere else.  You can use compression too, such as in:
gzip -c < /dev/sda2 | ncftpput -c -u UserID -p Password OtherComputer.domain 
DestPath/SavedPartition.gz

Then boot up Haiku (possibly from a Haiku live CD), mount the bad disk and try 
"checkfs /YourDiskNameHere" to see if that fixes things.  If it makes a mess, 
copy the saved partition back to the original one and try something else.

You can also get fancier by using a virtual machine to attempt repair on a copy 
of the disk, which has the advantage of letting you revert changes to a 
previously snapshotted state of the virtual disk rather than copying the whole 
partition.

- Alex

Other related posts: