Page 1 of 1

User data path

Posted: Thu Apr 06, 2017 12:42 pm
by jram
I had a great install of DietPi working and had configured my userdata to be stored on usb_1. However, I had an 'event' that resulted in corruption of my SD card and had to start again. When configuring the path to the same usb stick - it no is identified by a very long number with the result that all the paths I had set up for cron jobs etc need to be changed. Is there any way of identifying that USB stick as it was originally? Thx

Re: User data path

Posted: Thu Apr 06, 2017 3:28 pm
by Fourdee
jram wrote:I had a great install of DietPi working and had configured my userdata to be stored on usb_1. However, I had an 'event' that resulted in corruption of my SD card and had to start again. When configuring the path to the same usb stick - it no is identified by a very long number with the result that all the paths I had set up for cron jobs etc need to be changed. Is there any way of identifying that USB stick as it was originally? Thx
Yep, you can symlink the old mount location to the new one:

Code: Select all

 ln -sf /mnt/NEW_UUID /mnt/PREVIOUS_UUID

Re: User data path

Posted: Fri Apr 07, 2017 12:45 am
by jram
Brilliant :) Thx