Jump to content

My iPhone 7 is jailbroken and I have a terminal installed, how nice, I can also log into it via SSH, which is the main way I do these things.

IOS is based on MacOS, which is based on BSD, a branch of UNIX. Both are based on Darwin (in my case version 19.4.0), in fact IOS uses the UNIX filesystem structure, it's just buried somewhere, somewhere very deep.

So after logging in (for root and "mobile" the password is alpine) I want to know what and where are the directories, and this seems like a normal UNIX like OS, even the commands, infact it uses apt, but there are some catches.

Thanks to apt I was able to install various things like python, which is quite odd, I don't know where apt found a compatible version of python from but it did, it didn't come with pip so I had to install it.

Then I wanted to know If I was able to access some files in the... Files folder, the Pseudo filesystem that IOS is "equipped" with. To do so I decided to search for a file in the Firefox downloads folder, and I did, just had to search for it, and the path was quite odd to me, ./private/var/mobile/Containers/Data/Application/20FB4883-2ECA-40AB-B624-149443E7AC11/Documents/, now I copied a python script this folder and it was able co copy it successfully, going to that folder with the terminal and typing "ls" I get the file I just copied.

BUT wonder of all wonders when I go to that folder with the folders app, I get NOTHING, but somehow that folder has 1 element, my question is WHY ISN'T IT DISPLAYED!

Also what on earth is /Containers?

Could someone who has some knowledge on this explain what the f*ck is happening?

Main PC [The Rig of Theseus]:

CPU: i5-8600K @ 5.0 GHz | GPU: GTX 1660 | RAM: 16 GB DDR4 3000 MHz | Case: Lian Li PC-O11 Dynamic | PSU: Corsair RM 650i | SSD: Corsair MP510 480 GB |  HDD: 2x 6 TB WD Red| Motherboard: Gigabyte Z390 Aorus Pro | OS: Windows 11 Pro for Workstations

 

Secondary PC [Why did I bother]:

CPU: AMD Athlon 3000G | GPU: Vega 3 iGPU | RAM: 8 GB DDR4 3000 MHz | Case: Corsair 88R | PSU: Corsair VS 650 | SSD: WD Green M.2 SATA 120 GB | Motherboard: MSI A320M-A PRO MAX | OS: Windows 11 Pro for Workstations

 

Server [Solution in search of a problem]:

Model: HP DL360e Gen8 | CPU: 1x Xeon E5-2430L v1 | RAM: 12 GB DDR3 1066 MHz | SSD: Kingston A400 120 GB | OS: VMware ESXi 7

 

Server 2 electric boogaloo [A waste of electricity]:

Model: intel NUC NUC5CPYH | CPU: Celeron N3050 | RAM: 2GB DDR3L 1600 MHz | SSD: Kingston UV400 120 GB | OS: Debian Bullseye

 

Laptop:

Model: ThinkBook 14 Gen 2 AMD | CPU: Ryzen 7 4700U | RAM: 16 GB DDR4 3200 MHz | OS: Windows 11 Pro

 

Photography:

 

Cameras:

Full Frame digital: Sony α7

APS-C digital: Sony α100

Medium Format Film: Kodak Junior SIX-20

35mm Film:

 

Lenses:

Sony SAL-1870 18-70mm ƒ/3.5-5.6 

Sony SAL-75300 75-300mm ƒ/4.5-5.6

Meike MK-50mm ƒ/1.7

 

PSA: No, I didn't waste all that money on computers, (except the main one) my server cost $40, the intel NUC was my old PC (although then it had 8GB of ram, I gave the bigger stick of ram to a person who really needed it), my laptop is used and the second PC is really cheap.

I like tinkering with computers and have a personal hatred towards phones and everything they represent (I daily drive an iPhone 7, or a 6, depends on which one works that day)

Link to comment
https://linustechtips.com/topic/1217907-ios-filesystem-is-a-dumpsterfire/
Share on other sites

Link to post
Share on other sites

Sounds like the problem is it’s based on Unix but using modern technologies like containers you’re not familiar with.  Apple was famous for using crazy old stuff for a long time and getting into trouble because of it.  The original 68k OS was written in some crazy language designed for teaching programming rather than actually being used and it caused all kinds of problems. One would assume they learned their lesson on that one as it almost killed the company.  Hard to know though.

 

perhaps learning about containers will provide the answer.

Not a pro, not even very good.  I’m just old and have time currently.  Assuming I know a lot about computers can be a mistake.

 

Life is like a bowl of chocolates: there are all these little crinkly paper cups everywhere.

Link to post
Share on other sites

7 minutes ago, Bombastinator said:

Sounds like the problem is it’s based on Unix but using modern technologies like containers you’re not familiar with.  Apple was famous for using crazy old stuff for a long time and getting into trouble because of it.  The original 68k OS was written in some crazy language designed for teaching programming rather than actually being used and it caused all kinds of problems. One would assume they learned their lesson on that one as it almost killed the company.  Hard to know though.

 

perhaps learning about containers will provide the answer.

huh, I almost forgot about them, I have never encountered containers before, I knew they were implemented in IOS, but for some reason I didn't expect the "files" app to be in one.

It would be nice If IOS had a rispectable file manager.

Main PC [The Rig of Theseus]:

CPU: i5-8600K @ 5.0 GHz | GPU: GTX 1660 | RAM: 16 GB DDR4 3000 MHz | Case: Lian Li PC-O11 Dynamic | PSU: Corsair RM 650i | SSD: Corsair MP510 480 GB |  HDD: 2x 6 TB WD Red| Motherboard: Gigabyte Z390 Aorus Pro | OS: Windows 11 Pro for Workstations

 

Secondary PC [Why did I bother]:

CPU: AMD Athlon 3000G | GPU: Vega 3 iGPU | RAM: 8 GB DDR4 3000 MHz | Case: Corsair 88R | PSU: Corsair VS 650 | SSD: WD Green M.2 SATA 120 GB | Motherboard: MSI A320M-A PRO MAX | OS: Windows 11 Pro for Workstations

 

Server [Solution in search of a problem]:

Model: HP DL360e Gen8 | CPU: 1x Xeon E5-2430L v1 | RAM: 12 GB DDR3 1066 MHz | SSD: Kingston A400 120 GB | OS: VMware ESXi 7

 

Server 2 electric boogaloo [A waste of electricity]:

Model: intel NUC NUC5CPYH | CPU: Celeron N3050 | RAM: 2GB DDR3L 1600 MHz | SSD: Kingston UV400 120 GB | OS: Debian Bullseye

 

Laptop:

Model: ThinkBook 14 Gen 2 AMD | CPU: Ryzen 7 4700U | RAM: 16 GB DDR4 3200 MHz | OS: Windows 11 Pro

 

Photography:

 

Cameras:

Full Frame digital: Sony α7

APS-C digital: Sony α100

Medium Format Film: Kodak Junior SIX-20

35mm Film:

 

Lenses:

Sony SAL-1870 18-70mm ƒ/3.5-5.6 

Sony SAL-75300 75-300mm ƒ/4.5-5.6

Meike MK-50mm ƒ/1.7

 

PSA: No, I didn't waste all that money on computers, (except the main one) my server cost $40, the intel NUC was my old PC (although then it had 8GB of ram, I gave the bigger stick of ram to a person who really needed it), my laptop is used and the second PC is really cheap.

I like tinkering with computers and have a personal hatred towards phones and everything they represent (I daily drive an iPhone 7, or a 6, depends on which one works that day)

Link to post
Share on other sites

Containers - iOS isolates apps and their documents so that they're not accessible from any other app. 

Files - there are 2 locations where files are stored on each app, one is backed up to iCloud and the other isn't.

 

The system may be based on unix but the filesystem organization beyond the base system is custom to Apple.

 

 

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to post
Share on other sites

2 minutes ago, Kilrah said:

Containers - iOS isolates apps and their documents so that they're not accessible from any other app. 

Files - there are 2 locations where files are stored on each app, one is backed up to iCloud and the other isn't.

 

The system may be based on unix but the filesystem structures are custom to Apple.

 

 

i basically forgot about containers, I was expecting a more standardized structure, how can an app retrive information from another app in this way?

this system might be more secure but it makes many things way harder.

Main PC [The Rig of Theseus]:

CPU: i5-8600K @ 5.0 GHz | GPU: GTX 1660 | RAM: 16 GB DDR4 3000 MHz | Case: Lian Li PC-O11 Dynamic | PSU: Corsair RM 650i | SSD: Corsair MP510 480 GB |  HDD: 2x 6 TB WD Red| Motherboard: Gigabyte Z390 Aorus Pro | OS: Windows 11 Pro for Workstations

 

Secondary PC [Why did I bother]:

CPU: AMD Athlon 3000G | GPU: Vega 3 iGPU | RAM: 8 GB DDR4 3000 MHz | Case: Corsair 88R | PSU: Corsair VS 650 | SSD: WD Green M.2 SATA 120 GB | Motherboard: MSI A320M-A PRO MAX | OS: Windows 11 Pro for Workstations

 

Server [Solution in search of a problem]:

Model: HP DL360e Gen8 | CPU: 1x Xeon E5-2430L v1 | RAM: 12 GB DDR3 1066 MHz | SSD: Kingston A400 120 GB | OS: VMware ESXi 7

 

Server 2 electric boogaloo [A waste of electricity]:

Model: intel NUC NUC5CPYH | CPU: Celeron N3050 | RAM: 2GB DDR3L 1600 MHz | SSD: Kingston UV400 120 GB | OS: Debian Bullseye

 

Laptop:

Model: ThinkBook 14 Gen 2 AMD | CPU: Ryzen 7 4700U | RAM: 16 GB DDR4 3200 MHz | OS: Windows 11 Pro

 

Photography:

 

Cameras:

Full Frame digital: Sony α7

APS-C digital: Sony α100

Medium Format Film: Kodak Junior SIX-20

35mm Film:

 

Lenses:

Sony SAL-1870 18-70mm ƒ/3.5-5.6 

Sony SAL-75300 75-300mm ƒ/4.5-5.6

Meike MK-50mm ƒ/1.7

 

PSA: No, I didn't waste all that money on computers, (except the main one) my server cost $40, the intel NUC was my old PC (although then it had 8GB of ram, I gave the bigger stick of ram to a person who really needed it), my laptop is used and the second PC is really cheap.

I like tinkering with computers and have a personal hatred towards phones and everything they represent (I daily drive an iPhone 7, or a 6, depends on which one works that day)

Link to post
Share on other sites

It can't, that's the whole point. There is no way for app 1 to get anything directly from app 2. The only way is for you to go in app 2, do "share" and select app 1, at which point the system makes a copy of the file into app 1's documents folders...

Well now with recent iOS you can also save a file into "files" from app 1 and then access that from app 2.

 

And yes that's why iOS is impractical for any kind of "classic" use, you end up with tons of duplicates and versions if you want to work on something on multiple apps.

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to post
Share on other sites

Looks like there aren't 2 separate folders for iCloud backed up files and those not in iOS13 anymore, all in the same now and backup or not is an app setting. 

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×