mkdir permanent /media/<new-mountpoint>

3 posts / 0 new
Last post
#1 Wed, 2017-05-03 14:28
Hilix
  • Hilix's picture
  • Offline
  • Last seen: 6 months 1 week ago
  • Joined: 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.

Fri, 2017-05-05 15:40
Hilix
  • Hilix's picture
  • Offline
  • Last seen: 6 months 1 week ago
  • Joined: 2013-07-20

...no one, who 've had this problem before?
-Hilix.

Sat, 2017-05-06 11:19
Hilix
  • Hilix's picture
  • Offline
  • Last seen: 6 months 1 week ago
  • Joined: 2013-07-20

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.

Log in or register to post comments