How to read btrfs volumes on windows natively?

7

0

Basically the same asHow to read ext4 partitions on Windows ?.
As I wanted to enjoy btrfs features such as transparent compression or auto defragmentation, I installed my Linux system on a btrfs subvolume.
I tried ᴜꜰꜱ explorer, but it is unable to read most of my files.

So how to retrieve my Linux music files without having to reboot ?

I only want read access, not writing any bytes on the filesystem (my Linux system being currently suspended on disk).
A better option would being able to export directories as a tar archive in order to keep permission and attributes.

user2284570

Posted 2016-06-07T12:18:07.160

Reputation: 1 160

VirtualBox with a linux liveCD, share the drives via samba? Or maybe DiskInternals LinuxReader might support btrfs by now (http://www.diskinternals.com/linux-reader/)

– Toby – 2016-06-07T12:26:22.550

@Toby :DiskInternals LinuxReadercan’t access btrfs subvolumes. And Virtualbox can’t be used to access physical drives on Windows. – user2284570 – 2016-06-07T12:28:34.293

Ah hmmm, just a quick thought! – Toby – 2016-06-07T12:35:35.943

2@Toby : you can still upvote it. – user2284570 – 2016-06-07T12:41:04.790

Answers

8

WinBtrfs

Just because this thread comes up in Google, I would like to echo noctrex's answer in recommending WinBtrfs (GitHub), an experimental Windows Btrfs driver. Among its other features, it supports:

  • Reading and writing of Btrfs filesystems
  • Basic RAID: RAID0, RAID1, and RAID10
  • Advanced RAID: RAID5 and RAID6
  • Getting and setting of Access Control Lists (ACLs), using the xattr security.NTACL
  • Hard links
  • Sparse files
  • zlib compression
  • LZO compression

You can choose to mount it read-only after installation by modifying the registry entries in HKLM\SYSTEM\CurrentControlSet\Services\btrfs, and I've found it to be very stable (if a bit slow) even with six mounted Btrfs partitions and very frequent reads from one of them.

It does support writes to the disk, but as the software is still in development (and comes with the important disclaimer that "YOU USE IT AT YOUR OWN RISK. I take NO RESPONSIBILITY for any damage it may do to your filesystem. DO NOT USE THIS DRIVER UNLESS YOU HAVE FULL AND UP-TO-DATE BACKUPS OF ALL YOUR DATA"), it's probably inadvisable to not mount it read-only. (Unfortunately, by default it mounts with writes enabled, so you do have to go into the registry and change that. You should definitely have backups, in any case.)

Unfortunately, as the program is currently an unsigned driver, installation also requires enabling test signing by running "bcdedit -set TESTSIGNING ON" in the command prompt (followed by rebooting, right clicking on btrfs.inf from the WinBtrfs download, and clicking install). The GitHub page has full installation instructions.

Joseph Parsons

Posted 2016-06-07T12:18:07.160

Reputation: 96

1I don't want to be pesimistic, but BEWARE, I was testing winBTRFS, and some minutes updating some games on Steam and on Battle.net led when I finished playing and back to linux to a severe corruption state: Corrupted leafs, slow performance and finally even it could not be mounted. Seems that some heavy disk usage makes corruption. (Had a backup!). no subvolumes, no raid, no compression, just default values for both linux and windows. Seems read only is safe but caution on writes. – StormByte – 2019-08-18T02:18:04.257

1

In VBOX you can create a virtual disk device pointing to the raw disk device. You can also do this with VMWARE with an online vm creator or workstation trial then use vmware free player and of course you can do this in HyperV for free.

http://www.serverwatch.com/server-tutorials/using-a-physical-hard-drive-with-a-virtualbox-vm.html

It will be interesting to see if driver support comes to Linux on Windows...

http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/

Dan Shiskin

Posted 2016-06-07T12:18:07.160

Reputation: 11

I said in Windows, not on a Linux machine. – user2284570 – 2016-12-21T20:08:27.647

1Well from your post it seemed like you needed access to something important on a btrfs system. Although using linus in a vm, technically you are running that vm on windows and would not have to reboot so techically it is still a viable option. You should edit your post to state that you want a "Transparent btrfs system driver" in which case I would contact Paragon Software. They have hfs+ ext3 ext4 drivers for windows and ntfs ext3 ext4 drivers for mac. If anyone is working on a driver it would be them. – Dan Shiskin – 2016-12-21T20:16:59.507

In fact, I already have a Linux system, my aim is getting those files on my Windows desktop. The alternative would be a read only application. I don’t need to mount the filesystem. – user2284570 – 2016-12-21T22:23:14.670

0

Maybe try the following:

WinBtrfs

noctrex

Posted 2016-06-07T12:18:07.160

Reputation: 15

3

Please read How do I recommend software for some tips as to how you should go about recommending software. You should provide at least a link, some additional information about the software itself, and how it can be used to solve the problem in the question.

– DavidPostill – 2017-07-07T12:53:13.530