× Introducing the Orbi 970 Series Mesh System with WiFi 7 technology. For more information visit the NETGEAR Press Room.
Orbi WiFi 7 RBE973
Reply

Force fscheck ubifs

Dees7
Aspirant

Force fscheck ubifs

Hello.

I have MS2000 - Stora. And I thought I have an trouble with httpd but there is an rootfs trouble

[root@stora:usr]# /etc/init.d/httpd  start
Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: Invalid argument
                                                           [FAILED]
[root@stora:usr]# ldd  /usr/sbin/httpd
        libm.so.6 => /lib/libm.so.6 (0x40025000)
        libpcre.so.0 => /lib/libpcre.so.0 (0x400cd000)
        libselinux.so.1 => /lib/libselinux.so.1 (0x400ef000)
        libaprutil-1.so.0 => not found
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x4010c000)
        libdb-4.3.so => /lib/libdb-4.3.so (0x40145000)
        libexpat.so.0 => /lib/libexpat.so.0 (0x40227000)
        libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0x4024c000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40277000)
        libdl.so.2 => /lib/libdl.so.2 (0x40294000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4029f000)
        libc.so.6 => /lib/libc.so.6 (0x402b2000)
        /lib/ld-linux.so.3 (0x40000000)
        libsepol.so.1 => /lib/libsepol.so.1 (0x403e3000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x4042d000)
[root@stora:usr]# ls -la /usr/lib/libaprutil-1.so.0
lrwxrwxrwx 1 root root 21 Oct  2  2009 /usr/lib/libaprutil-1.so.0 -> libaprutil-1.so.0.2.7
[root@stora:usr]# ls -la /usr/lib/libaprutil-1.so.0.2.7
ls: /usr/lib/libaprutil-1.so.0.2.7: Invalid argument
[root@stora:usr]# ls -la /usr/lib
ls: reading directory /usr/lib: Invalid argument
total 0
[root@stora:usr]# mount | grep ubi0:rootfs
ubi0:rootfs on / type ubifs (rw)

How can I force fsck ubifs? How should I do it?


I have USB with debian and I can boot from USB. Please any advice.

Message 1 of 4
Dees7
Aspirant

Re: Force fscheck ubifs

Templorary woraroud:

I have backup of root and I extract it to /opt/root
mv /usr/lib /usr/lib1 (cause can't delete)
ln -s /opt/root/usr/lib /usr/lib

It works but i still have errors on the root.

Message 2 of 4
Gitsov
Virtuoso

Re: Force fscheck ubifs

If you have complete backup of rootfs (/dev/mtd3) just flash it with nandwrire or ubiformat. These tools will check bad blocks in flash, mark it as unusable and flash the rest of file(s) on good blocks. Contact me in PM if you need more help with this.

 

Message 3 of 4
Gitsov
Virtuoso

Re: Force fscheck ubifs

You will need to do flash_eraseall /dev/mt2 then either to untar tar.gz archive if you have that kind of backup, if it is plain dd image you should write it with nandwrite -p /dev/mtd2 <IMAGE_FILE>, if it is .ubi file - ubiformat is correct tool. Let me know on PM if you need more help. In all cases dd does not play well with mtd devices and does not care that flash is having bad blocks. Don't use dd.

Message 4 of 4
Discussion stats
  • 3 replies
  • 1599 views
  • 0 kudos
  • 2 in conversation
Announcements

Orbi WiFi 7