PSX-SCENE Forum Discussion for Sony PlayStation/PsOne/PS2/PS3/PSP/PS VITA
  • PlayStation File System Libraries Released - Add NTFS Support to your Homebrew

    After months of false rumors and other speculation, NTFS support has finally arrived on the PS3. An anonymous developer over at PS3-Hacks, has released a file system library which allows other developers to add NTFS support to their homebrew programs. This might mean we'll see Rogero, multiMAN, or one of the other managers with NTFS support soon.

    Attachment 909


    Download: pfsm-0.1.0.rar (1.39 MB)


    I’m out of town leaving me PS3-less, so I’m unable to test this… This being a library, PlayStation File System Libraries — libpfsm, that you can use when building your homebrew projects, i.e.) Gaia Manager. And the Gaia Manager source is included and comes pre-modified as an example adding NTFS (libpfsm) support. You just need to build it now and I’m sure someone’ll do that real soon.

    What does PlayStation File System Libraries feature?

    * Support for multiple simultaneously connected devices.
    * Hot swapping of devices.
    * Support for multiple partitions (with different FS).
    * NTFS support
    o Alternate data streams
    o Sparse files
    o File compression
    o B+ trees directory
    * FAT support
    o FAT12, FAT16, FAT32
    o Long file names (VFAT)

    Writing to NTFS formatted volumes is not supported and not planned.

    Check the README for everything else.

    Readme:

    ================================================== ==============================
    Playstation File System libraries README
    ================================================== ==============================

    == Introduction ==

    Playstation File System is a set of libraries designed primarily to support new
    filesystems. The main aim was to provide support for reading NTFS from Sony PS3
    GameOS. At this moment writing is not supported and is not currently planned.

    Supported features:
    * Support for multiple simultaneously connected devices.
    * Hot swapping of devices.
    * Support for multiple partitions (with different FS).
    * NTFS support
    - Alternate data streams
    - Sparse files
    - File compression
    - B+ trees directory
    * FAT support
    - FAT12, FAT16, FAT32
    - Long file names (VFAT)

    Limitations:
    * Userland Mass Storage device driver is tested on a small set of devices.
    * Concurrent access to files on one disc is not supported.
    * It supports only the ASCII subset of Unicode (UTF-16).
    * Read only access.

    Libraries:
    * libpmsd.a (Playstation Mass Storage Driver)
    - A simple userland driver for reading sectors from USB Mass Storage.
    * libpfs.a (Playstation File System)
    - File system drivers NTFS and FAT.
    * libpfsm.a (Playstation File System Manager)
    - Exported functions are in 'libpfsm.h'.
    - Responsible for hot swapping, managing partitions and mounting the FS.

    == Building ==

    If you want to use these libraries in your project, you must add to the
    Makefile the following lines:

    PPU_LIBS += libpmsd.a libpfs.a libpfsm.a
    PPU_LDLIBS += -lusbd_stub

    A source code must include the header file with FS Manager interface:

    #include "libpfsm.h"

    == Usage ==

    int32_t PfsmInit(int32_t max_volumes);
    void PfsmUninit(void);

    The FS Manager must first be initialized with 'PfsmInit'. Maximum possible
    connected devices/volumes is set by `max_volumes`. It is suitable to call the
    'PfsmUninit' before you quit.

    int32_t PfsmDevAdd(uint16_t vid, uint16_t pid, PFSM_DEVICE *dev);
    int32_t PfsmDevDel(PFSM_DEVICE *dev);

    All supported devices must be registered with the function 'PfsmDevAdd'. The USB
    device is identified by Vendor ID (`vid`) a ProductID (`pid`). If the devices is
    no longer needed it can be unregistered with 'PfsmDevDel'.

    int32_t PfsmVolStat(int32_t vol_id);

    The application can monitor the newly added/removed devices using 'PfsmVolStat'.
    The parameter `vol_id` must be between 0 and `max_volumes`-1.

    PFS_HFILE PfsFileOpen(const char *path);
    PFS_HFIND PfsFileFindFirst(const char *path, PFS_FIND_DATA *find_data);
    ...

    Standard functions for access to the files is similar to the Win32 API. The file
    `path` is in the form of '/pvd_usbXXX/DIR/FILE' where XXX represents `vol_id`.

    == Sample: GaiaManager ==

    For reference implementations was used open source GaiaManager. This solution
    extends GaiaManager to connect one device with NTFS or FAT file system. When the
    connection is successful, this device is shown as a 'usb10'. Backups in 'BDRIPS'
    directory can then be copied in a standard way to internal disk.

    Attached sample file 'usbdevs.cfg' with tested devices must be placed in a folder
    on the PS3, where is installed GaiaManager ('/dev_hdd0/game/GAIA01985').

    If you want to use your own USB disk, you must add another line to 'usbdevs.cfg'.
    File 'usbdevs.cfg' lists the device's IDs separated by a newline in the following
    format:

    VID:PID
    VID:PID
    ...

    VID and PID are hexadecimal numbers that identify the USB device. Linux users can
    obtain this identification number using lsusb utility. Transcend StoreJet disk is
    displayed as:

    lsusb:
    Bus 002 Device 011: ID 152d:2329 JMicron Technology Corp. / JMicron USA Tech...

    Windows users can use one of these utilities:
    - http://www.ftdichip.com/Support/Utilities/usbview.zip
    - http://www.nirsoft.net/utils/usbdeview.zip
    - http://www.nirsoft.net/utils/usbdeview-x64.zip

    USBDeview:
    ...
    Description | StoreJet Transcend
    Device Type | Mass Storage
    ...
    VendorID | 152d (VID)
    ProductID | 2329 (PID)
    ...


    Compiling for CFW/MFW without dongle (not tested):

    make clean
    make

    Compiling for older OFW with a dongle (tested only 3.41):

    make -f Makefile.dongle clean
    make -f Makefile.dongle

    Precompiled package for FW 3.41 (with PSGroove) is included:
    UP0001-GAIA01985_00-7679866932773369.pkg

    == Compatible devices ==

    USB Mass Storage driver has been tested with the following devices:

    - 0x090c:0x1000
    Corsair Flash Voyager (2GB)
    - 0x0951:0x1602
    Kingston DataTravelerMini (1GB)
    - 0x13fe:0x1d00
    Kingston DataTraveler 2.0 1GB/4GB Flash Drive (1GB)
    - 0x152d:0x2329
    JMicron StoreJet Transcend (320GB)
    http://ec.transcendusa.com/product/I...ID=TS320GSJ25M

    == TODO ==

    Support for a wider range of USB Mass Storage devices.

    Support for other file systems. (e.g. Ext2/3)

    Support for concurrent access to files.

    Proper Unicode (UTF-16) support.
    Source: PS3-Hacks
    Comments 52 Comments
    1. aihooo4444's Avatar
      aihooo4444 -
      i am finally first and this is awesome
    1. MoNkEyShLuT's Avatar
      MoNkEyShLuT -
      Why do people always write "First"? It's retarded.

      You don't win a prize you just look like a tool.
    1. siscan's Avatar
      siscan -
      ill give it a day for deanr to add this in.
    1. FernandoLuis's Avatar
      FernandoLuis -
      I suggest that you guys at psgroove ,that whenever a new article is posted you guys should post "First".I hate when people go like "First,yes,finally,this is great!" as if they were getting prize or something.
    1. mytsoutsou-PSG's Avatar
      mytsoutsou-PSG -
      Now we need matroska playback and PS3 will be the most awesome device in the face of the earth
    1. Rage-PSG's Avatar
      Rage-PSG -
      Quote Originally Posted by FernandoLuis View Post
      I suggest that you guys at psgroove ,that whenever a new article is posted you guys should post "First".I hate when people go like "First,yes,finally,this is great!" as if they were getting prize or something.
      Its because their ego gets a ****ing orgasm.
    1. bob19201's Avatar
      bob19201 -
      Yeah this awesome! Hopefully they can incorporate it into the ps3 itself so that it can work under the xmb? That way we can watch our blu-ray backups unhindered by the fat32 limitations[Iron Man 2 is split into like 4 files xD]. Either way, this is a good step forward and yeah, a mkv or general media player really, would be awesome.
    1. aihooo4444's Avatar
      aihooo4444 -
      Quote Originally Posted by FernandoLuis View Post
      I suggest that you guys at psgroove ,that whenever a new article is posted you guys should post "First".I hate when people go like "First,yes,finally,this is great!" as if they were getting prize or something.
      the this is awesome part was about the lib ntfs file not the first and i just said first b/c know one eles did and they all ways do it was just funny to me
    1. still1's Avatar
      still1 -
      "Support for multiple partitions (with different FS)"

      i was looking for this since i have a a HDD and i want to partition as FAT32 for PS3 and other as NTFS for all the other data(more than 4 gb files)
      cool... hopefully i see this in all the file managers
    1. Kaboda's Avatar
      Kaboda -
      FTPing to my PS3 takes ages. I'll probably end up storing all my stuff to an external hard disk once this comes out.

      Keep up the good work!
    1. Groovey's Avatar
      Groovey -
      Very nice! Now how about that vlc like media player?
    1. Thorn's Avatar
      Thorn -
      i cant wait till i get ntfs support then i dont need to figure out how to format a whole ExHDD into Fat32
    1. ch13696's Avatar
      ch13696 -
      Wow, this is pretty nice. My external HDD is currently on FAT32. So once this is out, is there a way to turn it into NTFS without formatting the whole thing? I don't want to lose my backups.
    1. gamer2020's Avatar
      gamer2020 -
      Quote Originally Posted by MoNkEyShLuT View Post
      Why do people always write "First"? It's retarded.

      You don't win a prize you just look like a tool.
      its better than turkish getting first post!
    1. x3angel-PSG's Avatar
      x3angel-PSG -
    1. RazorX's Avatar
      RazorX -
      this is a great step forward especially with whats going on, i thought things would cool down for a while since sony is on a rampage lol
    1. blazie151's Avatar
      blazie151 -
      "Writing to NTFS formatted volumes is not supported and not planned"

      That sucks... So if your a pirate and you download games from the net, and never back up your own games (or have a blu ray on your pc and back up from there), this helps you. If you only back up your own games, then you still need to either ftp em to your computer to place them on the external hard drive, or have a second one in fat32 format for transfering to your computer.

      I was really hoping for direct backup to ntfs external support; but hey, one step at a time I guess.
    1. gamer2020's Avatar
      gamer2020 -
      so does this mean we would be able to run backups with larger than 4gig files off the external hdd?
    1. vSaAmTp-PSG's Avatar
      vSaAmTp-PSG -
      Great... And next? Driver for the 360 Controller...
    1. Nephariouz's Avatar
      Nephariouz -
      Quote Originally Posted by vSaAmTp View Post
      Great... And next? Driver for the 360 Controller...
      I wish. Unfortunately the 360 controller uses RF and the PS3 uses Bluetooth, so I think its safe to say its never going to happen!
  • Daily Digest


    Want to receive the latest PSX info in your email?

    Sign up for our Daily Digest!



    Want to learn more about the team keeping you up to date with the latest scene news?

    Read about them now!

    Check out our Developer bios, too!

  • Recent Threads

    qwillis

    4.45 OFW

    Thread Starter: qwillis

    Just a heads up to anyone who see this, 4.45 OFW was just released and there are a bunch of reports of consoles getting bricked.
    So even if you're

    Last Post By: tthousand Today, 12:19 AM Go to last post
    archicharmer

    Game Save Console ID dependence

    Thread Starter: archicharmer

    Next i want to try is Game Save Console ID in whatever dependence. Here i am guessing to a long-numbered Console ID.

    I need that someone

    Last Post By: archicharmer Yesterday, 10:27 PM Go to last post
    Munkee915

    Missing HDD space

    Thread Starter: Munkee915

    I have a PS3 slim w/ a 640gb HDD installed and Rogero 4.41 cfw. I have recently started hitting the limit on HDD space. The XMB shows I have 65gb/596gb

    Last Post By: BahumatLord Yesterday, 10:23 PM Go to last post
    Blyze

    Best uLaunch Version to Use

    Thread Starter: Blyze

    Just wondering which version of uLaunch should I use to install Free McBoot? I've already used the version in the Noobie Package, but all I get is a black

    Last Post By: Blyze Yesterday, 02:30 PM Go to last post
    ConorrChapple

    Anyone wanna play The Last Of Us online?

    Thread Starter: ConorrChapple

    If so add: ConorChapplee

    Last Post By: ConorrChapple Yesterday, 01:33 PM Go to last post
    ShaolinAssassin

    Devil May Cry Pal in NTSC mode

    Thread Starter: ShaolinAssassin

    Hi guys,

    I come here to request a lil help, cause Im really out of ideas. Im trying to play my PAL copy of Devil May Cry with

    Last Post By: Staylecrate Today, 12:11 AM Go to last post
  • Recent Comments

    amp2006

    Rogero CEX-4.41 v1.00 Released

    here is all you need to know about Cinavia Patch .
    Cinavia: What Is It And Why You Should Care Go to last post

    amp2006 Today 01:20 AM
    opium2k

    Cobra ODE Hardware To Be Released Soon

    To the people responding to my comment about how ugly it is:
    1. Nowhere did I state that... Go to last post

    opium2k Today 01:13 AM
    john0100

    Rogero CEX-4.41 v1.00 Released

    Where is the CINAVIA PATCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Go to last post

    john0100 Today 12:25 AM
    mushbert

    PSIO Team Update To Project PlayStation Input Output - A PS1 SD Card Hack

    Really hoping the PSIO guys can make a good product... My drive is still working OK, but if they... Go to last post

    mushbert Yesterday 11:36 PM
    InTheSevens

    Rogero CEX-4.41 v1.00 Released

    Just in time for the release of 4.45. Go to last post

    InTheSevens Yesterday 11:34 PM
    FarSide

    PlayStation 4 vs Xbox One (E3) - Who won? You decide

    I find the DRM comments the most interesting. If Sony is leaving DRM up to the publisher will this... Go to last post

    FarSide Yesterday 09:47 PM
    maruka

    PS2 Classics Manager v1.02 by CaptainCPS-X

    Installed it all correctly. Ran Jurassic Park Operation Genesis, 1st game I ran, it played fine... Go to last post

    maruka Yesterday 08:28 PM
    tthousand

    Cobra ODE Hardware To Be Released Soon

    Thanks for the lesson an0nym0us . It opened my eyes to some things I did not see before. I... Go to last post

    tthousand Yesterday 08:12 PM
    racer0018

    Cobra ODE Hardware To Be Released Soon

    They were suppose to send me to test but I have not gotten anything and I have not heard back from... Go to last post

    racer0018 Yesterday 05:27 PM
    Gradius

    Cobra ODE Hardware To Be Released Soon

    Price: US$ 120 Go to last post

    Gradius Yesterday 04:50 PM