The officially official Devuan Forum!

You are not logged in.

#1 2021-12-15 12:02:45

devian
Member
Registered: 2019-11-08
Posts: 29  

Cannot mount exfat

I have the fuse module loaded and have installed "exfat-fuse exfat-utils" yet still have problems mounting an exfat USB drive.

What are my options to debug this? Thanks.

# lsmod | grep fuse
fuse                  147456  0
# mount  /dev/sdc /mnt/
mount: /mnt: unknown filesystem type 'exfat'.

Offline

#2 2021-12-15 12:18:17

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: Cannot mount exfat

maybe try this command ?

# mount -t exfat /dev/sdc /mnt/

if that doesnt work trying installing exfatprogs and use command like so.

# mount.exfat-fuse /dev/sdc /mnt

Last edited by hevidevi (2021-12-15 12:21:30)

Offline

#3 2021-12-15 18:14:21

rolfie
Member
Registered: 2017-11-25
Posts: 1,171  

Re: Cannot mount exfat

devian wrote:
# mount  /dev/sdc /mnt/
mount: /mnt: unknown filesystem type 'exfat'.

This is obvious. You can't have an exfat file system at /dev/sdc, at the most you'll find a partition table there.

Try to use:

# mount  /dev/sdc1 /mnt/

rolfie

Online

#4 2021-12-15 20:53:23

devian
Member
Registered: 2019-11-08
Posts: 29  

Re: Cannot mount exfat

rolfie wrote:
devian wrote:
# mount  /dev/sdc /mnt/
mount: /mnt: unknown filesystem type 'exfat'.

This is obvious. You can't have an exfat file system at /dev/sdc, at the most you'll find a partition table there.

Try to use:

# mount  /dev/sdc1 /mnt/

rolfie

There is no partition table on this drive.

I did a test with another USB stick:

[fdisk]
Disk /dev/sdb: 1.86 GiB, 1993342976 bytes, 3893248 sectors
Disk model: Flash Disk      
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1        2048 3893247 3891200  1.9G 83 Linux

Filesystem/RAID signature on partition 1 will be wiped.

Command (m for help): wq
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

# mkfs.exfat /dev/sdb1
mkexfatfs 1.3.0
Creating... done.
Flushing... done.
File system created successfully.

# mount /dev/sdb1 /mnt
mount: /mnt: unknown filesystem type 'exfat'.

Offline

#5 2021-12-15 20:56:13

devian
Member
Registered: 2019-11-08
Posts: 29  

Re: Cannot mount exfat

hevidevi wrote:

maybe try this command ?

# mount -t exfat /dev/sdc /mnt/

if that doesnt work trying installing exfatprogs and use command like so.

# mount.exfat-fuse /dev/sdc /mnt

Using my newly partitioned USB stick that has 1 partition:

# mount -t exfat  /dev/sdb1 /mnt
mount: /mnt: unknown filesystem type 'exfat'.
# mount.exfat-fuse /dev/sdb1 /mnt
FUSE exfat 1.3.0

Thank you - at least I can now mount exfat.

The question then becomes, why does the mount command fail but mount.exfat-fuse work?

Offline

#6 2021-12-15 21:30:07

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,251  

Re: Cannot mount exfat

Essentially it looks like you sit with software that "expects" exfat to be a built-in filesystem (as in beowulf-backports and later), and a kernel where it's not (as in beowulf and before).

The story seems to be that:

a) exfat is a built-in filesystem for 5.10 kernels but it wasn't built-in for the 4.9 kernels.

b) Before it became built-in, the mount command was supported by the program /sbin/mount.exfat provided by the exfat-fuse package. That program was abandoned when the filesystem became built-in.

Offline

#7 2021-12-15 21:31:00

rolfie
Member
Registered: 2017-11-25
Posts: 1,171  

Re: Cannot mount exfat

Not any file system on any USB stick will found on /dev/sd(X), it always will be on /dev/sd(X)1 or higher.

Use any stick with FAT32, you have to mount it with /dev/sd(X)1.

rolfie

Last edited by rolfie (2021-12-15 21:31:24)

Online

#8 2021-12-15 21:36:14

devian
Member
Registered: 2019-11-08
Posts: 29  

Re: Cannot mount exfat

rolfie wrote:

Not any file system on any USB stick will found on /dev/sd(X), it always will be on /dev/sd(X)1 or higher.

Use any stick with FAT32, you have to mount it with /dev/sd(X)1.

rolfie

I just created a filesystem on /dev/sdb with vfat and had no problems mounting it. vfat is the same as fat32 is it not?

Offline

#9 2021-12-15 22:41:03

devian
Member
Registered: 2019-11-08
Posts: 29  

Re: Cannot mount exfat

ralph.ronnquist wrote:

Essentially it looks like you sit with software that "expects" exfat to be a built-in filesystem (as in beowulf-backports and later), and a kernel where it's not (as in beowulf and before).

The story seems to be that:

a) exfat is a built-in filesystem for 5.10 kernels but it wasn't built-in for the 4.9 kernels.

b) Before it became built-in, the mount command was supported by the program /sbin/mount.exfat provided by the exfat-fuse package. That program was abandoned when the filesystem became built-in.

Damn, you're right. I checked /boot/config and my kernel has:

CONFIG_EXFAT_FS is not set

Case closed.

Thanks for all the help.

Last edited by devian (2021-12-15 22:41:14)

Offline

#10 2021-12-16 13:15:51

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: Cannot mount exfat

rolfie wrote:

Not any file system on any USB stick will found on /dev/sd(X), it always will be on /dev/sd(X)1 or higher.

Use any stick with FAT32, you have to mount it with /dev/sd(X)1.

rolfie

I dont have much knowledge on this but i can format a usb like so and it is usable and i am able to mount it read write.

# mkfs.exfat /dev/sdb

same with fat32.

I think it is just using the whole block device as filesystem only.

Last edited by hevidevi (2021-12-16 13:16:25)

Offline

Board footer