linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unrecoverable errors when the btrfs file system was modified outside the running OS
@ 2014-08-04  6:29 rocwhite168
  2014-08-04 16:27 ` Chris Murphy
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rocwhite168 @ 2014-08-04  6:29 UTC (permalink / raw)
  To: linux-btrfs

Hello,

I just had a very frustrating experience with btrfs, which I was only
able to resolve by rolling back to ext4 using the subvol btrfs-convert
created. The same type of situation occurred before when I was using
the ext file system and the result was far less disastrous.

The source of problem came from the fact that I have a Windows and
Ubuntu 14.04 dual-boot setup and within Windows I also use VirtualBox
to run the same Ubuntu with rawdisk. Today I updated Ubuntu to a new
kernel within VirtualBox. At this point, I would usually shutdown
VirtualBox before I let my machine go to hibernation. However, this
time I forgot. And when the machine started up, it went directly into
Ubuntu (because grub was updated and to avoid issues my VirtualBox
setup didn't allow Ubuntu to see my Windows partitions). I did a
grub-udpate, and rebooted back to Windows, where my VirtualBox was
still up and running fine. The tragedy happened when I now shut down
Ubuntu and VirtualBox. The btrfs file system was totally corrupted. I
tried various combinations ro, recovery, nospace_cache, and
clear_cache mount options, and it wouldn't mount. dmesg showed some
"transid verify failed", "open_ctree failed" error messages. btrfs
restore only retrieved three files.. btrfsck --repair and
btrfs-zero-log didn't help either.

To my very surprise, btrfs-convert -r was able to use the subvol it
created to roll back to ext4. But had I not converted from ext4 to
btrfs, this would be an unrecoverable situation. Whether or not I have
backups is a separate issue, being able to recover at least "somewhat"
in this situation seems to be a desired feature for any file system.

Roc

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-07  9:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-04  6:29 Unrecoverable errors when the btrfs file system was modified outside the running OS rocwhite168
2014-08-04 16:27 ` Chris Murphy
2014-08-06 13:19 ` Justus Seifert
2014-08-07  9:11 ` Chris Samuel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).