[arm-allstar] tmpfs percentage

Doug Crompton wa3dsp at gmail.com
Wed Oct 17 01:16:43 EDT 2018


Luc,

 I have no idea what is going on. Your df does not show it. Is it actually
mounted? If so how are you mounting it? I do not specifically put anything
in /etc/fstab  instead I use devmon to auto mount at boot which works
fine.  A line like this would check if devmon is running and if not start
it in the background.

# check if devmon is running, if not running,  start it
pgrep devmon &> /dev/null || /usr/bin/devmon &> /dev/null &

You could add this in  /etc/rc.local at the top.  As long as devmon is
running any removable media will be auto mounted in /media

BUT A better way is to load it as a systemd service. First see if it is
already loaded -

# systemctl status devmon at service
* devmon at service.service - devmon Service
   Loaded: loaded (/usr/lib/systemd/system/devmon at .service; enabled; vendor
preset: disabled)

If it is not loaded do -

systemctl enable devmon at service
systemctl start devmon at service

Then when you do  systemctl status devon at service  it should show loaded.

Don't add anything in fstab. The system should detect and mount any
removable media under /media at boot or whenever you insert it.

To make it come up with a specific name you need to use something like
Gparted on a Linux desktop on the stick to give it a name label.  I
labelled mine MS1 for mass storage 1.  So it gets mounted as  /media/MS1


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*



On Tue, Oct 16, 2018 at 6:02 PM Luc Drolet VE2LUQ <ldrolet at cgocable.ca>
wrote:

> Hello Doug,
>
> Here is what I have for 2 repeaters
>
>
> [root at NODE1420 ~]# df
> Filesystem     1K-blocks    Used Available Use% Mounted on
> /dev/root        3762048 1602660   1948568  46% /
> devtmpfs          474584       0    474584   0% /dev
> tmpfs             479192       0    479192   0% /dev/shm
> tmpfs             479192   36392    442800   8% /run
> tmpfs             479192       0    479192   0% /sys/fs/cgroup
> tmpfs             479192      44    479148   1% /tmp
> tmpfs              51200     548     50652   2% /var/log
> /dev/mmcblk0p1    102182   19614     82568  20% /boot
> tmpfs              95840       0     95840   0% /run/user/0
> [root at NODE1420 ~]#
>
>
> and in my RPT.conf file I put it well
> archivedir = /media/NODE1420
>
> and my USB key is well named NODE1420, and formatted in exFAT
>
> are there any special functions to do to have the "df » function
> /dev/sda1       59374732 1616632  54718920   3% /media/NODE1420
>
> Thank you for your answers
>
> 73’s
>
> Luc
> VE2LUQ
>
>
> > Le 15 oct. 2018 à 22:17, Doug Crompton via ARM-allstar <
> arm-allstar at hamvoip.org> a écrit :
> >
> > Luc,
> >
> > df will always show what is mounted. If you are not seeing it it probably
> > is not mounted. Here is one of my servers df's with a USB stick -
> >
> > Filesystem     1K-blocks    Used Available Use% Mounted on
> > /dev/root        3762048 1708732   1842496  49% /
> > devtmpfs          474584       0    474584   0% /dev
> > tmpfs             479192       0    479192   0% /dev/shm
> > tmpfs             479192   48268    430924  11% /run
> > tmpfs             479192       0    479192   0% /sys/fs/cgroup
> > tmpfs             479192    1308    477884   1% /tmp
> > tmpfs              51200    3472     47728   7% /var/log
> > /dev/mmcblk0p1    102182   19612     82570  20% /boot
> > /dev/sda1       59374732 1616632  54718920   3% /media/MS1
> > tmpfs              95840       0     95840   0% /run/user/0
> >
> > The USB stick is mounted to /dev/sda1 as /media/ms1
> > A USB stick is not a tmpfs. That would be ramdisk on the CPU. Maybe you
> are
> > confusing the two?
> >
> >
> > *73 Doug*
> >
> > *WA3DSP*
> >
> > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
> >
> >
> >
> > On Mon, Oct 15, 2018 at 10:08 PM "Luc Drolet VE2LUQ via ARM-allstar" <
> > arm-allstar at hamvoip.org> wrote:
> >
> >> Hello everyone,
> >>
> >> I have a little problem
> >> with 2 repeaters I can not see my USB key in "tmpfs" before I could see
> >> the percentage of use of these USB key
> >> and the other repeaters that I use, I can see my USB keys with the
> >> percentage of use of this USB key
> >>
> >> my usb keys are formatted in exFAT
> >>
> >> is there a way to see this information
> >> I type "df" in "start bash shell interface"
> >>
> >> Thank you
> >>
> >> 73’
> >> Luc
> >> VE2LUQ
> >> _______________________________________________
> >>
> >> ARM-allstar mailing list
> >> ARM-allstar at hamvoip.org
> >> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >>
> >> Visit the BBB and RPi2/3 web page - http://hamvoip.org
> > _______________________________________________
> >
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
>


More information about the ARM-allstar mailing list