iso [NOT GAMES] mount in RDWR mode

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
phobox
Posts: 127
Joined: Mon Mar 24, 2008 6:22 pm

iso [NOT GAMES] mount in RDWR mode

Post by phobox »

hi,
i wanted to know if it possile to mount an iso file to a filesystem like "isofile:/" and set read and write permissions in order to access the contents of that iso...

i thought i can use m33 sdk in order to mount an iso/cso but then? how to set read and WRITE?
Ciao! from Italy
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

That's easy! Write your own filesystem. :P
phobox
Posts: 127
Joined: Mon Mar 24, 2008 6:22 pm

Post by phobox »

J.F. wrote:That's easy!
oh sure!

Seriously...
Can you give me an hint or something to start with? iso mounting on pc is possible is it the same on psps?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

ISOs are pretty much read-only. That's why you have to get special programs that have writing in the app to write to ISOs (in Windows, for example, ISO Master or ISO Buster). I don't expect the PSP to even have the ability to write ISO format, just read it. You're lucky the PSP has the ability to write to FAT. :)
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Even if you wrote a filesystem layer, the structure of an ISO requires it to be recreated from scratch if you add a file or something.
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

Not even a cso(compress iso) can we rewritten without rewritting the file structure. I not sure if I said that right, but the point is that you cant just make a code to write an a iso file in homebrew, its hard if you dont have the proper source file to get you started with.
Onii
Posts: 40
Joined: Sun Oct 05, 2008 1:07 pm

Post by Onii »

I doubt you'll find anything pre-built to do this. ISO 9660 was designed with read-only in mind.

But if you're serious about it and want to "roll your own" first two links in the "External Links" section of the ISO 9660 wikipedia entry (http://en.wikipedia.org/wiki/ISO_9660) are pretty informative. The first being the spec for ISO 9660: 1988 and the second is the 1999 update thereto.

As far as having the PSP see it in Read only mode as isofile: some of the more experienced PSP guys will have to comment on that. I imagine it would not be trivial.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

For read-only, I assume it will be visible as disc0: if you mount it using the m33 sdk functions.
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Post by sauron_le_noir »

More serious try to port the fuse framework to the psp
http://fuse.sourceforge.net/wiki/index.php/FuseIso

look at the source of the fuseio

http://sourceforge.net/project/showfile ... _id=569596

in fuseio.c

you can directly use
static int isofs_open(const char *path, struct fuse_file_info *UNUSED(fi)) to open your iso
static int isofs_opendir(const char *path, struct fuse_file_info *UNUSED(fi)) to
enumerate the directies present on it etc ... etc .....

it's standard C. isofs.c contains all the bits a byte stuf to read a iso
a fuseio is just the interface that use the API provided by isofs.c so
have a look a fuseio and adapt it for psp;)
Post Reply