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 ~#
Show replies by thread