While spinning up a nice new laptop, I needed to stage my Gentoo install through Ubuntu so I could use EFI. The problem with this is that my newly created and mounted btrfs was crashed multiple times because Ubuntu wanted to be awful and unstable. This isn''t a complaint about Ubuntu, it knows what it did wrong. The issue I had was how to remove the corruption that resulted. Every attempt to remove the files via rm or whatever resulted in a kernel oops. My natural throught was ''btrfsck'' because I knew that had been recently added. However the --help/-h showed nothing and the corruption persisted. After doing massive amounts of googling, I found the following article: http://www.phoronix.com/scan.php?page=news_item&px=MTA2MDI Basically, phoronix showed there is a --repair option. After enabling snapshotting and playing around with the various discussed options, I discovered that --repair and no special mount options was sufficient to get the files removable. Now what I''m hoping for is better documentation on btrfsck even if it just boils down to a brief enumeration of the options as that would be better than nothing which is what we have now. Do I need to file a bug or is this sufficient? I''d like to see this project improve because I''m very impressed with its'' features and how it has reacted to the abuse thrown at it thus far. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Fajar A. Nugraha
2012-Jul-12 05:57 UTC
Re: file system corruption removal / documentation quandry
On Thu, Jul 12, 2012 at 12:13 PM, eric gisse <jowr.pi@gmail.com> wrote:> Basically, phoronix showed there is a --repair option. After enabling > snapshotting and playing around with the various discussed options, I > discovered that --repair and no special mount options was sufficient > to get the files removable.I''m curious, whether running it directly on newer kernel (e.g. latest ubuntu kernel-ppa/mainline) will be able to "solve" the problem, even without btrfsck. Also note that if by "snapshotting" you mean "create LVM snapshots", then you might be in for another surprise, as btrfs doesn''t play nice with block devices with the same fs UUID. Don''t rely on that as backup option.> > Now what I''m hoping for is better documentation on btrfsck even if it > just boils down to a brief enumeration of the options as that would be > better than nothing which is what we have now. Do I need to file a bug > or is this sufficient?Edit https://btrfs.wiki.kernel.org/index.php/Btrfsck ? -- Fajar -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html