Thread: Help with RAID
View Single Post
 
Old 03-30-2008, 11:02 PM
Ianxxx Ianxxx is offline
Leopard
 
Join Date: Jan 2008
Posts: 645
this is as far as I have got.

diskutil mount /dev/disk0s2

ditto -rsrc /Volumes/MacHD/mach_kernel /Volumes/BOOT/mach_kernel
ditto -rsrc /Volumes/MacHD/System/Library/Extensions.mkext /Volumes/BOOT/System/Library/Extensions.mkext
ditto -rsrc /Volumes/MacHD/Library/Preferences/SystemConfiguration/com.apple.Boot.plist /Volumes/BOOT/Library/Preferences/SystemConfiguration/com.apple.Boot.plist
ditto -rsrc /Volumes/MacHD/System/Library/CoreServices/SystemVersion.plist /Volumes/BOOT/System/Library/CoreServices/SystemVersion.plist

diskutil umount /dev/disk0s2

question is how do I put sudo in to a script to prompt for password, and perhaps even open script from terminal by double clicking with mouse.
Reply With Quote