DevHeads.net

command line vs fstab

I'm running Xubuntu on a Chuwi Hi12 tablet. Most things work.

I've now inserted a 32gb sd card into the tablet slot, and partitioned
and formatted the card, using gparted, with a single vfat partition.

As root,

"mount -t vfat /dev/mmcblk2p1 /home/media",

works, as does "umount /home/media".

Then I inserted the following line in /etc/fstab,

"UUID=679E-7842 /home/media/ vfat 0 1"

After that, as root, "mount /home/media" yields :

"wrong fs type, bad option, bad superblock on /dev/mmcblk2p1, missing
codepage or helper program, or other error."

Assuming the UUID is correct, which I believe it is, what is going
wrong here?

Comments

Re: command line vs fstab

By Xen at 10/09/2017 - 12:47

Chris Dunn schreef op 09-10-2017 19:29:
You may try /dev/disk/by-uuid/679E-7842

Also after vfat come first the options.

Make it: "vfat default 0 1"

Re: command line vs fstab

By Colin Watson at 10/09/2017 - 18:19

On Mon, Oct 09, 2017 at 07:47:34PM +0200, Xen wrote:
I don't think this is it; we have lots of tools that use the UUID= form.

This is almost certainly the problem, but if that doesn't work, it would
also not surprise me to find that mount(8) does an exact string match of
the mount point on /etc/fstab; I would try changing "/home/media/" to
"/home/media" in that file in addition to the above.