toolboc / psx-pi-smbshare

A swiss army knife for enhancing classic game consoles with Raspberry Pi
405 stars 35 forks source link

exfat compability? #2

Closed Clydefrosch22 closed 6 years ago

Clydefrosch22 commented 6 years ago

In order to avoid having to split backups over 4gb in fat32 and prevent too many unneeded writes in ntfs, I reformated my thumbdrive to exfat, resulting in an error 303: cannot open smb share in OPL. It also can't be accessed through network.

Is exfat simply not supported, or should I try to reformat again/use a special formatter to make it work?

Drive is a sandisk ultra flair with 128gb

edit: having tried another stick, it seems to be exfat not being supported.

toolboc commented 6 years ago

Thanks for confirming that this is an exfat support problem.

Would you be able to try the suggestions mentioned in this thread?

My guess is that it might work with: apt-get install exfat-fuse exfat-utils

If it does, I'm happy to accept a PR or make the change myself if you can provide confirmation.

Thank you!

Clydefrosch22 commented 6 years ago

I will, but I'm not exactly sure how. I connected the pi to my tv and when its done loading, it shows some kind of log in promt P think. Do i just type that line once that happens?

I'll try finding a working keyboard as soon as I can.

Reading the thread, they also mention read only ntfs support, so that's probably responsible for the other issue I posted, might even be fixed with this.

toolboc commented 6 years ago

@Clydefrosch22 ,

No worries, happy to help!

You will need to ssh to the pi to run the command. To do this, you will need to obtain the ip of the device and follow the instructions in step 4 here. Steps 1-3 have already been done in the presupplied image so they are safe to skip.

The pi is configured with standard login defaults, i.e. user: pi / password: raspberry

I apologize in putting the work on you for testing this potential solution, but it's really the best way to independently verify the solution given your setup.

I agree that there is a really good chance that this might also resolve the other issue.

Let us know what happens and feel free to reach out if you need additional help!

Clydefrosch22 commented 6 years ago

ok, found a keyboard, understood that it was set to us layout and finally got the command in, but its giving me an error https://imgur.com/a/R9wMsJt

Any ideas?

toolboc commented 6 years ago

Ah, just add sudo to the command i.e. sudo apt-get install exfat-fuse exfat-utils then type the password raspberry if prompted and hit enter.

This will kick of the installation of the exfat filesystem drivers and will probably require that you approve the install with 'Y'.

You might need to reboot afterward and you should then be able to verify whether it worked.

the8thsign commented 6 years ago

I gave this a try, ExFAT USB is not mounting after installing exfat-fuse and exfat-utils

toolboc commented 6 years ago

I'm noticing alot of mixed results online about ExFAT compatibility on Raspbian.

The best advice for now is to use FAT32 if possible.

Here is a bit of explanation on what is causing the issue: The relevant code that supports USB drive auto-mounting can be found here. Currently, it makes use of pmount to mount USB drives and there is a known issue related to ExFAT support in pmount. An unofficial patch exists which will likely be required to allow ExFAT support for pmount on Raspbian. The current version of pmount provided by the Raspbian repos does not seem to include this so our options are to get a supported version added into the repos or compile support manually using modified pmount source from @stigi in the psx-pi-smbshare image. We could also try moving away from pmount, but this would very likely complicate the issue further as pmount automagically mounts the proper filesystem which is really nice if you don't know the filesystem beforehand.

That said, if anyone has any additional suggestions, it would definitely help.

I'm currently traveling and typing from my phone, but if someone wants to try this, it just might work.

sudo apt-get install exfat-utils
git clone https://github.com/stigi/pmount-exfat.git
cd pmount-exfat
./configure
make
sudo make install

Until then, please standby!

Clydefrosch22 commented 6 years ago

Unfortunately, that's not working for me. first command got some error about not finding an exfat package, then ./configure and everything past that got errors too

toolboc commented 6 years ago

@Clydefrosch22 ,

It looks like we need a few more dependencies and a bit of modification to the steps I posted in my previous reply.

I arrive home later today and should be able to try things out on my device. If anyone wants to get a head start, take a look at autogen.sh in sigi's repo.

Looks like we need to run that script and have auotmake, aclocal, and intltoolize (maybe others) installed to successfully build pmount from source.

I'll update later today with working instructions and then we can try to see if it works on your device.

toolboc commented 6 years ago

ExFat and NTFS support is now working!

To update your existing image, simply run the following:

# Update packages
sudo apt-get update

# Add NTFS Read/Write Support
sudo apt-get install -y ntfs-3g 

# Add ExFAT support
sudo apt-get install -y exfat-fuse exfat-utils autoconf intltool libtool libtool-bin libglib2.0-dev libblkid-dev
cd ~
git clone https://github.com/stigi/pmount-exfat.git
cd pmount-exfat
./autogen.sh
make
sudo make install prefix=usr
sudo sed -i 's/not_physically_logged_allow = no/not_physically_logged_allow = yes/' /etc/pmount.conf

These changes are also baked into the 1.5 release