howto check disk

Having issues with your DietPi installation or found a bug? Post it here.
manilx
Posts: 86
Joined: Mon Dec 07, 2020 11:02 am

howto check disk

Post by manilx »

Hi

battling with a new Odroid N2+, which is constantly rebooting in the middle of dietpi-backup/sync to an external usb-ssd I question myself if the filesystem is not in risk of being corrupted.

If it is, is there a warning somewhere? And how can I check/fix it. I mean the main OS drive.

Thx in advance
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: howto check disk

Post by MichaIng »

Welcome over here manilx :). So it's still not stable? :(

There is an option in dietpi-drive_manager to have the root file system scanned on next reboot. But you can do it manually:

Code: Select all

> /forcefsck
reboot
Probably you can use the new max_freq_a73 and max_freq_a53 settings in /boot/boot.ini to downclock the CPUs by one step and see if that helps. Should not be required, but if it is, maybe you got bad hardware and have chance for a replacement by Hardkernel.
manilx
Posts: 86
Joined: Mon Dec 07, 2020 11:02 am

Re: howto check disk

Post by manilx »

Yes, nothing but problems.

I will try your suggestion but I think this board has issues.
Problem is that sending it back for replacement is a hassle out of Portugal. I have paid high duty taxes for import. In the end the board has cost me almost double retail.
And to send it back I need to apply for export permit or I risk paying again....
manilx
Posts: 86
Joined: Mon Dec 07, 2020 11:02 am

Re: howto check disk

Post by manilx »

P.S. On the Odroid they well try me to switch sides and leave dietpi..... No bloody way!
manilx
Posts: 86
Joined: Mon Dec 07, 2020 11:02 am

Re: howto check disk

Post by manilx »

Changing clock speed doesn't seem to work or I'm doing something wrong:

I changed boot.ini to this:

Code: Select all

# Max CPU frequency for big A73 cores in MHz
# - Valid values on Odroid N2: 500, 667, 1000, 1200, 1398, 1512, 1608, 1704, 1800 (default), 1908, 2004
# - Valid values on Odroid N2+: 500, 667, 1000, 1200, 1398, 1512, 1608, 1704, 1800, 1908, 2016, 2100, 2208 (default), 2304, 2400
setenv max_freq_a73 "2100"

# Max CPU frequency for small A53 cores in MHz
# - Valid values on Odroid N2: 100, 250, 500, 667, 1000, 1200, 1398, 1512, 1608, 1704, 1896 (default), 1992
# - Valid values on Odroid N2+: 500, 667, 1000, 1200, 1398, 1512, 1608, 1704, 1800, 1908 (default), 2016
setenv max_freq_a53 "1800"
But doesn't seem to have any effect. Still the defaults:

Code: Select all

DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     aarch64
 Temperature  |     31'C : 87'F (Cool runnings)
 Governor     |     schedutil

                 Current Freq    Min Freq   Max Freq
 CPU0         |      1800 MHz      500 MHz    1908 MHz
 CPU1         |      1800 MHz      500 MHz    1908 MHz
 CPU2         |      1000 MHz      500 MHz    2208 MHz
 CPU3         |      1000 MHz      500 MHz    2208 MHz
 CPU4         |      1000 MHz      500 MHz    2208 MHz
 CPU5         |      1000 MHz      500 MHz    2208 MHz
Last edited by manilx on Fri Mar 12, 2021 11:35 am, edited 1 time in total.
manilx
Posts: 86
Joined: Mon Dec 07, 2020 11:02 am

Re: howto check disk

Post by manilx »

Board will be returned today for replacement.
Let's see if a new one doesn't have these abnormal issues, otherwise it would be a deeper issue related to SW.

I'll let you know!
manilx
Posts: 86
Joined: Mon Dec 07, 2020 11:02 am

Re: howto check disk

Post by manilx »

MichaIng wrote: Thu Mar 11, 2021 9:15 pm Welcome over here manilx :). So it's still not stable? :(

There is an option in dietpi-drive_manager to have the root file system scanned on next reboot. But you can do it manually:

Code: Select all

> /forcefsck
reboot
Probably you can use the new max_freq_a73 and max_freq_a53 settings in /boot/boot.ini to downclock the CPUs by one step and see if that helps. Should not be required, but if it is, maybe you got bad hardware and have chance for a replacement by Hardkernel.
Tried to run this on the pie4 (also via dietpi-drive_manager):
I get this:
Attachments
ScreenShot 2021-03-12 at 14.14.28.jpg
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: howto check disk

Post by MichaIng »

What do you mean with "tried to run on"?

I meant to attach the SD card as external drive to another system, if it's an RPi then via USB SD card adapter/reader or so, ah or as internal SD card as well when you boot the RPi from USB. Best boot the Pi 4 first, then attach the SD card, to avoid any invalid boot attempts.

If on the Odroid N2 the CPU frequencies have no effect, that's likely an issue with the /boot/boot.ini. I'll review it. Note that I cannot test it ;).
manilx
Posts: 86
Joined: Mon Dec 07, 2020 11:02 am

Re: howto check disk

Post by manilx »

MichaIng wrote: Fri Mar 12, 2021 5:04 pm What do you mean with "tried to run on"?

I meant to attach the SD card as external drive to another system, if it's an RPi then via USB SD card adapter/reader or so, ah or as internal SD card as well when you boot the RPi from USB. Best boot the Pi 4 first, then attach the SD card, to avoid any invalid boot attempts.
Doing this on my running pie4:
I wanted to check the fs of the boot drive, i.e. the usb I'm running the pie from...
"There is an option in dietpi-drive_manager to have the root file system scanned on next reboot."
This is what I understand of this description.... If I only have one pie I have to check the fs on itself.
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: howto check disk

Post by MichaIng »

Ah yeah sorry for my confusion:
  • If you have no other Linux system, you need to scan the root filesystem on reboot via dietpi-drive_manager option or by simply running > /forcefsck from console, then reboot. Result can be checked via cat /run/initramfs/fsck.log.
  • If you have another Linux system where you can attach the SD card as external drive to, that's the better option as you can fsck and in case repair it interactively there. But I'd do that effort only when you're sure that the filesystem is corrupted, e.g. when scan on reboot found errors but you still face I/O issues/errors.
Post Reply