/proc/mounts may have more than one entry for /. Use the last one. Index: libfs/fssubs.c =================================================================== RCS file: /cvsroot/jfs/jfsutils/libfs/fssubs.c,v retrieving revision 1.21 diff -u -p -r1.21 fssubs.c --- libfs/fssubs.c 17 Sep 2005 04:55:21 -0000 1.21 +++ libfs/fssubs.c 18 Oct 2005 13:15:53 -0000 @@ -113,10 +113,16 @@ int Is_Device_Mounted(char *Device_Name) /* Attempt to find specified device name in mount records */ while ((Mount_Data = getmntent(Mount_Records)) != NULL) { - /* save root file system type for later, if needed */ - if ((strcmp(ROOT_DIR, Mount_Data->mnt_dir) == 0) && - (strcmp("jfs", Mount_Data->mnt_type) != 0)) - root_not_jfs = 1; + /* + * There may be more than one entry for /. Trust the + * latest one + */ + if (strcmp(ROOT_DIR, Mount_Data->mnt_dir) == 0) { + if (strcmp("jfs", Mount_Data->mnt_type) == 0) + root_not_jfs = 0; + else + root_not_jfs = 1; + } if (strcmp(Device_Name, Mount_Data->mnt_fsname) == 0) break; }