On Mon, Mar 24, 2014 at 11:37:35AM +0400, Vyacheslav Dubeyko wrote: > Hi Piotr, > > On Mon, 2014-03-24 at 08:13 +0100, Piotr Szymaniak wrote: > > Hello, > > > > I'm running nilfs2 on Raspberry Pi and some time ago it got some > > problem. > > > > Connected the SD card to my PC today and mounted the fs, the cleaner > > started and few minutes later it remounted the fs readonly. Here's the > > dmesg part: > > > > [ 1109.889697] mmcblk0: mmc0:b368 SMI 7.51 GiB > > [ 1109.891261] mmcblk0: p1 p2 p3 > > [ 1129.467450] NILFS warning: mounting unchecked fs > > [ 1129.956859] NILFS: recovery complete. > > [ 1129.960064] segctord starting. Construction interval = 300 seconds, CP frequency < 30 seconds > > [ 1129.979344] NILFS warning: mounting fs with errors > > [ 1283.005874] attempt to access beyond end of device > > [ 1283.005882] mmcblk0p3: rw=8192, want=145241775180196072, limit=15120384 > > I see that it was requested 8 KB block. How did you create file system? That was some time ago, so I'm unable to answer this question. But nilfs-tune shows 4KB blocks: ~ # nilfs-tune -l /dev/sdf3 nilfs-tune 2.1.6 Filesystem volume name: (none) Filesystem UUID: 53760664-f9ed-4c8d-af42-c6ee2f16d956 Filesystem magic number: 0x3434 Filesystem revision #: 2.0 Filesystem features: (none) Filesystem state: invalid or mounted,error Filesystem OS type: Linux Block size: 4096 Filesystem created: Fri Aug 3 08:37:06 2012 Last mount time: Mon Mar 24 07:55:53 2014 Last write time: Mon Mar 24 07:58:04 2014 Mount count: 100 Maximum mount count: 50 Reserve blocks uid: 0 (user root) Reserve blocks gid: 0 (group root) First inode: 11 Inode size: 128 DAT entry size: 32 Checkpoint size: 192 Segment usage size: 16 Number of segments: 922 Device size: 7741636608 First data block: 1 # of blocks per segment: 2048 Reserved segments %: 5 Last checkpoint #: 770589 Last block address: 595617 Last sequence #: 41763 Free blocks count: 395264 Commit interval: 300 # of blks to create seg: 0 CRC seed: 0x3e0bea06 CRC check sum: 0x2596b671 CRC check data size: 0x00000118 > Could you share the superblock content? If my calculations are correct (it's the second superblock, right?), it should be: dd if=/dev/nilfs of=dump bs=Block size skip=Device size / Block size - 1 count=1 Attached this one. > > Should I check the card in the first place? > > > > Currently, I suspect that you have bad SD card. But, maybe, you have > something different. Maybe I will check it. Piotr Szymaniak. -- (...) wszystko to sprawilo, iz przekroczyl owa umowna granice, ktora jego przyjaciel, prawnik Dan Tabares, nazywal linia MTWD. Gdy raz juz przekroczyles linie MTWD cokolwiek by sie zdarzylo, ty po prostu Masz To W Dupie. -- Graham Masterton, "The Burning"
Attachment:
dump.1890048.gz
Description: Binary data
Attachment:
signature.asc
Description: Digital signature