Hi,

I have converted a large ext4 filesystem to btrfs and by accident deleted an 
important users home directory. Reading btrfs doc seems to imply that the 
directory can be recovered without reverting the filesystem to ext4.

What I've read seems to be telling me to mount the subvolume ext2_saved and 
then mount the image file residing in that directory. 

I am VERY new to btrfs and am seeing some troubling output (see below).

Here's what I've done and what I'm seeing. Could someone help me with this 
please?

Best regards,

George...

fc35-bash 5.1 ~# df /export/home
/dev/sda8      1735405656 1722305136   9896620 100% /export/home
#
#
#
 fc35-bash 5.1 ~#btrfs subvolume list /export/home/
ID 256 gen 27196 top level 5 path ext2_saved
fc35-bash 5.1 ~#
fc35-bash 5.1 ~#
fc35-bash 5.1 ~# mount -t btrfs -o subvol=ext2_saved /dev/sda8 /ext2_saved
fc35-bash 5.1 ~#
fc35-bash 5.1 ~#
fc35-bash 5.1 ~# ls -al  /ext2_saved
ls -al /ext2_saved
total 1699142444
drwxr-xr-x   1 root root            10 Feb 16 06:07 .
dr-xr-xr-x. 81 root root         12288 Feb 21 12:51 ..
-r--------   1 root root 1777055391744 Feb 16 06:07 image
fc35-bash 5.1 ~#
fc35-bash 5.1 ~#
fc35-bash 5.1 ~# mount -t ext4 -o loop,ro /ext2_saved/image /ext4
mount: /ext4: can't read superblock on /dev/loop0.
fc35-bash 5.1 ~#
fc35-bash 5.1 ~#
fc35-bash 5.1 ~#
fc35-bash 5.1 ~# mount -t ext4 -o loop,ro /export/home/ext2_saved/image /ext4
mount: /ext4: can't read superblock on /dev/loop0.
fc35-bash 5.1 ~#
fc35-bash 5.1 ~#
fc35-bash 5.1 ~#
_______________________________________________
test mailing list -- test@lists.fedoraproject.org
To unsubscribe send an email to test-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to