diff --git a/dasdfmt/dasdfmt.c b/dasdfmt/dasdfmt.c index 29606a6b..0fcf2a0f 100644 --- a/dasdfmt/dasdfmt.c +++ b/dasdfmt/dasdfmt.c @@ -1566,6 +1566,8 @@ int main(int argc, char *argv[]) g.ese = dasd_sys_ese(g.dev_node); eval_format_mode(); + check_disk(); + /* Either let the user specify the blksize or get it from the kernel */ if (!g.blksize_specified) { if (!(mode == FULL || @@ -1587,8 +1589,6 @@ int main(int argc, char *argv[]) error("VOLSER not found on device %s", g.dev_path); } - check_disk(); - if (check_param(str, ERR_LENGTH, &format_params) < 0) error("%s", str);