1 (edytowany przez tomeusz 2010-10-05 13:10:56)

Temat: Asus po restarcie nie montuje hdd

Witam,
Przeinstalowalem w moim asusie wl-500gpv1 firmware na backfire 10.3.1. Nie moge teraz podpiąc katalogu /hdd na dysku.
Gdy wpisze
mount -t ext3 /dev/scsi/host0/bus0/target0/lun0/part2 /hdd
to jest ok, ale po restarcie routera juz nie ma podczepionego hdd. co robie zle?

zawartosc   /etc/config/fstab


config 'mount'
        option 'enabled' '1'
        option 'device' '/dev/scsi/host0/bus0/target0/lun0/part2'
        option 'target' '/hdd'
        option 'fstype' 'ext3'
        option 'options' 'rw,noatime'

config 'swap'
        option 'enabled' '1'
        option 'device' '/dev/scsi/host0/bus0/target0/lun0/part1'

tak mialem ustawione w kamikaze 8.09 i wszystko dzialalo.

Pozatym nie wiem czemu nie moge zainstalowac e2fsprogs zeby sprawdzic system plikow.
wywala mi cos takiego:

root@OpenWrt:~# opkg install e2fsprogs
Installing e2fsprogs (1.41.11-1) to root...
Downloading http://downloads.openwrt.org/backfire/1 … m-2.4.ipk.
Installing libblkid (1.41.11-1) to root...
Downloading http://downloads.openwrt.org/backfire/1 … m-2.4.ipk.
Installing libuuid (1.41.11-1) to root...
Downloading http://downloads.openwrt.org/backfire/1 … m-2.4.ipk.
Installing libext2fs (1.41.11-1) to root...
Downloading http://downloads.openwrt.org/backfire/1 … m-2.4.ipk.
Installing libpthread (0.9.30.1-43.3) to root...
Downloading http://downloads.openwrt.org/backfire/1 … m-2.4.ipk.
Configuring libblkid.
Configuring libuuid.
Configuring libext2fs.
Collected errors:
* opkg_install_pkg: Package libpthread md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
* opkg_install_cmd: Cannot install package e2fsprogs.
root@OpenWrt:~#

2

Odp: Asus po restarcie nie montuje hdd

Bo jest błąd w indeksie pakietów w repozytorium. I developerzy nie poprawiają tego już od jakiegoś czasu.

Nie wykonuj opkg update, zainstaluj ręcznie pakiet (opkg install http://downloads.openwrt.org/backfire/1 … m-2.4.ipk)

Po /etc/config/fstab start montuje Ci nośnik?

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

3 (edytowany przez tomeusz 2010-10-05 15:47:51)

Odp: Asus po restarcie nie montuje hdd

Po recznej instalacji pakietu wywala mi teraz cus takiego

root@OpenWrt:~# opkg install http://downloads.openwrt.org/backfire/1 … cm-2.4.ipk
Downloading http://downloads.openwrt.org/backfire/1 … m-2.4.ipk.
Installing libpthread (0.9.30.1-43.3) to root...
Installing librt (0.9.30.1-43.3) to root...
Collected errors:
* opkg_download_pkg: Package librt is not available from any configured src.
* opkg_install_pkg: Failed to download librt. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package libpthread.
root@OpenWrt:~#



Cezary napisał/a:

Po /etc/config/fstab start montuje Ci nośnik?

nie wiem czy dobrze zrozumialem (prosze sie nie smiac) :-),
wykonanie polecenia zwraca cos takiego:

root@OpenWrt:~# /etc/config/fstab start
-ash: /etc/config/fstab: Permission denied
root@OpenWrt:~#

Moze to cos wyjasni

root@OpenWrt:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 1728      1728         0 100% /rom
tmpfs                    15264        52     15212   0% /tmp
/dev/mtdblock/4           5632      1012      4620  18% /overlay
mini_fo:/overlay          1728      1728         0 100% /

wpisuje to

root@OpenWrt:~# mount -t ext3 /dev/scsi/host0/bus0/target0/lun0/part2 /hdd

i wychodzi to

root@OpenWrt:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 1728      1728         0 100% /rom
tmpfs                    15264        52     15212   0% /tmp
/dev/mtdblock/4           5632      1012      4620  18% /overlay
mini_fo:/overlay          1728      1728         0 100% /
/dev/scsi/host0/bus0/target0/lun0/part2
                     105570656  27623042  72175862  28% /hdd
root@OpenWrt:~#

ale po restarcie znowu jest to

root@OpenWrt:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 1728      1728         0 100% /rom
tmpfs                    15264        52     15212   0% /tmp
/dev/mtdblock/4           5632      1012      4620  18% /overlay
mini_fo:/overlay          1728      1728         0 100% /

4

Odp: Asus po restarcie nie montuje hdd

1. Zainstaluj jeszcze librt ręcznie
2. /etc/init.d/fstab start oczywiście, moja pomyłka.

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

5

Odp: Asus po restarcie nie montuje hdd

Ad.1 nie wiem czy dobrze robie, ale znowu cos nie tak

root@OpenWrt:~# opkg install http://downloads.openwrt.org/backfire/1 … cm-2.4.ipk
Downloading http://downloads.openwrt.org/backfire/1 … m-2.4.ipk.
Installing librt (0.9.30.1-43.3) to root...
Collected errors:
* opkg_install_pkg: Package librt md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
* opkg_install_cmd: Cannot install package librt.
root@OpenWrt:~#

Ad.2 zrobilem tak

root@OpenWrt:~# /etc/init.d/fstab start
root@OpenWrt:~# /etc/init.d/fstab enable

i wyglada na to, ze juz jest ok. Po reboocie juz zapina hdd

root@OpenWrt:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 1728      1728         0 100% /rom
tmpfs                    15264        60     15204   0% /tmp
/dev/mtdblock/4           5632      1040      4592  18% /overlay
mini_fo:/overlay          1728      1728         0 100% /
/dev/scsi/host0/bus0/target0/lun0/part2
                     105570656  27623042  72175862  28% /hdd
root@OpenWrt:~# free
              total         used         free       shared      buffers
  Mem:        30532        15228        15304            0         1844
Swap:      1783172            0      1783172
Total:      1813704        15228      1798476

Nie wiem czy ten Swap trzeba jeszcze jakos aktywowac? Czy pokazuje used 0 bo system z niego nie korzysta w tej chwili ?
Rozumiem, ze tego patentu ze 'Sleep 10' w backfire nie trzeba stosowac skoro montuje dysk?

6

Odp: Asus po restarcie nie montuje hdd

1. nie rób opkg update wczesniej...
2. no właśnie. Swap w ten chwili nie jest wykorzystywany, będzie jak system będzie miał taką potrzebę (ps- to nie jest cudowne rozszerzenie wielkości ramu). Sleep już nie musisz.

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