Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a photo does not delete it from the device #38

Open
WhyNotHugo opened this issue May 24, 2017 · 16 comments
Open

Deleting a photo does not delete it from the device #38

WhyNotHugo opened this issue May 24, 2017 · 16 comments

Comments

@WhyNotHugo
Copy link

Deleting a photo inside the mountpoint won't remove if from the device. The photo will stop appearing on the mountpoint (and there's no indication of failure), but it's simply "still there" on the device.

I'm using and iPhone 6, with ifuse 1.1.3.

@samrocketman
Copy link

I witnessed this as well.

@nikias
Copy link
Member

nikias commented May 24, 2017

Please mind that the device has a photo library that keeps thumbnails and other metadata, so deleting a photo requires the database to be updated aswell. IIRC the database is in the PhotoData directory in /var/mobile/Media.

@WhyNotHugo
Copy link
Author

Is /var/mobile/Media a directory that requires jail-braking to access? FWIW, I could also open the photo from the app on the iPhone, so it's not merely the thumbnail that was left over.

@clavisound
Copy link

Toy understanding, this is unsupported. Dont delete from ifuse, only from iOS.

@WhyNotHugo
Copy link
Author

Deleting from iOS kinda defeats the purpose of using ifuse. It's also a pain if I copy 500+ photos to find exactly which ones they are on the iPhone, and manually delete all those.

@clavisound
Copy link

I don't understand. Why you copy / keep files that you don't want.

Yes, it's a limitation that you have to delete only from iOS but it works with third party programs like vlc e.t.c.

Without ifuse I don't have selective backup, so it's great program.

@WhyNotHugo
Copy link
Author

I don't understand. Why you copy / keep files that you don't want.

Huh? That question doesn't make much sense. I copy files because I want to keep them. I delete them from the phone because I've already copied them elsewhere. Actually, what I want is to move them.

@samrocketman
Copy link

Huh? That question doesn't make much sense. I copy files because I want to keep them. I delete them from the phone because I've already copied them elsewhere. Actually, what I want is to move them.

To elaborate, my phone does not have unlimited space. So it makes sense to back my photos and videos to larger storage off of the phone and then delete them from the phone so more pictures and videos can be taken.

@WhyNotHugo
Copy link
Author

@samrocketman Yup, that's pretty much what I said. 🙂

@abhilashkj
Copy link

can someone help me ini how to copy files from system to device using ifuse command options

@krenzlin
Copy link

krenzlin commented May 7, 2021

Hoping that there are any new ideas on this. Moving picture and videos from the iPhone is pretty much the only use case for me.

@balazser
Copy link

balazser commented Jul 8, 2021

I found this section in the Arch docs that works:

Importing pictures and deleting them

You can move photos and videos out of <mountpoint>/DCIM/100APPLE, however you need to trigger a rebuild of the "Camera Roll" database by deleting the old databases.

# cd <mountpoint>/PhotoData
# rm Photos* com.apple.photos.caches_metadata.plist

The only thing you may need to detach iCloud for a while to get rid of /PhotoData/CPL/storage/filecache as it can be huge.

@TheTechRobo
Copy link

@balazser Uhhh... sure that's safe? I've always had bad luck with computers, and deleting a bunch of stuff doesn't seem too safe to me...

@MarcoB94
Copy link

@TheTechRobo, I tried what @balazser recommended on a testphone. My Photos App crashed and didn't want to reopen. After a reboot it was back to normal. In my case, i didn't delete a photo but moved one to the Photos and it worked

@koehlerson
Copy link

koehlerson commented Sep 16, 2021

I found this section in the Arch docs that works:

Importing pictures and deleting them

You can move photos and videos out of <mountpoint>/DCIM/100APPLE, however you need to trigger a rebuild of the "Camera Roll" database by deleting the old databases.

# cd <mountpoint>/PhotoData
# rm Photos* com.apple.photos.caches_metadata.plist

The only thing you may need to detach iCloud for a while to get rid of /PhotoData/CPL/storage/filecache as it can be huge.

I can confirm that this works. Just deleted a bunch of photos and copied some from my computer to my iPhone. Even after rebooting the camera roll still crashed. Glitched myself in the camera roll back by directly accessing the search function (holding the camera roll app button and click on „search“ dropdown menu option). Seems like the metadata database is rebuilding now. So, use carefully.

@ediazrod
Copy link

I like to said that this work for me..

Disable icloud...
Importing pictures and deleting them

cd /PhotoData

rm Photos*

This file don't exist com.apple.photos.caches_metadata.plist

Dismount
Reboot the phone..
go to camera, empty click to search.. and start indexing again the photos..

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests