command line vs fstab

Colin Watson cjwatson at ubuntu.com
Mon Oct 9 23:19:39 UTC 2017


On Mon, Oct 09, 2017 at 07:47:34PM +0200, Xen wrote:
> Chris Dunn schreef op 09-10-2017 19:29:
> > 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?
> 
> You may try /dev/disk/by-uuid/679E-7842

I don't think this is it; we have lots of tools that use the UUID= form.

> Also after vfat come first the options.
> 
> Make it: "vfat    default     0      1"

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.

-- 
Colin Watson                                       [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list