søndag den 10. juli 2016

Usermade links in Thunar dissapears after reboot

If you make your own links(Shortcuts) to folders on other partitions than the partition your linux distribution are on, then the links might not be there after reboot, until you manually mount the partition the links refer to. This goes for Peach OSI 14.04 LTS and Xubuntu - and perhaps more distributions.

The solution is to automount the partitions on startup - Do NOT use the Disks utility, as your pc will get stuck on startup - this can be done the following way:

First open Mousepad(or your favorite text editor).

Then open terminal and type the following:

ls -al /dev/disk/by-uuid/

Then find the partition(s) that you want to automount and copy the UUID to Mousepad, the UUID look similair to this:

 lrwxrwxrwx 1 root root  10 Jul 10 19:16 385dd128-7054-4821-9a24-bb43881676d6 -> ../../sda2
lrwxrwxrwx 1 root root  10 Jul 10 19:16 3b5c8b74-2a69-4f1a-b86f-1385f1e2ca17 -> ../../sda5
lrwxrwxrwx 1 root root  10 Jul 10 19:16 afae36e8-98ba-46bd-bc02-956afeea370b -> ../../sda1
lrwxrwxrwx 1 root root  10 Jul 10 19:16 c86e9d2c-b017-4bd3-8adc-c73ffcbd71d1 -> ../../sda6

The UUID is the long code in the middle, divided by several - 

Now Click on Applications then click on All Settings icon in the bottom.

Find and click on Session and Startup and click on Application Autostart.

Then click on the Add button.

Here you give a name(make your own) and description(make your own).

In the command field you type this:

udisksctl mount --block-device /dev/disk/by-uuid/

Copy your UUID from Mousepad and paste it in after the last /

Then click on OK.

Repeat for all the drives you want to automount.

When finished click on Close and restart your pc.