1

Temat: Problem z usb

Witam,
W przedświąteczny piątek przestały mi się aktualizować pomiary z mojej stacji pogodowej, wczoraj na to spojrzałem i widzę, że jest chyba jakiś problem z dyskiem usb. Generalnie korzystam z mr3220 v1 z zainstalowanym openwrt. Mam tam extroota no i extroot się nie montuje. Dodatkowo na usb miałem też partycje na dane i swap i ich tez nie mogę zamontować. Ma ktoś pomysł czy to można przywrócić do życia czy też czeka mnie format?
Przy próbie montowania:
mount -t ext4 /dev/sda2 /mnt/sda2
dostaję komunikat: Invalid parameter

fdisk (listing poniżej) daje jakieś mtdblock0

Pod windowsem udało mi sie odczytać pierwszą partycję (/dev/sda1) za pomocą tego oprogramowania Ext2Fsd. Pod debianem nie udało mi się zamontować tej pamięci. Nie udało mi się też zapuścić e2fsck pod openwrt.

Ma ktoś pomysł czy to można przywrócić do życia czy też czeka mnie format?

Pozdr, tomek

Zrzut z logu:
Apr 22 01:18:05 OpenWrt kern.err kernel: [  140.570000] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
Apr 22 01:18:05 OpenWrt kern.err kernel: [  140.580000] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities
Apr 22 01:18:05 OpenWrt kern.info kernel: [  140.590000] EXT4-fs (sda2): INFO: recovery required on readonly filesystem
Apr 22 01:18:05 OpenWrt kern.err kernel: [  140.600000] EXT4-fs (sda2): write access unavailable, cannot proceed
Apr 22 01:18:12 OpenWrt kern.err kernel: [  147.350000] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
Apr 22 01:18:12 OpenWrt kern.err kernel: [  147.360000] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities
Apr 22 01:18:12 OpenWrt kern.info kernel: [  147.370000] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
Apr 22 01:18:12 OpenWrt kern.err kernel: [  147.380000] EXT4-fs (sda1): write access unavailable, cannot proceed
Apr 22 01:18:29 OpenWrt kern.info kernel: [  164.310000] usb 1-1.1: USB disconnect, device number 3
Apr 22 01:24:06 OpenWrt kern.info kernel: [  502.050000] usb 1-1.1: new high-speed USB device number 5 using ehci-platform
Apr 22 01:24:07 OpenWrt kern.info kernel: [  502.180000] scsi1 : usb-storage 1-1.1:1.0
Apr 22 01:24:08 OpenWrt kern.notice kernel: [  503.270000] scsi 1:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 4
Apr 22 01:24:09 OpenWrt kern.notice kernel: [  504.960000] sd 1:0:0:0: [sda] 7579008 512-byte logical blocks: (3.88 GB/3.61 GiB)
Apr 22 01:24:09 OpenWrt kern.notice kernel: [  504.970000] sd 1:0:0:0: [sda] Write Protect is on
Apr 22 01:24:09 OpenWrt kern.debug kernel: [  504.980000] sd 1:0:0:0: [sda] Mode Sense: 23 00 80 00
Apr 22 01:24:09 OpenWrt kern.err kernel: [  504.980000] sd 1:0:0:0: [sda] No Caching mode page present
Apr 22 01:24:09 OpenWrt kern.err kernel: [  504.980000] sd 1:0:0:0: [sda] Assuming drive cache: write through
Apr 22 01:24:09 OpenWrt kern.err kernel: [  504.990000] sd 1:0:0:0: [sda] No Caching mode page present
Apr 22 01:24:09 OpenWrt kern.err kernel: [  505.000000] sd 1:0:0:0: [sda] Assuming drive cache: write through
Apr 22 01:24:09 OpenWrt kern.info kernel: [  505.030000]  sda: sda1 sda2 sda3
Apr 22 01:24:09 OpenWrt kern.err kernel: [  505.050000] sd 1:0:0:0: [sda] No Caching mode page present
Apr 22 01:24:09 OpenWrt kern.err kernel: [  505.050000] sd 1:0:0:0: [sda] Assuming drive cache: write through
Apr 22 01:24:09 OpenWrt kern.notice kernel: [  505.060000] sd 1:0:0:0: [sda] Attached SCSI removable disk
Apr 22 01:24:10 OpenWrt kern.info kernel: [  505.730000] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
Apr 22 01:24:10 OpenWrt user.notice fstab: mount: mounting /dev/sda1 on /overlay failed: Invalid argument
Apr 22 01:24:10 OpenWrt kern.err kernel: [  505.740000] EXT4-fs (sda1): write access unavailable, cannot proceed
Apr 22 01:24:11 OpenWrt kern.err kernel: [  506.240000] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
Apr 22 01:24:11 OpenWrt kern.err kernel: [  506.260000] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities
Apr 22 01:24:11 OpenWrt kern.info kernel: [  506.270000] EXT4-fs (sda2): INFO: recovery required on readonly filesystem
Apr 22 01:24:11 OpenWrt kern.err kernel: [  506.280000] EXT4-fs (sda2): write access unavailable, cannot proceed
Apr 22 01:24:11 OpenWrt user.notice fstab: mount: mounting /dev/sda2 on /mnt/sda2 failed: Invalid argument
Apr 22 01:24:11 OpenWrt user.notice fstab: mount: mounting /dev/sda3 on /mnt/sda3 failed: Invalid argument
Apr 22 01:24:18 OpenWrt kern.info kernel: [  513.910000] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
Apr 22 01:24:18 OpenWrt kern.err kernel: [  513.920000] EXT4-fs (sda1): write access unavailable, cannot proceed
Apr 22 01:25:16 OpenWrt kern.info kernel: [  572.010000] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
Apr 22 01:25:16 OpenWrt kern.err kernel: [  572.010000] EXT4-fs (sda1): write access unavailable, cannot proceed


root@OpenWrt:~# blkid
/dev/mtdblock2: TYPE="squashfs"
/dev/sda1: UUID="704fee34-42e3-445e-9991-af416ec6076c" TYPE="ext4"
/dev/sda2: UUID="d67dc703-869a-4b61-a098-da62032811c2" TYPE="ext4"
/dev/sda3: UUID="cd017f1c-f3e7-47d5-aa91-b18190ff8072" TYPE="swap"

root@OpenWrt:~# fdisk -l

Disk /dev/mtdblock0: 0 MB, 131072 bytes
255 heads, 63 sectors/track, 0 cylinders, total 256 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock1: 0 MB, 972800 bytes
255 heads, 63 sectors/track, 0 cylinders, total 1900 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock2: 3 MB, 3024896 bytes
255 heads, 63 sectors/track, 0 cylinders, total 5908 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock3: 0 MB, 655360 bytes
255 heads, 63 sectors/track, 0 cylinders, total 1280 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock4: 0 MB, 65536 bytes
255 heads, 63 sectors/track, 0 cylinders, total 128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock5: 3 MB, 3997696 bytes
255 heads, 63 sectors/track, 0 cylinders, total 7808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 3880 MB, 3880452096 bytes
120 heads, 62 sectors/track, 1018 cylinders, total 7579008 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7d2f90da

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     2099199     1048576   83  Linux
/dev/sda2         2099200     7299999     2600400   83  Linux
/dev/sda3         7300000     7579007      139504   82  Linux swap / Solaris

2

Odp: Problem z usb

fsck na nim zrób bo chyba coś się z systemem plików dzieje.

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

3

Odp: Problem z usb

Próbowałem ale bez efektu:

root@OpenWrt:~# e2fsck -fvn /dev/sda1
e2fsck 1.42.4 (12-June-2012)
Warning: skipping journal recovery because doing a read-only filesystem check.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (243402, counted=243340).
Fix? no


    1399 inodes used (2.13%)
      11 non-contiguous files (0.8%)
       1 non-contiguous directory (0.1%)
         # of inodes with ind/dind/tind blocks: 0/0/0
         Extent depth histogram: 1368
   18742 blocks used (7.15%)
       0 bad blocks
       1 large file

    1263 regular files
     104 directories
       0 character device files
       0 block device files
       0 fifos
       0 links
      23 symbolic links (23 fast symbolic links)
       0 sockets
--------
    1390 files
root@OpenWrt:~# e2fsck -fvn /dev/sda2
e2fsck 1.42.4 (12-June-2012)
Warning: skipping journal recovery because doing a read-only filesystem check.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

     291 inodes used (0.18%)
       1 non-contiguous file (0.3%)
       0 non-contiguous directories (0.0%)
         # of inodes with ind/dind/tind blocks: 0/0/0
         Extent depth histogram: 283
   28884 blocks used (4.44%)
       0 bad blocks
       1 large file

     226 regular files
      56 directories
       0 character device files
       0 block device files
       0 fifos
       0 links
       0 symbolic links (0 fast symbolic links)
       0 sockets
--------
     282 files

4

Odp: Problem z usb

Ale czemu nie naprawiasz? e2fsck -y /dev/sda1 normalnie rób.

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

5 (edytowany przez build000 2014-04-22 10:13:37)

Odp: Problem z usb

A najlepiej w tym przypadku by jeszcze wszystko widzieć i sprawdzić również wolną przestrzeń, jak i przestrzeń danych:

e2fsck -fcvy <coś tam>

6

Odp: Problem z usb

Podrzucę wieczorem, bo teraz nie mam dostępu. Na tym usb miejsce raczej na pewno było bo na extroot'a dałem 1GB, na dysk prawie 3GB a niewiele tam wrzucałem, na dysk chyba nawet nic.

7

Odp: Problem z usb

Cezary napisał/a:

Ale czemu nie naprawiasz? e2fsck -y /dev/sda1 normalnie rób.

Takie małe OT. Tym poleceniem mogę utracić pliki bądź część plików?

8

Odp: Problem z usb

Oczywiście. To coś naprawia system plików, ale nie jest cudotwórcą i nie odbuduje wszystkiego co jest uszkodzone w plikach. Szczególnie jak się inody zgubiły lub nałożyły i nie wiadomo co jest czym.

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

9

Odp: Problem z usb

Nie idzie:

root@OpenWrt:~# e2fsck -y /dev/sda1
e2fsck 1.42.4 (12-June-2012)
e2fsck: Read-only file system while trying to open /dev/sda1
Disk write-protected; use the -n option to do a read-only check of the device.

root@OpenWrt:~# e2fsck -n /dev/sda1
e2fsck 1.42.4 (12-June-2012)
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/sda1: clean, 1399/65536 files, 18742/262144 blocks

10

Odp: Problem z usb

Masz system plików tylko do odczytu. Odłącz go i podłącz jeszcze raz.

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

11

Odp: Problem z usb

Nie wiem jak to zrobić, umount nie działa, wyjęcie i włożenie usb też nie przynosi efektu:

root@OpenWrt:~# umount /dev/sda1
umount: can't umount /dev/sda1: Invalid argument

12

Odp: Problem z usb

Umount nie zrobisz jak nie jest zamontowany. I nie może, bo do fsck nie może być.

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

13

Odp: Problem z usb

To w jaki sposób mam odłączyć ten system plików?

14

Odp: Problem z usb

Wyjmij pendrive, włóż znowu. Jeżeli się zamontował to go odmontuj i dopiero sprawdź.

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

15

Odp: Problem z usb

To też nie działa

16

Odp: Problem z usb

To Ci porządnie poleciał ten system plików smile. Kombinuj, jak się nie uda go sprawdzić to po prostu zrób extroota ponownie.

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

17

Odp: Problem z usb

No to wygląda, że pamięć usb zdechła. Nie jeste w stanie nic z tym zrobić, żaden format czy partycjonowanie nie idzie, pojawia się zawsze komunikat, że urządzenie jest write protected. Pod windowsem też nic nie udało się ruszyć. Tak więc kostka idzie w piach, pociągneła z miesiąc czyli słabo.
Pozdr

18

Odp: Problem z usb

A nie masz przełącznika do protekcji zapisu? Na niektórych jeszcze jest taki...

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

19

Odp: Problem z usb

PS. Zdejmij z niego partycje. Odłącz, podłącz, załóż ponownie i zobacz.

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

20

Odp: Problem z usb

Niestety nie pozwala usunąć partycji, próbowałem wczoraj. po odpaleniu fdiska, usunięciu partycji i próbie zapisu wywala błąd że nie może zapisać. Po wyjęciu i włożeniu zero efektu.

Sam dzisiaj oglądałem to usb czy przypadkiem nie ma tam jakiegoś magicznego przełącznika. Ale nic z tych rzeczy, to tani układ, 4GB, za 30 zeta, wielkości 50 groszówki, idealny do routera bo prawie go nie widać.

21

Odp: Problem z usb

Najczęściej ponoć w pendrive'ach padają rezonatory.
Próbowałeś całkiem wyczyścić ten dysk (polecenie "clean") przy pomocy diskpart pod Win?

22

Odp: Problem z usb

Tyle że jeżeli to jest ten mały zalany cudak to nie masz jak się do niego dobrać wink

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

23

Odp: Problem z usb

Tak, próbowałem diskpartem, też się poddał.

No i ja też się poddałem, mam jakieś 2GB z promocji wiec ten włożę, chociaż też chyba jest wątpliwej jakości. W drugim routerze mam taką fajną pamięc 8GB, chodzi już ze 2 lata i zero problemów.