OpenWrt Forum Archive

Topic: WARNING: /lib/functions/fsck not found

The content of this topic has been archived on 2 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
I installed OpenWrt Backfire 10.03.1 on router with usb port:

Linux version 2.6.32.27 (jow@nd-build-02.linux-appliance.net) (gcc version 4.3.3 (GCC) ) #5 Wed Dec 21 05:51:40 CET 2011
Detected Broadcom 0x6358 CPU revision a1
CPU frequency is 300 MHz
32MB of RAM installed
registering 40 GPIOs
board_bcm963xx: CFE version: unknown

When I use a usb pendrive, I can't mount him.
If I write:

/etc/init.d/fstab start

I see:

WARNING: /lib/functions/fsck not found

Also, with lsusb and fdisk commands,  nothing reply (not recognize usb pen drive)
Why ?

(Last edited by c.man on 9 Aug 2017, 21:24)

There are much newer versions than 10.03.

To mount a USB drive, you will need kmod-usb-storage and kmod-fs-xxxx with xxxx being the type of filesystem on the partition you're going to mount.  kmod-fs-ext4 may be too large if you only have 4 MB flash.

fdisk, lsusb, and fsck are in separate "utils" packages.  Generally they are not needed if you only want to mount a disk that is already formatted.

which new version I can to install for my router board bcm963xx ?

15.05.1 or a LEDE build (lede-project.org) should work since you have 32 MB of RAM.

(Last edited by mk24 on 9 Aug 2017, 21:37)

I have 32 MB of RAM
I don't know if I have 8 MB of flash...
How I to do to control ?

I tried to upgrade with:

openwrt-15.05-brcm63xx-generic-AGV2+W-squashfs-cfe.bin

but I see this error:

"The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform."

ok.
I upgraded to 15.05.1.
but usb pendrive don't work....
help me...

Did you install the drivers?

Boot up, then plug in the drive, and post the last lines of dmesg (should start with "New high-speed USB device...").

dmesg:

[  492.128000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1056.760000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 1056.912000] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 1056.924000] scsi host0: usb-storage 1-1:1.0
[ 1057.928000] scsi 0:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[ 1057.948000] sd 0:0:0:0: [sda] 7925760 512-byte logical blocks: (4.05 GB/3.77 GiB)
[ 1057.956000] sd 0:0:0:0: [sda] Write Protect is off
[ 1057.960000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 1057.960000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1057.984000]  sda: sda1
[ 1057.996000] sd 0:0:0:0: [sda] Attached SCSI removable disk

lsusb

Bus 001 Device 002: ID 058f:6387 Alcor Micro Corp. Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

fdisk -l

Device     Boot Start     End Sectors  Size Id Type
/dev/sda1         856 7925759 7924904  3.8G  b W95 FAT32

I try to mount:

root@OpenWrt:~# mkdir -p /mnt/pendrive
root@OpenWrt:~# mount /dev/sda1 /mnt/pendrive
mount: mounting /dev/sda1 on /mnt/pendrive failed: Invalid argument

(Last edited by c.man on 10 Aug 2017, 15:26)

OK you have the USB system working, usb-storage has parsed the partition table on the drive and created the /dev/sdaX block devices, but mount does not recognize the filesystem type. 

I think it is either kmod-fs-msdos or kmod-fs-vfat needed for the FAT32 format that is on a pen drive from the factory.  I usually reformat pen drives to ext2 and use kmod-fs-ext4.

(Last edited by mk24 on 10 Aug 2017, 16:04)

ok. I solved.
From dmesg, I was need to installate:

kmod-nls-cp437
kmod-nls-iso8859-1

and remove

kmod-nls-iso8859-15

Now work !

(Last edited by c.man on 10 Aug 2017, 16:21)

The discussion might have continued from here.