Dedicated USB drive base directory?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Mattie

Dedicated USB drive base directory?

Post by Mattie »

Hi,

Is it possible to set a base dir for everything that gets installed to the USB drive when setting it up as dedicated drive?
Currently I have:
\
  • Books
  • Music
  • Pictures
  • Videos
But when installing some software I get something like:
\
  • Books
  • downloads
  • Music
  • Pictures
  • pydio_data
  • Videos
  • .swapfile
  • DietPi_OpenVPN_Client.ovpn
It would be nice to have it setup for example like:
\
  • .dietpi
    • downloads
    • pydio_data
    • .swapfile
    • DietPi_OpenVPN_Client.ovpn
  • Books
  • Music
  • Pictures
  • Videos
Cheers

Mattie
User avatar
Fourdee
Site Admin
Posts: 2783
Joined: Tue Feb 06, 2007 1:36 pm

Re: Dedicated USB drive base directory?

Post by Fourdee »

Mattie wrote:Hi,

Is it possible to set a base dir for everything that gets installed to the USB drive when setting it up as dedicated drive?
Currently I have:
\
  • Books
  • Music
  • Pictures
  • Videos
But when installing some software I get something like:
\
  • Books
  • downloads
  • Music
  • Pictures
  • pydio_data
  • Videos
  • .swapfile
  • DietPi_OpenVPN_Client.ovpn
It would be nice to have it setup for example like:
\
  • .dietpi
    • downloads
    • pydio_data
    • .swapfile
    • DietPi_OpenVPN_Client.ovpn
  • Books
  • Music
  • Pictures
  • Videos
Cheers

Mattie
Hi Mattie,

This is excellent feedback.
To change the target paths, you would need to modify the config files for each program.

If you could let me know which programs you would like to change the paths for, I will assist you.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Mattie

Re: Dedicated USB drive base directory?

Post by Mattie »

Hi Fourdee,

That is ok, I can probably manage those myself.
I was just wondering if i could set a generic basepath, that is used in the dietpi-software install script.
Perhaps using the functionality that changes between SD and USB installs, add a subfolder to that, instead of only the mounted root.

Is there no way to use dietpi_automation to somehow append something to the $TARGET_DIRECTORY or $HOME variable?

Cheers,
Mattie
User avatar
Fourdee
Site Admin
Posts: 2783
Joined: Tue Feb 06, 2007 1:36 pm

Re: Dedicated USB drive base directory?

Post by Fourdee »

Mattie wrote:Is there no way to use dietpi_automation to somehow append something to the $TARGET_DIRECTORY or $HOME variable?

Cheers,
Mattie
Not at the moment as the paths are hard coded into dietpi-software based on SD or USB setup. But I will look into it. Having a customizeable path could be handy:

Git Ticket: https://github.com/Fourdee/DietPi/issues/198
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Mattie

Re: Dedicated USB drive base directory?

Post by Mattie »

Super, tnx!
Post Reply