[PC-BSD Commits] r2502 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Thu Jul 31 06:42:43 PDT 2008


Author: kris
Date: 2008-07-31 06:42:42 -0700 (Thu, 31 Jul 2008)
New Revision: 2502

Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.NewFS.sh
Log:

Address some more bugs with UFS-J, should work when converting a NTFS or 
FAT32 partition directly to it now. 



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.NewFS.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.NewFS.sh	2008-07-31 13:41:40 UTC (rev 2501)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.NewFS.sh	2008-07-31 13:42:42 UTC (rev 2502)
@@ -26,11 +26,17 @@
   for DevName in `ls -1 ${1}[a,d-h]`
   do
     echo "Running Newfs on ${DevName}"
+
+    # First format the partition with UFS2
+    newfs ${DevName} >/dev/null 2>/dev/null
+    sleep 4
+
+    # Next create the journaling FS
     gjournal label -f ${DevName}
     newfs -O 2 -J ${DevName}.journal >/dev/null 2>/dev/null
 
     # Sleep a few seconds to init the journal before we mount it
-    sleep 3
+    sleep 4
   done
   exit 0
 fi



More information about the Commits mailing list