OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> Automount microSD
post Aug 18 2018, 11:30 AM
Post #1

Group: Members
Posts: 14
Joined: 4-August 18
Member No.: 827,485

I'm using Debian 9.4 on Gemini with triple boot (Android, Debian, Sailfish), firmware from July 2018.

As there is no auto mounting of microSD card, I've used the following steps to have 2 partitions (FAT32, Ext4) on microSD visible on Debian :

Just once :
$ sudo mkdir -p /media/sd
$ sudo chmod 777 /media/sd
$ sudo mkdir -p /media/sdext4
$ sudo chmod 777 /media/sdext4

Created "/etc/fstab" with the content :
/dev/mmcblk1p1    /media/sd            vfat    defaults,noatime,discard,user,umask=0000        0       0
/dev/mmcblk1p2    /media/sdext4        ext4    defaults,noatime,discard        0       0

I've realized that small errors on this fstab, or microSD nor inserted, make Debian to not boot ! The above one works (if there is a microSD inserted).

Any better way to auto mount microSD partitions on Debian ?

Go to the top of the page
+Quote Post
post Aug 19 2018, 12:18 AM
Post #2

Group: Members
Posts: 1,579
Joined: 7-April 05
From: Sydney, Australia
Member No.: 6,806

under systemd based distros i would recomend a mount unit and an automount unit (man systemd.mount and man system.automount) once set up, this will mount he directory of choice on demand without entering user details

as an alternative 'udisk2' can be used that consists of a daemon and cli util and has native support in gnome to allow you to mount and unmount partitions

both will avoid the boot issue you described. i would recommend the udisk method for removable devices such as usb sticks and the auto mount for builtin storage such as the micro sd card slot, i frequently use this for network filesystems when coupled with the auto unmount options
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 23rd March 2019 - 09:16 AM