Re: root-nfs hang and error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> On Mon, 2 Sep 2002 16:43:55 -0400 (EDT), George Gensure <werkt@csh.rit.edu> said:
werkt> When trying to mount an nfs to install to, I end up with about
werkt> a 5 minute hang (afterwards, though, all file transfer is
werkt> seamless).

It seems the mount is waiting for lockd.  On diskless install,
dbootstrap try to mount nfs partition without "nolock" option.  For
workaround, you can do "Execute a Shell" and type

 # mount -o nolock server:/path /target

instead of "Mount a Previously-Initialized Partition" on diskless
install.

Isn't this a bug of dbootstrap ?  Here is a patch.

diff -u boot-floppies.org/utilities/dbootstrap/partition_config.c boot-floppies/utilities/dbootstrap/partition_config.c
--- boot-floppies.org/utilities/dbootstrap/partition_config.c	Mon Sep  2 15:33:34 2002
+++ boot-floppies/utilities/dbootstrap/partition_config.c	Mon Sep  2 19:34:02 2002
@@ -862,6 +862,13 @@
     if(strcmp(type,"msdos")==0 && !is_filesystem_supported("vfat"))
        type="vfat";
     INFOMSG("Mounting %s partition %s on %s", type, partition->name, real_mount_point);
+#ifdef NFSROOT
+    if (!strncmp(type, "nfs", 4))
+      snprintf(prtbuf, sizeof(prtbuf),
+	       "mount -t nfs -o nolock,rsize=8192,wsize=8192 %s %s",
+	       partition->name, real_mount_point);
+    else
+#endif
     snprintf(prtbuf, sizeof(prtbuf), "mount -t %s %s %s", type, partition->name, real_mount_point);
     status = execlog(prtbuf, LOG_INFO);
   }
--- ---

---
Atsushi Nemoto


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux