Re: ext2 fs not properly updated upon dismount.

Michael L. Galbraith (mikeg@weiden.de)
Tue, 16 Jun 1998 20:14:51 +0200 (MET DST)


On Tue, 16 Jun 1998, Richard B. Johnson wrote:

>
> Yesterday I posted the observation that consistantly, a root file-system
> needs some repair upon startup even though fsck normally checks to see
> if it was dismounted properly and doesn't not normally check the whole
> drive unless there was an umproper dismount or the mount-count has
> expired.
>
> Booting any three of my systems with init=bin/bash and running fsck
> manually always finds something wrong that has to be repaired.
>
> Here is an update. It might point to the problem. If I don't set up
> a swap drive, the problem doesn't occur. My swap partition is /dev/sdc2,
> not shared with anything, while my root file-system is /dev/sdc1.
>
> The swap partition is 132 megabytes.
>
> Script started on Tue Jun 16 08:27:17 1998
> # fdisk /dev/sdc
>
> Command (m for help): p
>
> Disk /dev/sdc: 255 heads, 63 sectors, 553 cylinders
> Units = cylinders of 16065 * 512 bytes
>
> Device Boot Begin Start End Blocks Id System
> /dev/sdc1 * 1 1 255 2048256 83 Linux native
> /dev/sdc2 256 256 288 265072+ 83 Linux native
> /dev/sdc3 289 289 553 2128612+ 83 Linux native
>

Hi Richard,

I just wonder why you have 512 byte block=phys-sector-size.. I've never
had this since day one.

Command (m for help): p

Disk /dev/sdb: 64 heads, 32 sectors, 2014 cylinders
Units = cylinders of 2048 * 512 bytes

Device Boot Begin Start End Blocks Id System
/dev/sdb1 1 1 70 71664 83 Linux native
/dev/sdb2 71 71 100 30720 83 Linux native
/dev/sdb3 101 101 1886 1828864 83 Linux native
/dev/sdb4 1024 1887 2014 131072 82 Linux swap

The partition type is wrong, but in my experience, it just doesn't
matter one whit what you call it. Since day one, 131072 has meant 128Mb
on the dot here. Is this because of the (damned) extended translation?

-Mike

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu