[arm-allstar] tmpfs percentage
Charles Powell
5h3dx.zinga at gmail.com
Wed Oct 17 12:50:03 EDT 2018
Just a note about the command ‘df’. If you use 'df -h' it gives a “human readable” result.
73,
Charles - NK8O
> On Oct 17, 2018, at 11:32 AM, Luc Drolet VE2LUQ via ARM-allstar <arm-allstar at hamvoip.org> wrote:
>
> Hello Doug,
>
> WOW, a big thank you
> yes everything works fine now
> I can see the USB key with its usage percentage
>
> I missed the
> pgrep devmon function&>/dev/null||/usr/bin/devmon&>/dev/null&
>
>
> [root at NODE1420 ~]# pgrep devmon function&>/dev/null||/usr/bin/devmon&>/dev/null&
> [1] 15804
> [root at NODE1420 ~]# df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/root 3762048 1610088 1941140 46% /
> devtmpfs 474584 0 474584 0% /dev
> tmpfs 479192 0 479192 0% /dev/shm
> tmpfs 479192 12368 466824 3% /run
> tmpfs 479192 0 479192 0% /sys/fs/cgroup
> tmpfs 479192 44 479148 1% /tmp
> tmpfs 51200 28 51172 1% /var/log
> /dev/mmcblk0p1 102182 19614 82568 20% /boot
> tmpfs 95840 0 95840 0% /run/user/0
> /dev/sda1 15649664 331584 15318080 3% /media/NODE1420
> [root at NODE1420 ~]#
>
>
> Now I can see my USB key
>
> A big thank you for your help
>
> Thank you
>
> 73’s
> Luc
> VE2LUQ
>
>
>
>> Le 17 oct. 2018 à 01:16, Doug Crompton via ARM-allstar <arm-allstar at hamvoip.org> a écrit :
>>
>> 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
>>>
>>>
>> _______________________________________________
>>
>> 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