Automount SD card
#6
To automount the SD card you will have to edit /lib/init/fstab since /etc/fstab is regenerated at every boot.

Step by step:

1) Create a new directory for mounting the SD card. I've put it in my home directory:
mkdir SD

2) get the device name of your SD card by calling:
lsblk
It will be something like mmcblk0

3) check the file system of the SD card:
grep "^device /dev/" /proc/self/mountstats
If formated by ubuntu touch it should be VFAT.

4) make the system writable:
sudo mount -o rw,remount /

5) get root privileges:
sudo su

6) edit /lib/init/fstab by calling:
nano /etc/fstab

7) You'll have to set the keyboard to nano's hotkeys using the menu on the left.
Otherwise you won't be able to save and exit. Add the following line right at the end:
/dev/mmcblk0 /home/phablet/SD vfat rw,auto,user,umask=0000 0 0
You will have to change the mount-directory, device name and filesystem according to what you found out in steps 1), 2) and 3)!

8) Restart your phone.

Please remember: When your phone is updated to a new release, you will have to apply this change again!


Messages In This Thread
Automount SD card - by MasterGreenbolt - 06-19-2020, 06:45 PM
RE: Automount SD card - by kop316 - 06-26-2020, 10:58 AM
RE: Automount SD card - by hiimtye - 07-06-2020, 06:12 PM
RE: Automount SD card - by mercrapper - 07-09-2020, 12:41 PM
RE: Automount SD card - by hiimtye - 07-10-2020, 02:50 PM
RE: Automount SD card - by doelf - 07-20-2020, 03:24 AM
RE: Automount SD card - by hiimtye - 07-24-2020, 05:10 PM
RE: Automount SD card - by FOSSagent0 - 08-16-2020, 05:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  file manager vs. SD card laserpyramid 6 6,991 10-18-2021, 03:10 AM
Last Post: acrux
  Copy To SD Card, All I get Is Red Light & Black Screen . . . . NobodyNew1 9 13,012 09-13-2020, 08:59 PM
Last Post: NobodyNew1
  Is bluetooth lag for A/V playback due to SD card? Cree 1 3,056 08-02-2020, 06:30 PM
Last Post: hiimtye
  Booting from SD card bingo600 1 3,109 06-20-2020, 02:33 AM
Last Post: bingo600
  SIM card not detected AddieDirects 5 8,555 06-12-2020, 04:06 PM
Last Post: Momomentum
  accessing sd card from terminal / file manager pepo 2 4,319 03-17-2020, 07:24 AM
Last Post: pepo

Forum Jump:


Users browsing this thread: 6 Guest(s)