There are roughly 14 distinct heritable autosomal dominant diseases associated with mutations in lamins A/C, including Emery-Dreifuss muscular dystrophy (EDMD). The mechanical model proposes that the lamin mutations change the mechanical properties of muscle nuclei, leading to cell death and tissue deterioration. Here, we developed an experimental protocol that analyzes the effect of disease-linked lamin mutations on the response of nuclei to mechanical strain in living Caenorhabditis elegans We found that the EDMD mutation L535P disrupts the nuclear mechanical response specifically in muscle nuclei. Inhibiting lamin prenylation rescued the mechanical response of the EDMD nuclei, reversed the muscle phenotypes and led to normal motility. The LINC complex and emerin were also required to regulate the mechanical response of C. elegans nuclei. This study provides evidence to support the mechanical model and offers a potential future therapeutic approach towards curing EDMD.