How to mount vfat partition automatically after boot?

How to mount vfat partition automatically after boot?
After login it it will mount all vfat partition and the icon of those parition will be at desktop.

How can it be done.
udisks is installed.
If i click a vfat partition from pcmanfm it prompts for password to mount.
I don’t want to click.
It will be automatically mounted and i will get the icon of that mounted vfat partition at desktop

add it to fstab

you might want to create a mount point for it first. If you don’t konw how, tell me how you want it to appear Eg; STORE or MUSIC whatever
and what is your login / uername

Added in /etc/fstab:


/dev/sda1            /media/sda1          vfat       rw,exec,uid=1001,gid=100,umask=0002,auto 0 0
/dev/sda2            /media/sda2          vfat       rw,exec,uid=1001,gid=100,umask=0002,auto 0 0
/dev/sda12           /media/sda12        vfat       rw,exec,uid=1001,gid=100,umask=0002,auto 0 0

But how can i get the partition/volume icon on desktop for these?

Navigate to the folders in the file browser (Is this LXDE)?

Can you drag sda1 to the desktop
or can you right click sda1 and create a shortcut?

I’m not sure, I don’t use LXDE
@oldcpu does though

If i drag it starts copying files to desktop.

You better wait for someone that actually uses LXDE


ln -s /media/sda1 ~/Desktop
ln -s /media/sda2 ~/Desktop
ln -s /media/sda12 ~/Desktop
ln -s /media/sda13 ~/Desktop

#! /bin/bash

for dev in sda1 sda2 sda12 sda13 ; do
cat > ~/Desktop/$dev.desktop << EOFDFILE
[Desktop Entry]
Type=Application
Icon=system-file-manager
Name=$dev
Exec=pcmanfm /media/$dev
StartupNotify=true
Terminal=false
MimeType=inode/directory;
EOFDFILE
chmod 744 ~/Desktop/$dev.desktop
done

Copy/paste the code above, save to a file an execute … or for each partition, create a file in ~/Desktop which would look like that (example for sda1) :

[Desktop Entry]
Type=Application
Icon=system-file-manager
Name=sda1
Exec=pcmanfm **/media/sda1**
StartupNotify=true
Terminal=false
MimeType=inode/directory;

For each file you can choose the name and icon you like (i.e. you can change the text in red)

This is different from what you did. You created symlinks. These are desktop files. You can change their attributs, name, icons, etc.