Access from windows to my Tumbleweed partitions

Hi everyone,

I have the following situation.
openSUSE-Tumbleweed dual boot with windows 11.
I would like to access my video files stored in Tumbleweed for editing in Premiere in windows.
I have tried to use WinBTRFS, but the home-directory is empty.
Then I tried to use WSL2 on Windows with openSUSE-leap.
This system will auto-mount the Linux partitions.
But here I face the same situation, my home directory is empty.
When I try with “ls -a” I see some hidden files, but my directories are not there.
I believe Tumbleweed is using sub-volumes.
Is it possible that this is the problem?
Your help is really appreciated.

Janjans

What exactly do you call “home directory”? Copy-paste the complete commands you use to mount this partition and list its content.

Yes. Looking in /etc/fstab could be educational.

May be. You did not explain what you did so it is difficult to guess. If you expect /home to have the same content you see in Tumbleweed - you need to mount the subvolume where this content is actually located. As mentioned, look into /etc/fstab. I have no idea how it is done with WinBTRFS. In WSL you should be able to use standard Linux command

mount -t btrfs -o subvol=@/home /dev/your-partition /any/mount/point/you/need

Check /etc/fstab for the exact subvolume name (should be @/home by default).

Hi arvidjaar,
Thanks for you reaction.
With my home directory I mean: /home/username/ on my Tumbleweed partition.
In WSL2 the Linux partitions are auto mounted in /mnt/wslg.
This is happening, however the folder /mnt/wslg/distro/home/username/ is empty.
I will check my Tumbleweed /etc/stab file to see how tumbleweed is mounting that sub-volume, try to replicate it to wsl2-leap.
Thanks for the tip.

I will keep you informed.

Hi Arvidjaar,
Here a short update.
I could not find /etc/fstab on my Tumbleweed install.
I seems Tumbleweed is using systemd for mounting.
I found a file called “home.mount”.
There I have found the following:

[Mount]
What=/dev/disk/by-uuid/d72eb3f1-a743-4476-a4ee-ac6fbac11e55
Where=/home
Type=btrfs
Options=subvol=/@/home

In wsl2-leap I tried to mount with:
sudo mount -t btrfs -o subvol=/@/home /dev/disk/by-uuid/d72eb3f1-a743-4476-a4ee-ac6fbac11e55 /mnt/test
Now I have the following error:
mount: /mnt/test: special device /dev/disk/by-uuid/d72eb3f1-a743-4476-a4ee-ac6fbac11e55 does not exist.

What I’m doing wrong here?
Thanks

I have no idea what devices are present in WSL. Use any other device name for your partition if this particular one is not present. You said it has been mounted automatically. What stops you from looking up the device name used when mounting it?

Now I tried the following:
sudo mount -o subvol=/@/home /dev/sdc /mnt/test
( so without -t btrfs)
No error messages.
However, when I go into /mnt/test/home/username, I see a folder named bin only.
Bin is empty and not available on the real partition. The rest of the folders are not there.
I’m out of ideas.
Anyone?

Are you sure it is the correct disk? Show

findmnt --real

findmnt --real
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sdc ext4 rw,relatime,discard,errors=remount-ro,data=ordered
├─/usr/lib/wsl/drivers none 9p ro,nosuid,nodev,noatime,dirsync,aname=drivers;fmask=222;dmask=222,mmap,access=cli
├─/mnt/wslg/distro /dev/sdc ext4 rw,relatime,discard,errors=remount-ro,data=ordered
├─/mnt/c C:\ 9p rw,noatime,dirsync,aname=drvfs;path=C:;uid=1000;gid=100;symlinkroot=/mnt/,mmap,a
└─/mnt/d D:\ 9p rw,noatime,dirsync,aname=drvfs;path=D:;uid=1000;gid=100;symlinkroot=/mnt/,mmap,a

What I noted is files system printed with sdc, “ext4”.
This should be btrfs, not ext4
I umount the /mnt/wslg/distro mount and mout it again with:

sudo mount -t btrfs -o subvol=/@/home /dev/sdc /mnt/wslg/distro

This gives an error:

mount: /mnt/wslg/distro: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.

Mounting works with:

sudo mount -o subvol=/@/home /dev/sdc /mnt/wslg/distro

But there is the ext4 again.
Still no folders

b.t.w. mount point /mnt/wslg/distro is the automount point in wsl2.

Show

lsblk -f

lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
sdb [SWAP]
sdc 954.8G 0% /mnt/wslg/distro
/
sdd

Show as root

blkid

blkid
/dev/sdd: UUID=“d4fa0b10-c3d1-4101-8d78-6a9e54b40d87” BLOCK_SIZE=“4096” TYPE=“ext4”
/dev/sdb: UUID=“afc35b8d-d094-42a3-9f61-ff620d561deb” TYPE=“swap”
/dev/sdc: UUID=“6543e373-fb35-4d21-9649-9ed7e6ee36ce” BLOCK_SIZE=“4096” TYPE=“ext4”
/dev/sda: BLOCK_SIZE=“4096” TYPE=“ext4”

As Root:

sudo blkid
[sudo] password for root:
/dev/sdd: UUID=“d4fa0b10-c3d1-4101-8d78-6a9e54b40d87” BLOCK_SIZE=“4096” TYPE=“ext4”
/dev/sdb: UUID=“afc35b8d-d094-42a3-9f61-ff620d561deb” TYPE=“swap”
/dev/sdc: UUID=“6543e373-fb35-4d21-9649-9ed7e6ee36ce” BLOCK_SIZE=“4096” TYPE=“ext4”
/dev/sda: BLOCK_SIZE=“4096” TYPE=“ext4”

There is no device with UUID d72eb3f1-a743-4476-a4ee-ac6fbac11e55 nor any device that contained btrfs filesystem.

Very strange.
Tumbleweed is installed.
Looks like wsl is not recognizing the partitions…

I will investigate further.

Thanks for your help.

No it’s all fake, damn ms-wsl2-vm :laughing:
Dualboot is a pain in the ass, do you and your video collection a favour and if both Oss have to work on set up a third disk with the least meta-data capable fs.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.