New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mount a sd cart on startup #1360
Comments
Why not use the mount option in the APP? If you don't want Android to mount your SD card during startup so that LP can mount it, check out https://gist.github.com/qianbinbin/e93e19940dda264cc5cd2ebdddbe565e |
Infortunally I can not install magisk root
Any tips on how to do that? My sd is listed inside LD as |
The mount option in the APP is for folders already mounted by Android, but I'm not sure if it's suitable for a partition: bottom right button -> properties -> mounts, enable it and add a mount point like The |
Does |
Yes. I had to do this everytime I start LD |
whats your sysv script like if you dont mind? did you try /etc/rc.local?
…________________________________
From: jaum20 ***@***.***>
Sent: Saturday, June 17, 2023 2:11:34 AM
To: meefik/linuxdeploy ***@***.***>
Cc: Binbin Qian ***@***.***>; Comment ***@***.***>
Subject: Re: [meefik/linuxdeploy] mount a sd cart on startup (Issue #1360)
Does mount -a work if a mount point added in fstab?
Yes. I had to do this everytime I start LD
—
Reply to this email directly, view it on GitHub<#1360 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB36AKG2MGY4CIAZ6QDU4WTXLSOVNANCNFSM6AAAAAAYK7GWAY>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I created a /etc/init.d/mount_sd.sh script:
Fstab is |
|
Didn't work
yes
yes
there are not rc.local in etc. Must I create it? |
Not really, but it's useful when you want to run some scripts during startup. Create #! /bin/sh
### BEGIN INIT INFO
# Provides: rc.local
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.local if it exist
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/init/vars.sh
. /lib/lsb/init-functions
do_start() {
if [ -x /etc/rc.local ]; then
[ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.local)"
/etc/rc.local
ES=$?
[ "$VERBOSE" != no ] && log_end_msg $ES
return $ES
fi
}
case "$1" in
start)
do_start
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac Create #!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Mount your SD card here:
/usr/bin/mount UUID=affdaccf-8998-4853-b2da-dd96bb45f78e /home/android/sd
exit 0 You can add some commands in |
Thank you for your help, bur didn't worked :(. The SD is not mounted at startup neither |
OK, maybe something wrong with your sysv service, but you can always mount your SD card (requiring FAT32 or exFAT I guess?) on Android, then mount the directory in the APP. |
I am using LD with the image install (Ubuntu 18)
I have tried:
add an entry to fstab
add an entry to cron to be executed @reboot
add a SysVinit service
If I run 'sudo mount -a' it will mount the sd, but I can't make it mount automatically at startup. Any tips?
The text was updated successfully, but these errors were encountered: