Mount SSD partition into /tmp, /var etc

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
mcfisto
Posts: 1
Joined: Fri Apr 10, 2020 10:11 pm

Mount SSD partition into /tmp, /var etc

Post by mcfisto »

Hi guys,
sorry for maybe stupid question. I have RPi3 with SSD attached. I would like to mount SSD partitions into mount points that linux uses for frequently written data:
/tmp
/var

How to do that, please? I have looked at dietpi-drive-manager, but it allows me to mount just under /mnt. I have tried to edit /etc/fstab, but my changes are not applied and rewritten.

Maybe I am completely out of dietpi philosophy....please could you point me to some docs or give me an advice how to achieve that. Or is some better solution for my idea?

Thanks in advance.
D.
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Mount SSD partition into /tmp, /var etc

Post by Joulinar »

maybe you should consider to move the entire root FS to your SSD. Probably this post could guide you a little bit.

viewtopic.php?p=22717#p22717

pls ensure you have an external power supply for your SSD to avoid problems
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply