Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Had a power‐cut last week and thought nothing of it but today when I opened (mounted) a data partition for archiving edited video files, I noticed it had 50GB free when it previously had only 2…

john@joran ~ > df -h /media/editing/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda10      232G  181G   49G  79% /media/editing

john@joran ~ > sudo btrfs fi show /dev/sda10
Label: 'editing'  uuid: *snip*
    Total devices 1 FS bytes used 180.01GB
    devid    1 size 231.27GB used 229.54GB path /dev/sda10

john@joran ~ > sudo fsck.btrfs --repair /dev/sda10
found 193283719168 bytes used err is 0
total csum bytes: 188503800
total tree bytes: 255827968
total fs tree bytes: 1744896
btree space waste bytes: 49940305
file data blocks allocated: 1728409796608
 referenced 192990859264
Btrfs Btrfs v0.19

john@joran ~ > uname -a
*snip* 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 GNU/Linux

Any advice?

share|improve this question
    
Just try it out btrfs.wiki.kernel.org/index.php/Restore, Also try asking in the mailing list . –  tijybba Jul 11 '12 at 13:12
add comment

1 Answer

Figure out what files are missing ( if any -- the free space simply may have been wrong before ), and restore them from backup.

If you don't have a backup, then sooner or later you are going to lose your data, especially if you store it on an experimental filesystem like btrfs.

share|improve this answer
    
"Too bad...shoulda backed it up" is not an answer; it should be the cautionary postscript to an answer discussing Btrfs restore options. –  izx Jul 17 '12 at 17:53
    
@izx, there are none, and more importantly, it is quite likely that he isn't even missing anything. –  psusi Jul 18 '12 at 17:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.