Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

/var/log is 100% full - how to move to HDD?

Featured Replies

Gents,

 

installed Armbian Bullseye successfully to my Banana Pi M2 Berry. In second step i moved the OS to my attached 2,5 WD RED Sata Harddrive. This was easily possible with the command "sudo nand-sata-install".

 

But now, i see that my /var/log is full, because its located in ZRAM.

 

root@BananaPiM2Berry:/etc/systemd/system# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            431M     0  431M   0% /dev
tmpfs           100M   11M   90M  11% /run
/dev/sda1       687G  1,3G  651G   1% /
tmpfs           500M     0  500M   0% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
tmpfs           500M     0  500M   0% /tmp
/dev/mmcblk0p1  1,7G  1,3G  385M  77% /media/mmcboot
/dev/zram1       49M   48M     0 100% /var/log
tmpfs           100M     0  100M   0% /run/user/1000

 

As you can see i hve more than 650 GB avail in my root parttiion on /dev/sda1. But how can i setup /var/log to wirte on /dev/sda1 ?

 

i believed to find it in /etc/fstab, but its not there.

# <file system>                                 <mount point>   <type>  <options>                                                       <dump>  <pass>
tmpfs                                           /tmp            tmpfs   defaults,nosuid                                                 0       0
UUID=7fe45d82-d362-438a-9b7a-baa3678fcab4       /media/mmcboot  ext4    defaults,noatime,commit=600,errors=remount-ro,x-gvfs-hide       0       1
/media/mmcboot/boot                             /boot           none    bind                                                            0       0
UUID=614c4feb-de66-4b2c-a046-ce72aaf2e600       /               ext4    defaults,noatime,commit=600,errors=remount-ro,x-gvfs-hide       0       1

 

Right now, the device is unuseable, i cant even install system updates, since no more logs can be written. Since i have so much storage avail on my HDD, i wonder how to move /var/log there...

 

Greatings

Schlotze

  • Author

Hi Werner,

 

so, when i disable ramlog in the config and then reboot the /var/log will be automatically on the HDD somewhere under /

 

is my understanding correct? - Thanks!

  • Author

Thanks so much, looks like i made it , wa?

 


udev            431M       0  431M    0% /dev
tmpfs           100M    724K  100M    1% /run
/dev/sda1       687G    1,3G  651G    1% /
tmpfs           500M       0  500M    0% /dev/shm
tmpfs           5,0M    4,0K  5,0M    1% /run/lock
tmpfs           500M    4,0K  500M    1% /tmp
/dev/mmcblk0p1  1,7G    1,3G  385M   77% /media/mmcboot
tmpfs           100M       0  100M    0% /run/user/1000

 

On 2022/3/8 at AM5点20分, Werner said:

如果整个操作系统不再位于 SD 卡上,您可以在 /etc/default/armbian-ramlog 中禁用 ramlog

thanks.😄

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.