mkdir permanent /media/<new-mountpoint>
#1
Wed, 2017-05-03 14:28
Hilix
-
- Offline
- 6 months 1 week ago
- 2013-07-20
Hi,
I'm using:
4.4.52-0-rpi2 #1-Alpine SMP PREEMPT Tue Feb 28 13:01:43 GMT 2017 armv7l Linux
on: Raspberry Pi 3 Model B Rev 1.2 b
and wanted to add/mount a 2nd partition on the SD-Card, where the OS is booted from. Because the OS is RAM based, a "mkdir /media/mountpoint" disappears after halt/reboot.
How can I create this mount point, so that it survives the next re/start?
Thanks a lot for a hint/advise in advance and regards. / Hilix.
...no one, who 've had this problem before?
-Hilix.
I've solved this problem myself by writing an OpenRC init.d script, that creates the mountpoint under /media and mounts the partition (for ex. mmcblk0p2) and also stops it and adding this script to the OpenRC boot-level startup scripts.
Regards. / Hilix.