1

Temat: Problem Extroot nie widać

Witam
Posiadam router mr3020 z wgranym Openwrt ATTITUDE ADJUSTMENT (12.09, r36088).

Do slotu USB podłączyłem czytnik kart microsd z kartą microSDHC 8GB.
Chcę zwiększyć pojemność pamięci na routerze.
Znalazłem poradnik
http://eko.one.pl/?p=openwrt-externalroot
Po wykonaniu czynności, nie widać w mount sda1 (sformatowałem identycznie jak w poradniku - czyli jest tylko jedna partycja).

Podczas wydania mount widzę:

root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=14608k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay
)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
root@OpenWrt:/#

disk free:
root@OpenWrt:/# df -h

Filesystem                Size      Used Available Use% Mounted on
rootfs                    1.1M    688.0K    400.0K  63% /
/dev/root                 2.0M      2.0M         0 100% /rom
tmpfs                    14.3M     88.0K     14.2M   1% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock3            1.1M    688.0K    400.0K  63% /overlay
overlayfs:/overlay        1.1M    688.0K    400.0K  63% /

/etc/config/fstab

config global 'automount'
        option from_fstab '1'
        option anon_mount '1'

config global 'autoswap'
        option from_fstab '1'
        option anon_swap '0'

config 'mount'
        option 'target' '/overlay'
        option 'fstype' 'ext4'
        option 'options' 'rw,noatime'
        option 'enabled_fsck' '0'
        option 'device' '/dev/sda1'
        option 'enabled' '1'

~

Na routerze zainstalowałem dodatkowo pakiety:
kmod-usb-storage
fdisk
block-mount
kmod-fs-ext4

Czy to ma związek że kartę sd sformatowałem w ext4 a /overlay jest w jffs2 ?

2

Odp: Problem Extroot nie widać

Dokadnie takie maja byc formaty. Zrob blkid i zobacz czy widzi ci w ogole czytnik z karta.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3 (edytowany przez ronin 2014-10-14 12:09:48)

Odp: Problem Extroot nie widać

blkid zwraca pustki,
trochę dziwne.

ls /dev/ pokazuje że sda i sda1 istnieją

fdisk /dev/sda - pokazuje partycję

Pamiętam że na początku (na świeżym openwrt) blkid zwracało też informacji.
Ale po zainstalowaniu kmod-usb-storage już tak.

btw. cat /etc/fstab daje:

root@OpenWrt:/# cat /etc/fstab
/dev/sda1       /overlay        ext4    rw,noatime      0       0

4

Odp: Problem Extroot nie widać

fstab nic nie znaczy bo powstaje z konfiga. Jak blkid nic nie widzi to nie widzi dysku. Odłącz go, podłącz i pokaż logread co wypluł.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5 (edytowany przez ronin 2014-10-15 01:09:33)

Odp: Problem Extroot nie widać

logread, od chwili odłaczenia:

Oct 15 02:00:11 OpenWrt kern.info kernel: [50591.170000] usb 1-1: USB disconnect, device number 2
Oct 15 02:00:17 OpenWrt kern.info kernel: [50596.310000] usb 1-1: new high-speed USB device number 3 using ehci-platform
Oct 15 02:00:17 OpenWrt kern.info kernel: [50596.470000] scsi1 : usb-storage 1-1:1.0
Oct 15 02:00:18 OpenWrt kern.notice kernel: [50597.470000] scsi 1:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0272 PQ: 0 ANSI: 0
Oct 15 02:00:18 OpenWrt kern.notice kernel: [50597.590000] sd 1:0:0:0: [sda] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
Oct 15 02:00:18 OpenWrt kern.notice kernel: [50597.600000] sd 1:0:0:0: [sda] Write Protect is off
Oct 15 02:00:18 OpenWrt kern.debug kernel: [50597.610000] sd 1:0:0:0: [sda] Mode Sense: 0b 00 00 08
Oct 15 02:00:18 OpenWrt kern.err kernel: [50597.610000] sd 1:0:0:0: [sda] No Caching mode page present
Oct 15 02:00:18 OpenWrt kern.err kernel: [50597.620000] sd 1:0:0:0: [sda] Assuming drive cache: write through
Oct 15 02:00:18 OpenWrt kern.err kernel: [50597.630000] sd 1:0:0:0: [sda] No Caching mode page present
Oct 15 02:00:18 OpenWrt kern.err kernel: [50597.630000] sd 1:0:0:0: [sda] Assuming drive cache: write through
Oct 15 02:00:18 OpenWrt kern.info kernel: [50597.650000]  sda: sda1
Oct 15 02:00:18 OpenWrt kern.err kernel: [50597.660000] sd 1:0:0:0: [sda] No Caching mode page present
Oct 15 02:00:18 OpenWrt kern.err kernel: [50597.660000] sd 1:0:0:0: [sda] Assuming drive cache: write through
Oct 15 02:00:18 OpenWrt kern.notice kernel: [50597.670000] sd 1:0:0:0: [sda] Attached SCSI removable disk
Oct 15 02:00:19 OpenWrt user.notice fstab: mount: mounting /dev/sda1 on /overlay failed: Invalid argument

blkid nadal nic nie zwraca

6

Odp: Problem Extroot nie widać

Wykonaj ręcznie

mkdir -p /tmp/dysk
mount -t ext4 /dev/sda1 /tmp/dysk

i zobacz czy się uda.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Problem Extroot nie widać

Nadal to samo hmm

root@OpenWrt:/# mkdir -p /tmp/dysk
root@OpenWrt:/# mount -t ext4 /dev/sda1 /tmp/dysk
mount: mounting /dev/sda1 on /tmp/dysk failed: Invalid argument

8

Odp: Problem Extroot nie widać

A masz w ogóle na /dev/sda1 system plików ext4?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9 (edytowany przez alossek 2014-10-15 18:50:39)

Odp: Problem Extroot nie widać

ronin napisał/a:

Na routerze zainstalowałem dodatkowo pakiety:
kmod-usb-storage
fdisk
block-mount
kmod-fs-ext4

Próbuj też, za (http://eko.one.pl/?p=openwrt-hdd)

Cezary napisał/a:

kmod-usb-core
kmod-usb2

W zależności od sprzętu może okazać się także zainstalowanie pakietu:
kmod-usb-uhci-iv
kmod-usb-uhci
kmod-usb-ohci

W przypadku niektórych mostków usb<>ide może okazać się koniecznie zainstalowanie także pakietu
kmod-usb-storage-extras

Po instalacji niezbędne będzie wykonanie restartu urządzenia.

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

10

Odp: Problem Extroot nie widać

na mr3020 kmod-usb-uhci-iv? Nie ten system...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: Problem Extroot nie widać

Cezary napisał/a:

na mr3020 kmod-usb-uhci-iv? Nie ten system...

Ok, pewnie racja - ja zacytowałem jak tam było w poradniku (nie znam aż tak dobrze architektur jak Ty).

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

12

Odp: Problem Extroot nie widać

Przepraszam. Moja wina. Wcześniej utworzyłem system plików nie na tym usb wink

Wszystko jest już dobrze.