Ahoj,
since a few months,
pmount (https://aur.archlinux.org/packages/pmount) is not able to mount
vfat formatted USB drives anymore.
When I run for example
pmount sdb1 (which always used to work and did mount
/dev/sdb1 to
/mnt/sdb1, thereby autoprobing the filesystem), it now fails with
mount: /media/sdb1: unknown filesystem type 'ntfs'.
dmesg(1) may have more information after failed mount system call.
mount: /media/sdb1: unknown filesystem type 'ntfs'.
dmesg(1) may have more information after failed mount system call.
dmesg shows for this mounting try:
[75896.910864] UDF-fs: warning (device sdb1): udf_load_vrs: No VRS found
[75896.910872] UDF-fs: Scanning with blocksize 512 failed
[75896.911321] UDF-fs: warning (device sdb1): udf_load_vrs: No VRS found
[75896.911324] UDF-fs: Scanning with blocksize 1024 failed
[75896.911762] UDF-fs: warning (device sdb1): udf_load_vrs: No VRS found
[75896.911765] UDF-fs: Scanning with blocksize 2048 failed
[75896.912248] UDF-fs: warning (device sdb1): udf_load_vrs: No VRS found
[75896.912251] UDF-fs: Scanning with blocksize 4096 failed
[75896.915486] UDF-fs: warning (device sdb1): udf_load_vrs: No VRS found
[75896.915492] UDF-fs: Scanning with blocksize 512 failed
[75896.915937] UDF-fs: warning (device sdb1): udf_load_vrs: No VRS found
[75896.915940] UDF-fs: Scanning with blocksize 1024 failed
[75896.916361] UDF-fs: warning (device sdb1): udf_load_vrs: No VRS found
[75896.916364] UDF-fs: Scanning with blocksize 2048 failed
[75896.916803] UDF-fs: warning (device sdb1): udf_load_vrs: No VRS found
[75896.916806] UDF-fs: Scanning with blocksize 4096 failed
[75896.956757] ISOFS: Unable to identify CD-ROM format.
[75896.997030] ISOFS: Unable to identify CD-ROM format.
[75897.017864] hfsplus: unable to find HFS+ superblock
[75897.021196] hfsplus: unable to find HFS+ superblock
[75897.024606] hfs: can't find a HFS filesystem on dev sdb1
[75897.028430] hfs: can't find a HFS filesystem on dev sdb1
[75897.031667] EXT4-fs (sdb1): VFS: Can't find ext4 filesystem
[75897.035038] EXT4-fs (sdb1): VFS: Can't find ext4 filesystem
[75897.037927] EXT4-fs (sdb1): VFS: Can't find ext4 filesystem
[75897.040719] EXT4-fs (sdb1): VFS: Can't find ext4 filesystem
[75897.043572] EXT4-fs (sdb1): VFS: Can't find ext4 filesystem
[75897.046892] EXT4-fs (sdb1): VFS: Can't find ext4 filesystem
[75897.050701] REISERFS warning (device sdb1): sh-2021 reiserfs_fill_super: can not find reiserfs on sdb1
[75897.053810] REISERFS warning (device sdb1): sh-2021 reiserfs_fill_super: can not find reiserfs on sdb1
[75897.071371] XFS (sdb1): Invalid superblock magic number
[75897.075036] XFS (sdb1): Invalid superblock magic number
[75897.084523] omfs: Invalid superblock (0)
[75897.087347] omfs: Invalid superblock (0)
It tries to probe some filesystems which are not present on
/dev/sdb1.
If I explicitly say
pmount -t vfat sdb1, it fails with
mount: /media/sdb1: not mount point or bad option.
dmesg(1) may have more information after failed mount system call.
dmesg is not showing anything in this case.
Has anyone an idea what has changed such that
pmount is not working anymore?
I know
pmount has not received updates for some time, but I found it the most convenient way to mount stuff as mormal user. I know that there is also
udevil mount/
udevil umount, but they are a bit more complicated for me to use (the mount directory is named after the filesystem's label, not after the device name, which is usually more to type).
There is also some discussion about it in the AUR (https://aur.archlinux.org/packages/pmount#comment-917383).
Regards!
OK, I have now made a wrapper around `udevil` that is even a bit more quick to use than `pmount`/ `pumount`:
/usr/local/bin/udm:
#!/bin/bash
if [ $# -lt 1 ]; then
{
printf '%s\n' "$0: Error: Too few arguments."
printf '%s\n' "Usage:"
printf '%s\n' " $0 <device> [<additional 'uedvil mount' options>]"
printf '\n'
printf '%s\n' "Where '<device>' is the device name under '/dev/', e.g. 'sdc1' for '/dev/sdc1',"
printf '%s\n' "and '<additional 'uedvil mount' options>' can contain mount options; see 'udevil help'."
} > /dev/stderr
exit 1
else
_dev="$1"
shift
fi
udevil mount "$@" "/dev/${_dev}" "/mnt/${_dev}"
/usr/local/bin/udu:
#!/bin/bash
if [ $# -lt 1 ]; then
{
printf '%s\n' "$0: Error: Too few arguments."
printf '%s\n' "Usage:"
printf '%s\n' " $0 <mount> [<additional 'uedvil umount' options>]"
printf '\n'
printf '%s\n' "Where '<mount>' is a mountpoint below '/mnt/', e.g. 'sdc1' for '/mnt/sdc1',"
printf '%s\n' "and for '<additional 'uedvil umount' options>' see 'udevil help'."
} > /dev/stderr
exit 1
else
_mount="$1"
shift
fi
udevil umount "$@" "/mnt/${_mount}"
Solution was given here (https://bbs.archlinux.org/viewtopic.php?pid=2111484#p2111484):
pmount uses per default the mount option atime. Which does not work anymore.
pmount --noatime succeeds.
Regards!