VitaShell icon indicating copy to clipboard operation
VitaShell copied to clipboard

USB support in 1.5 not working with Linux

Open parkerlreed opened this issue 9 years ago • 23 comments

[parker@satellite ~]$ sudo mount /dev/sdb /mnt
FUSE exfat 1.2.5
ERROR: unsupported FAT count: 2.

exfat-utils are installed.

EDIT: This is on Arch Linux

parkerlreed avatar Jan 12 '17 17:01 parkerlreed

you don't have sdb1? try to mount it if you do.

Evengard avatar Jan 12 '17 18:01 Evengard

linux system, use exfat-nofuse instead of exfat-fuse. exfat-fuse cannot mount that.

and /dev/sdb is right :)

d3m3vilurr avatar Jan 12 '17 18:01 d3m3vilurr

@Evengard Yeah that's called a superblock. The whole device gets mapped as the "partition"

@d3m3vilurr Thanks for the suggestion, will try that out.

parkerlreed avatar Jan 12 '17 18:01 parkerlreed

@d3m3vilurr Thanks! Installing https://aur.archlinux.org/packages/exfat-dkms-git/ and removing exfat-utils solves it. (Same mount /dev/sdb command)

parkerlreed avatar Jan 12 '17 18:01 parkerlreed

doesn't work on linux mint andre104623@andre104623-SVE14A27CXH ~ $ sudo mount /dev/sdb /mnt [sudo] password for andre104623: FUSE exfat 1.2.3 ERROR: unsupported FAT count: 2. I'm still very new to linux if someone could just tell me the right line to type into terminal I'll be good I think....

ghost avatar Jan 13 '17 07:01 ghost

Thanks worked for me :+1: Andre you should look into installing exfat-dkms on your distro

fennectech avatar Jan 13 '17 07:01 fennectech

if you use ubuntu, can use eugenesan's ppa this ppa only support until xenial, but compatible with yakkety.

install exfat-nofuse then build and install on /usr/src/exfat* or compile manually; follow this steps

d3m3vilurr avatar Jan 13 '17 08:01 d3m3vilurr

for Ubuntu 16.04.1 LTS:

git clone https://github.com/rxrz/exfat-nofuse.git cd exfat-nofuse make && make install

mount /dev/sd*** /mnt/***

PHD59fr avatar Jan 13 '17 17:01 PHD59fr

@PHD59fr 's solution worked, awesome!

eugeneromero avatar Jan 19 '17 21:01 eugeneromero

we can also recreate the filesystem with a fresh exfat filesystem that linux will happily mount and the vita will be none the wiser and happily repopulate the directories

fennectech avatar Jan 20 '17 02:01 fennectech

i would not recomend using fat32 because of the 4gb file size limit There may be games with files larger than 4gb

fennectech avatar Jan 20 '17 03:01 fennectech

@fennectech Does that actually work?

parkerlreed avatar Jan 20 '17 23:01 parkerlreed

Yes it is the technique i used execute mkfs.exfat on the drive and linux will prepair a filesystem it supports properly then you can just copy your stuff back (dont let the vita know anything has changed) dont unplug or youll loose all your saves and the vita wont take em also execute "sync' from the command line and wait a few minutes ive had lotsa problems with incomplete writes

fennectech avatar Jan 21 '17 04:01 fennectech

as i understand The filesystem the vita creates has an unsupported feature enabled that linux poopoos about creating the filesystem with linux will have all features linux supports

fennectech avatar Jan 21 '17 04:01 fennectech

I can confirm that @fennectech's approach works. I can now select "Memory Card" from inside VitaShell and mount it on all my Linux (Arch) machines without special configuration (as long as they have the default exfat driver installed), just like I always could when mounting my SD card via "SD2Vita" USB mode.

Definitely important to sync before disconnecting! I like to monitor the real status of the copy using something like watch grep -e Dirty /proc/meminfo.

aphirst avatar Aug 10 '18 19:08 aphirst

@fennectech

Yes it is the technique i used execute mkfs.exfat on the drive and linux will prepair a filesystem it supports properly then you can just copy your stuff back (dont let the vita know anything has changed) dont unplug or youll loose all your saves and the vita wont take em also execute "sync' from the command line and wait a few minutes ive had lotsa problems with incomplete writes

How do you copy the stuff back if you cannot mount the fs in the first place?

robsdedude avatar Jan 14 '19 13:01 robsdedude

@robsdedude

  1. First you copy stuff off the vita memory card by mounting via FTP.
  2. Then you connect via USB, set VitaShell to USB, then ignore the Linux-side errors about failing to mount.
  3. Notice, however, that the block device is still visible to Linux just fine, so (once you're very sure you backed up the vita memory card correctly) use mkfs.exfat to format the block device into a new exfat partition that Linux will (of course) be able to access without problem.
  4. Copy the backed-up files and folders onto your new exfat partition.

Ideally, don't disconnect the Vita from USB between formatting and finishing restoring the backed-up data.

aphirst avatar Jan 14 '19 15:01 aphirst

I'm able to mount with https://aur.archlinux.org/packages/exfat-dkms-git/ but everytime I try to copy something to the system everything is copied with 1 second and all files I copied go to the vita corrupted. Any way to fix it?

evertonstz avatar Nov 07 '19 01:11 evertonstz

I'm able to mount with https://aur.archlinux.org/packages/exfat-dkms-git/ but everytime I try to copy something to the system everything is copied with 1 second and all files I copied go to the vita corrupted. Any way to fix it?

I have the exact same problem. Any solutions?

Niketin avatar Jan 15 '21 16:01 Niketin

For anyone still with this problem, don't bother with the exfat-dkms/exfat-nofuse kmod, it's outdated. If fuse-exfat is trying to handle the partition simply uninstall exfat-utils and fuse-exfat (pm/distro dependent) and let the kernel mount it, it's been builtin since. Tested on kernel version 5.10.8_1

unresolvedsymbol avatar Jan 25 '21 19:01 unresolvedsymbol