- Timestamp:
- 08/07/08 16:35:15 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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
