Re: Damaged super block / fs root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 30, 2011 at 05:59:54PM +0200, Dennis Bergmann wrote:
> I have accidently damaged the first block(s) of a btrfs partition
> and can't mount it anymore.
> 
> I can see that my data is still intact by running a command like:
> 
> cat /dev/sda5 | hexdump -C | more
> 
> Do any (experimental) tools exist which would allow me to recover the files?

   There's btrfs-select-super, which is in the git repo for btrfs
tools, in the next or tmp branches. That should allow you to select an
alternative superblock to use, which (I think) will help you. If it is
just your superblock that's damaged, that should help.

   You can check whether it's likely to be of use by running "btrfsck
-s 1" on your filesystem. If it passes OK, then btrfs-select-super
should be useful.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
  --- Attempted murder, now honestly, what is that?  Do they give a ---  
                  Nobel Prize for attempted chemistry?                   

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux