I'm still trying to understand how fsck is run on the SD card filesystem. I check to make sure what I think is the root file system is jfs:
tcors02:~# df -t jfs
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 1894904 674044 1220860 36% /
OK, so far so good. Then I try to do the jfs equivalent of dumpe2fs:
tcors02:~# jfs_tune -l /
jfs_tune version 1.1.12, 24-Aug-2007
ujfs_rw_diskblocks: read 0 of 4096 bytes at offset 32768
ujfs_rw_diskblocks: read 0 of 4096 bytes at offset 61440
ujfs_rw_diskblocks: read 0 of 2116 bytes at offset 4096
Could not read valid JFS FS or log superblock on device /.
Googling on this error returned nothing. It looks like something might be wrong with the file system, but I can't tell what. I have already run fsck.jfs on the SD card's 4th partition and was told that the file system was clean, so I'm not sure what is happening.
Don
--- In ts-7000%40yahoogroups.com, "Rekcut_Nod" <> wrote:
>
> I boot my TS-7260 from a SD image, and I want to force fsck to run at boot. I put the following entry into my /etc/fstab file (I'm running a Debian lenny distro):
> rootfs / jfs defaults,noatime 0 1
>
> When I look at /var/log/fsck/checkroot I see this:
>
> Log of fsck -C -a -t jfs /lib/init/rw/rootdev
> Fri Sep 9 21:39:43 2011
>
> fsck 1.41.3 (12-Oct-2008)
> fsck.jfs version 1.1.12, 24-Aug-2007
> processing started: 9/9/2011 21.39.43
> The current device is: /lib/init/rw/rootdev
> Block size in bytes: 4096
> Filesystem size in blocks: 475840
> **Phase 0 - Replay Journal Log
> Filesystem is clean.
>
> Fri Sep 9 21:39:44 2011
> ----------------
>
> This makes me concerned that fsck is not actually running on the root file system, since there is a comment in /etc/rcS.d/S10checkroot.sh that says:
>
> # Does the root device in /etc/fstab match with the actual device ?
> # If not we try to use the /dev/root alias device, and if that
> # fails we create a temporary node in /lib/init/rw.
>
> Can someone tell me how to ensure that fsck is actually running on the SD card's root file system?
>
> Don
>