To whom this may be useful:
my first post about the script.
Thanks for the script, it worked after I fixed these two issues:
- I had my drives named "Test" and "Test2". The script has a problem with this (I think in Format()), because it greps for drive names. And grepping for "Test" finds 2 drives. I was able to fix this by renaming my first drive to "Test1". BTW, this can also fail in the case where the name of one of these drives is included in some other drive name available in the system or matches any output from "diskutil list". An alternative would be "mount", then grepping for the path with some more character from mount's output, e.g. "/Volumes/Test (hfs".
- Copying the files in MakeBootable() didn't work for me, I got permission denied errors. I was able to fix this by adding "sudo" to the copy commands.
For everyone who's interested: I checked the script, it does what it says to do and doesn't send anything back home. At least in this version of the script. The script has the ability to automatically download a newer version of the script and even starts it. Everyone with access to iD0ct0r's Dropbox account could change the script. This is somewhat of a threat, in my opinion, and I would advise everyone to disable this functionality before running it and instead check manually for an updated version.
Still, again thanks for the script.
Yeah, I know about the grep issue, but didn't really know how to fix it, so just put it of to later.
Reading your comment made me think of a solution though!
I'm now listing the drive: "diskutil list Test", instead of all of them: "diskutil list".
I also fixed the permission issues.
Thanks for the feedback!
Also, I'm not going to to anything bad to your computer, it's not like the script needs to be run as root!
I did add a prompt when updating. My logic behind background updates was that the end user probably won't use this much, and doesn't want to be bothered with updates.
And I'm the only one that has access to my Dropbox (if you exclude my family that could get physical access to my computer).
iDoctor, you should really start a topic just for this script. I never heard about a FD script until now. It would be great. (if it really does what it says)
By opening a separate topic, you would be much more visible.
I won't test it, I got my FD working by follow Neil method.
Hope to see some other feedback.
I had started to write the script it's own thread, but just got into some other stuff.
And was waiting for feedback. I'm going to post it soon, so keep your eyes open!
Ive run into a little problem that maybe you can help me with I hope. Here is what Ive done and gotten
sh-3.2# diskutil mount disk0s3
Volume Boot OS X on disk0s3 mounted
sh-3.2# cp boot /Volumes/Boot\ OS\ X/
sh-3.2# cp -R Extra /Volumes/Boot\ OS\ X/
cp: Extra: No such file or directory
When you don't put the "/", the path starts from where you are (by default your home directory). And because you don't have a folder named "Extra" there, it says it doesn't exist.
Since Extra is in the root of your drive: "/", specify "/Extra", that way it knows to go into your "HD root", and then Extra. Not "HD root > Users > bodhi619 > Extra".
So just use:
Code:
cp -R /Extra /Volumes/Boot\ OS\ X/