I ran scalpel to recover files. The input disk is a copy of a failing Windows disk I made using ddrescue. The output directory (from scalpel) is on an exfat partition on my Linux disk. I used exfat because Windows can see and read that partition - and those are from Windows.
I can't change the ownership of the files. They are owned by root.
For example, in the directory
-rwxrwxrwx 1 root root 2983 Dec 29 23:14 00003483.jpg
$sudo chown me 00003483.jpg
chown: changing ownership of '00003483.jpg': Operation not permitted
$sudo chattr -i 00003483.jpg
chattr: Function not implemented while reading flags on 00003483.jpg
I can't change the ownership of the directory either.
I also tried this as
sudo su -
I can open a recovered .jpg file with eog (command line - image viewer), but I can't open the files with Kria (a linux image editor, GUI).
Why don't the websites on scalpel tell you how to change the file permissions? Is the problem an incompatibility with exfat?
Thanks for any help.
Unmounting the partition, changing the ownership of the "restored" directory to my userid, and then running
sudo mount -o rw,user,uid=1000,dmask=007,fmask=117 /dev/sdb4 /media/me/restored doesn't work. The "restored" directory is now owned by root again, and I get the exact same results trying the steps listed above.
UPDATE - adding debug information
sdb ├─sdb1 vfat xxxx-xxxx /boot/efi ├─sdb2 ext4 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ├─sdb3 swap xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx [SWAP] └─sdb4 exfat SSD-D xxxx-xxxx /media/me/rest
Regarding the accepted answer, this problem was fixed with the mount command given above under the first update, and something else - exactly what I don't know. When I did that the first time, the ownership of the files was still root. The mount command is identical, as I copied it from the Terminal to here. All the recovered files are now owned by me (not root).