Exfat drivers installed, still can not read exfat drives?

Booting, installing, newbie
Post Reply
Message
Author
haywirepc
Posts: 133
Joined: Thu 19 Nov 2009, 15:07

Exfat drivers installed, still can not read exfat drives?

#1 Post by haywirepc »

I installed the exfat drivers. Plug a thumb drive in... All windows systems read this 64gb exfat formatted thumb drive fine...

Puppy sees it and places it on the desktop, but try and open and I get this:

Error mounting volume sdb1: Script exited with exitcode 1
Output:
Usage: /sbin/mount.exfat [-d] [-o options] [-v] <device> <dir>
FUSE exfat 1.0.1

Any one know how to fix this?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#2 Post by Semme »

Does it work with either JWM or Openbox?
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#3 Post by Flash »

I bought an exFAT drive once that Puppy didn't see. I reformatted it to NTFS and now it works fine in both Puppy and Windows.

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#4 Post by drunkjedi »

I have an exfat drive it works in Fatdog.
I only installed packages that gparted showed needed for filesystem support from gslapt package manager.
But don't know in other pups.

I don't have that drive now to test, will get it back from friend in 2-3 days.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#5 Post by musher0 »

Hello haywirepc

Very interesting problem. There's a partial solution on this Ubuntu forum.
Something like this, to actually fill in the blanks in the error message that you quoted.

Code: Select all

mkdir /mnt/usbdrive
mount -t exfat /dev/sdd1 usbdrive
I never used an exfat drive but it looks as though it's behaving very much like an ntfs
drive on Linux. You can easily mount such drives in Linux through the ntfs-3g utility.

You probably need to associate the particular usb stick in exfat format with a script and
icon, so every time you click on the icon, the script is run and the stick is mounted.

You probably could populate an fstab entry to do that with < mount -a >. That said,
mounting usb sticks through fstab can be tricky, because usb sticks are not always
plugged in.

If you tell me the name of the exfat utility that you could use, I'll research it and
can probably provide you with a script for you to test. Also I'll need the
/mnt/sdd-something name of your usb stick.

Anyone with dev capacity should have a go at it too. I'm sure we'll find a good
and simple solution if we put our heads together. Puppy needs such a utility.

BFN.

~~~~~~~~~
PS. About populating the fstab, you may want to try this.
  • -- Check that your current fstab has only four lines: otherwise the script won't work.

    -- Also mount all your drives manually or otherwise before running this script. I ask because
    __ the script will pick up ntfs drives as well as our own Linux ext? ones. Once
    __ we have an exfat detector script in place, the exfat format should appear in the
    __ fstab list (maybe with a minor change in the script).

    -- You don't need to make a back-up, the first four lines remain untouched by the script.

    -- Finally, you'll need to install replaceit before you run this script. I have a pet archive of
    __ it here.
Once your fstab is populated by this script, you'll only need to type < mount -a > in a
terminal to mount all your partitions. Very handy.

Sorry for the comments in French only in the script, but the screen messages should
appear in English on a non-French Puppy. If you need a translation of the comments,
just holler?

Code: Select all

#/bin/sh
# /root/my-applications/Systeme/Create-fstab.sh
# musher0, 14 et 21 déc. 2013; rév. le 8 mars 2014.
# Dépendance : replaceit
#### set -xe
# variables
# pour vérifier le nombre de lignes dans fstab.
a="`wc -l /etc/fstab | cut -d' ' -f1`"
# echo $a # débogage
RPLC="replaceit --input=/etc/fstab"
LIGN=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
if [ $a -lt 7 ];then 
# Si fstab compte moins de 7 lignes, c'est celui par défaut. Donc...
	echo
	echo "$LIGN"
	echo "         fstab..."
	if [ "${LANG:0:2}" = "fr" ];then
		echo "         ne contient pas la liste des partitions sur le(s) disque(s) dur(s)."
		echo "         Nous allons le faire maintenant."
		else
			echo "         is not listing the partitions on the hard drive(s)."
			echo "         We will do so now."
	fi
	echo
# Alors on le remplit avec les descriptions des partitions en place
	echo >> /etc/fstab
# DD
	cat /proc/mounts | awk '$2 ~ /sd/ { print $0 }' | sort >> /etc/fstab
	echo >> /etc/fstab
# et CD/DVD.
	cat /proc/mounts | awk '$2 ~ /sr/ { print $0 }' | sort >> /etc/fstab
	echo >> /etc/fstab
	[ "`grep fuseblk /etc/fstab`" ] && $RPLC fuseblk ntfs-3g
	$RPLC "0 0" "1 1" "+ext"
	echo 
	echo "$LIGN"
	echo "         fstab..."
	if [ "${LANG:0:2}" = "fr" ];then
		echo "         contient maintenant la liste de vos partitions."
		echo "          Opération réussie !"
		else
			echo "        now has a proper list of your partitions."
			echo "        Operation successful!"
	fi
	echo
# Sinon, on avertit l'utilisateur.
	else
		echo
		echo "$LIGN"
		echo "         fstab..."
		if [ "${LANG:0:2}" = "fr" ];then
			echo "         est déjà peuplé."
			else
				echo "         is already populated."
		fi
		echo
fi # set +xe
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#6 Post by Semme »

Prove the issue exists or doesn't by testing from a live boot.

If the problem persists, it would be OK to point the finger @ Xfce.
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#7 Post by musher0 »

Semme wrote:Prove the issue exists or doesn't by testing from a live boot.

If the problem persists, it would be OK to point the finger @ Xfce.
Hi Semme.

Who is this post directed to? Please be a little more precise?

TIA
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#8 Post by musher0 »

@haywirepc

Important detail: which Puppy are you using for this?
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#9 Post by Semme »

Musher, you mean it's not obvious I'm hassling :D:wink: our OP?
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

Jayson
Posts: 15
Joined: Wed 03 May 2017, 01:14

#10 Post by Jayson »

Code: Select all

mkdir /mnt/usbdrive
mount -t exfat /dev/sdd1 usbdrive
You probably need to associate the particular usb stick in exfat format with a script and
icon, so every time you click on the icon, the script is run and the stick is mounted.
This really helped in Tahrpup 6.0.5. I used exfat-fuse 1.whatever and dropped this in console
since the exfat drive is the 3rd device.
mkdir /mnt/usbdrive
sbin/mount.exfat /dev/sdc1 /mnt/usbdrive
Then browse to the usbdrive folder and voilà. Files everywhere.

User avatar
nocsak
Posts: 6
Joined: Tue 23 Jan 2018, 17:30
Location: Hungary

#11 Post by nocsak »

Hello!

In the past two days I've needed exfat to be mounted and read/write under my LXPup. I'm using precise puppy linux and found a way to get filesystem support for exfat. It is a long story to tell, but the solution is around two compiled package. So you need to manually compile them matching to the kernel you use. Also need to edit a c file to successfully make the kernel module. Yes exfat shulod be the part of kernel or at least need to has a kernel module as described below:

https://github.com/dorimanx/exfat-nofuse/

https://github.com/relan/exfat

The first link is for the module, you can read more about there. But at the compilation I've got "too many arguments" error message in terminal, so i edited the exfat_nls.c in line 359 to:

Code: Select all

i = utf8s_to_utf16s(p_cstring, MAX_NAME_LENGTH, UTF16_HOST_ENDIAN);
and after that I could successfully compile the module. I've made pet package from it. And check if works:

Code: Select all

modprobe exfat
check if now we have exfat filesystem in puppy:

Code: Select all

cat /proc/filesystems
at the bottom there should be the exfat.

And after I've used modprobe then in PCmanFM I could mount it by clicking on the drive name without any problem. But when I plug at the first time in the exfat drive, then I get a mount window. I just close it and after click the icon in PCmanFM to mount and to unmount without error.

Code: Select all

cat /proc/mounts
Unfortunately I have no more idea how to add more support for exfat to use it with GParted as well.

(Thanks to KuLuSz to help me about the idea of module!)

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#12 Post by jafadmin »

nocsak wrote:... Yes exfat shulod be the part of kernel or at least need to has a kernel module ...
EXFat is a proprietary FS created and patented by Microsoft. Because of this, it cannot be included with open source Linux distributions.

Downloading 3rd party drivers will have to suffice, for now.

User avatar
nocsak
Posts: 6
Joined: Tue 23 Jan 2018, 17:30
Location: Hungary

#13 Post by nocsak »

Excuse me, I thought the wrong way! That is true.

Post Reply