October 23, 2010, 8:03am
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
October 23, 2010, 8:11am
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
October 23, 2010, 8:19am
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?
October 23, 2010, 8:23am
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
October 23, 2010, 8:32am
If i drag it starts copying files to desktop.
October 23, 2010, 8:40am
You better wait for someone that actually uses LXDE
October 23, 2010, 9:55am
ln -s /media/sda1 ~/Desktop
ln -s /media/sda2 ~/Desktop
ln -s /media/sda12 ~/Desktop
ln -s /media/sda13 ~/Desktop
for dev in sda1 sda2 sda12 sda13 ; do
cat > ~/Desktop/$dev.desktop << EOFDFILE
chmod 744 ~/Desktop/$dev.desktop
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) :
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.