r/GalliumOS•
Broap

What is the correct way to use usb stick as home subfolder storage?

Howdy, I want to move some non essential folders from my 16gb emmc to a 128Gb usb3 stick. So the Downloads, Pictures etc folders. I've tried a number of tutorials (also the move home folder tutorial from the Galliumos wiki) but they never work out.

I would like to be able to put all those folders+files on the usb stick and have it automount during boot. But I need it to not break the system if it gets taken out, or come in conflict when another USB device is mounted.

What would be the correct way to achieve this?

Posted Jul 15, 2020, 5:01 PM UTC

16
DryLumoColor•

https://askubuntu.com/questions/205841/how-do-i-mount-a-folder-from-another-partition

you need to use bind option. If you remove it may cause issues. Try and see. Ideally you can use

ln -s 

command

2
BroapOP•

Thank you for your reply. For the time being I did go for an fstab entry based on UUID and then moving and symlinking the folders to usb pen drive. But like you also mentioned I have no idea if removing and remounting the drive will cause issues. Only one way to find out..,

1
DryLumoColor•

you may be lucky a few times but eventually linux will tell that it needs a filesystem check or your files may look ok but internally get corrupted.

Which laptop is this?

2
BroapOP•

It's a HP Chromebook 11 G5 (SETZER) with 16Gb emmc and now a 128Gb USB 3.1 pen drive. Thanks for the warning. I'll read up on binding instead of soft linking.

1
benjaminjur2019•

Not sure what your needs are: I once sacrificed one port on Acer netbook by soldering the USB SSD inside permanently with some cables. SETZER seems to have plenty of space -

https://www.ifixit.com/Guide/HP+Chromebook+14+G5++Motherboard+Replacement/127563

2