2626 * [ Mounting with sync] ( #mounting-with-sync )
2727 * [ Ubuntu] ( #ubuntu )
2828 * [ Raspberry Pi - Raspbian Jessie Lite] ( #raspberry-pi---raspbian-jessie-lite )
29+ * [ Prerequisites] ( #prerequisites )
30+ * [ Install LDM] ( #install-ldm )
31+ * [ Enable LDM] ( #enable-ldm )
32+ * [ Making sure LDM is active (running)] ( #making-sure-ldm-is-active-running )
2933* [ Known issues] ( #known-issues )
3034
3135# Description
@@ -38,6 +42,7 @@ Currently supported operating system:
3842* Ubuntu.
3943* Linux (generic).
4044* Mac OS X (Darwin).
45+ * Raspbian Jessie Lite.
4146
4247# Rationale
4348
@@ -622,7 +627,24 @@ For Raspberry Pi you can use [LDM](https://github.com/LemonBoy/ldm): A lightweig
622627
623628How to install and use LDM on your Raspberry Pi in three easy steps:
624629
625- Install LDM:
630+ ### Prerequisites
631+ LDM requires additional packages installed (libudev, mount and glib-2.0). You can use below command to check if all requirements are fulfilled:
632+ ```
633+ $ pkg-config --cflags libudev mount glib-2.0
634+ ```
635+
636+ You may need to install additional packages:
637+
638+ ```
639+ $ sudo apt-get install libudev1
640+ $ sudo apt-get install libudev-dev
641+ $ sudo apt-get install libmount-dev
642+ $ sudo apt-get install libglib2.0-dev
643+ ```
644+
645+ Note: You may want to issue ``` $ sudo apt-get update ``` to make sure that you have access to latest packages via apt-get.
646+
647+ ### Install LDM
626648```
627649$ git clone [email protected] :LemonBoy/ldm.git 628650$ cd ldm
@@ -636,14 +658,27 @@ $ echo 'MOUNT_OWNER=your_own_user_name' >> /etc/ldm.conf
636658$ echo 'BASE_MOUNTPOINT=/mnt' >> /etc/ldm.conf
637659```
638660
639- Enable LDM:
661+ ### Enable LDM
640662```
641663$ systemctl status ldm
642664$ sudo systemctl enable ldm
643665```
644666
645- Now you probably have to reboot and enjoy more stable ``` mbed-ls ``` queries with your Raspberry Pi (Raspbian Jessie Lite).
667+ Now you probably have to safely reboot to make sure changes will take place ``` $sudo shutdown -r now (or sudo reboot) ``` and enjoy more stable ``` mbed-ls ``` queries with your Raspberry Pi (Raspbian Jessie Lite).
668+
669+ ### Making sure LDM is active (running)
646670
671+ ```
672+ $ systemctl status ldm
673+ ```
674+ ```
675+ ldm.service - lightweight device mounter
676+ Loaded: loaded (/usr/lib/systemd/system/ldm.service; enabled)
677+ Active: active (running) since Fri 2016-04-29 12:54:23 UTC; 48min ago
678+ Main PID: 389 (ldm)
679+ CGroup: /system.slice/ldm.service
680+ └─389 /usr/bin/ldm -u jenkins -p /mnt
681+ ```
647682
648683# Known issues
649684* Users reported issues while using ``` mbed-ls ``` on VM (Virtual Machines).
0 commit comments