I have a 128 GB SD card that I use for permanent storage in my Lenovo Thinkpad X1. I've mounted it in /etc/fstab with this line:
UUID=37733366-e936-41df-983a-f084352b3a5b /home/kristian/sd128gb auto defaults 0 0
which works just fine. Until I put my machine to suspend, upon returning I get the error:
Error mounting system-managed device /dev/mmcblk0p1: Command-line`mount "/home/kristian/sd128gb"' exited with non-zero exit status 32:mount: File exists
The mount point directory is empty, but attempting to mount it gives
$ mount sd128gb/mount: according to mtab, /dev/mmcblk0p1 is already mounted on /home/kristian/sd128gb
Syslog gives
kernel: [271462.070388] EXT4-fs warning (device mmcblk0p1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0)kernel: [271462.070410] EXT4-fs warning (device mmcblk0p1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0)kernel: [271462.091100] EXT4-fs warning (device mmcblk0p1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0)kernel: [271462.091130] EXT4-fs warning (device mmcblk0p1): __ext4_read_dirblock:908: error reading directory block (ino 2, block 0)
Unmounting and mounting it again works, but this is a hassle to do every time I return from suspend -- especially as I use it for permanent storage, it doesn't feel very reliable to work with data on a partition that frequently unmounts.
The "file exists" message seems obscure, and googling it, it seems like not many people get the same error message.
Can I fix this permanently? Or, alternatively: How could I make an ugly fix with a remount command that runs every time I return from suspend?