Changeset 2560
- Timestamp:
- 08/07/08 16:35:15 (3 weeks ago)
- Location:
- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts
- Files:
-
- 2 modified
-
PCBSD.FormatDisk.sh (modified) (2 diffs)
-
PCBSD.FormatPartition.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FormatDisk.sh
r2557 r2560 7 7 sysctl kern.geom.debugflags=16 8 8 9 #Get our Device Name 10 device=${1} 11 9 12 # Check if we need to shutdown any journals on this drive 10 13 ls /dev/${1}*.journal >/dev/null 2>/dev/null … … 14 17 for i in `ls ${1}*.journal` 15 18 do 16 gjournal stop ${i} 17 gjournal clear ${i} 19 rawjournal="`echo ${i} | cut -d '.' -f 1`" 20 gjournal stop -f ${rawjournal} 21 gjournal clear ${rawjournal} 18 22 done 19 23 fi 20 24 21 #Get our Device Name22 device=${1}23 25 24 26 #Erase any existing bootloader -
pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FormatPartition.sh
r2559 r2560 10 10 device=${1} 11 11 12 # Get the Slice Number12 # Get the full Slice Number (Example /dev/ad0s1) 13 13 slice=${2} 14 14 15 # Get the device name without the /dev on it 16 rawslice="`echo ${2} | cut -d '/' -f 3`" 15 17 16 18 # Check if we need to shutdown any journals on this partition 17 ls ${ 2}*.journal* >/dev/null 2>/dev/null19 ls ${slice}*.journal* >/dev/null 2>/dev/null 18 20 if [ "$?" = "0" ] 19 21 then 20 22 cd /dev 21 for i in `ls ${ 2}*.journal*`23 for i in `ls ${rawslice}*.journal` 22 24 do 23 gjournal stop ${i} 24 gjournal clear ${i} 25 # Get rid of the .journal extension now 26 rawjournal="`echo ${i} | cut -d '.' -f 1`" 27 gjournal stop -f ${rawjournal} 28 gjournal clear ${rawjournal} 25 29 done 26 30 fi
