ifuse icon indicating copy to clipboard operation
ifuse copied to clipboard

Deleting a photo does not delete it from the device

Open WhyNotHugo opened this issue 8 years ago • 16 comments

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.

WhyNotHugo avatar May 24 '17 05:05 WhyNotHugo

I witnessed this as well.

samrocketman avatar May 24 '17 07:05 samrocketman

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.

nikias avatar May 24 '17 07:05 nikias

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.

WhyNotHugo avatar May 24 '17 19:05 WhyNotHugo

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

clavisound avatar Jun 22 '17 20:06 clavisound

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.

WhyNotHugo avatar Jun 22 '17 20:06 WhyNotHugo

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.

clavisound avatar Jun 22 '17 20:06 clavisound

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.

WhyNotHugo avatar Jun 22 '17 20:06 WhyNotHugo

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.

samrocketman avatar Jun 30 '17 05:06 samrocketman

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

WhyNotHugo avatar Sep 03 '17 22:09 WhyNotHugo

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

abhilashkj avatar Sep 25 '19 16:09 abhilashkj

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.

krenzlin avatar May 07 '21 10:05 krenzlin

I found this section in the Arch docs that works:

  • https://wiki.archlinux.org/title/IOS#Importing_pictures_and_deleting_them
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.

balazser avatar Jul 08 '21 20:07 balazser

@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...

TheTechRobo avatar Jul 11 '21 03:07 TheTechRobo

@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

MarcoB94 avatar Aug 12 '21 07:08 MarcoB94

I found this section in the Arch docs that works:

  • https://wiki.archlinux.org/title/IOS#Importing_pictures_and_deleting_them
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.

koehlerson avatar Sep 16 '21 20:09 koehlerson