I am working on a project, in which the ultimate goal is to successfully wipe iOS from an iPhone and install TinyCore Linux in it's place. I expected the iPhone to function like an external drive when connected to a computer running Linux (i.e. a mountable device or partition containing the phone's entire storage, including the OS), but instead, it mounts in the phone profile's media directory (/var/mobile/Media).
How can I access the iPhone storage as a device or partition (or really just have access to the / directory) so that I can put a new OS, Boot-loader, etc. onto it?