Archive

Archive for the ‘Random Stuff’ Category

Windows 7 is naughty

February 13th, 2010

Today I set out to see if Windows 7 would run MS Flight Simulator X any better than Windows XP did. I found that Windows XP on my Mac Pro (Dual Xeon with 10GB of ram) ran very sluggish. Partly because Windows XP (32-Bit) would only recognize about 3.5 Gig of the 10GB of ram that was installed in the machine. So since I recently got a Technet subscription (I seem to have to do a little more Windows stuff now at work, so thought I might as well learn what I have to manage) I downloaded the Windows Ultimate 7 to see how it would perform before going out and buying it. So I did a Time Machine backup of my data on my Mac Pro and then inserted in the Windows 7 disc and hit the “go”. It took a couple of hours to do the install, patch it, update boot camp stuff and install Flight Simulator. Once it was installed I was impressed that it actually performed much better than it did on Windows XP. I could actually turn the graphics stuff up on it and almost run it at 1900×1200 with out any jerking around. I then did a couple of flights and then it was time to boot back in to MacOS to get some real work done. This is when I about lost it..

See when I booted windows 7 it had found the other 3 data drives that were all HFS+ drives in my Mac. It decided to assign a drive letter to them all. I went in and un did that as I did not want Windows to touch those drives. I thought all was well, until I booted in to MacOS. When I logged in, it told me that the drives could not be read, and it couldn’t find my home directory (which was one of those drives). I was PISSED! So the first thing I did was pop up the disk utility and this is what I saw (minus the 2 1TB seagate drives):

What pissed me off was that every partition I clicked on, it said it was an MS-DOS partition. Surely Windows didn’t screw around and format all my drives.. I was at a loss, all my data was on there, 20,000+ pictures, all the video I was working on, everything… So I decided to see what I could see from the command line. So off to the command line, and I ran the “diskutil list” command and saw this:

Yup, Micro$oft had screwed with my partitions.. So I was hoping that maybe it just changed the partition type and my data was still there. So I poked around to see if there was a way to change the partition type. In the gui tool, the only way to do it is to “format” it over, which meant I would loose everthing, and I didn’t have any backups, as the disk2 in there was my Time Machine backup drive. So thinking to my Solaris side, I knew there was a program called “fstyp” that would tell you what a particular disk slice was formated as. So I gave it a shot and MacOS has that program:

So I ran the fstyp util againest one of the slices, and it came back saying it was HFS… Hot diggity dog.. Maybe my data is still all there.. So I did a mount on it as readonly and it worked. I could see all the data on the drive. So I immediatly started copying data from the drive to an external USB drive (the first 1TB seagate drive in the picture above). But the problem now was, I had 3 x 500GB harddrives of information. The 1TB drive only had about 400GB free. So off to Best Buy and I picked up a Seagate 1TB Firewire drive. Brought it home and mounted up the other partitions and started copying the data. It has been going on for about 2 hours or more now on the copy. I will say that the Seagate Firewire 800 drive is spanking the ass off of the Seagate USB drive.

Once I have backed up all the data.. (Hint use the ditto command) I will see if there is a way to change the partition type with out reformatting the drive. If there isn’t then I will have to reformat and then ditto the data back on to the Internal drives..

Hopefully this will help some one else if they get the same problem, and it (MacOS) tells you “you must initialize the drive”. DONT. Tell it to cancel and then you can save your data.. If you initialize it, you may end up loosing all your data.

—Update

As I waited for the data to finish copying I decided to test some stuff on my time machine drive. I read a bunch on the GUID labels that are on the disks. Using the gpt command i did a listing of the GUID info for the drive. Using that information I deleted the index 2 and added a new one with the Apple HFS GUID label:

gpt -r show /dev/disk2
gpt remove -i 2 /dev/disk2
gpt add -b 409640 -s 976101344 -i 2 -t "48465300-0000-11AA-AA11-00306543ECAC" /dev/disk2

In the above, you can see I removed index 2. As soon as I did that, this window popped up:

I just selected ignore on it. Then went on to put in the new GUID label which was the third command in the shot above. The numbers (409640, and 976101344) are taken from the line that has index 2 on it above. You MUST use the exact same numbers, otherwise you are going to change the partition size and may corrupt your data. The value after the -t is the GUID value for MacOS HFS (HFS+), which I found on http://en.wikipedia.org/wiki/GUID_Partition_Table, you can also see that the one that was listed before I removed it was a Windows Basic Data Partition.

As soon as I hit enter on the gpt command to add it in, the gui disk utility immediately changed and now showed me my data was there. It also mounted the disk like nothing had happened.

I am going to wait till the copying is done and then do the other two drives and then I should be back to where I was before I installed Windows 7.

More info on the Apple GPT is at : http://developer.apple.com/mac/library/technotes/tn2006/tn2166.html

Apple, Interesting, M$ Winders, MacOSX, Random Stuff, Rant, tips , , , , , ,

Seeing Red – RIP Sun

January 28th, 2010
Comments Off

Not sure how I feel now that Sun is no longer Sun. Kinda weird watching the Oracle web cast of their purchase of Sun and what is going to happen. One thing I can’t understand is they are all wearing badges saying “We’re Hiring!”. But yet they let go SO many good Sun employees. I just don’t think it is going to be the same old Sun that I have used since 1994.

RIP Sun 1982 – 2010

From http://blogs.sun.com/jag/

Random Stuff, Solaris, Sun , ,

UHF antenna irony

December 30th, 2009
Comments Off

Why is it that every-time I make a new UHF antenna to see if it works, we have a good tropo DX available? Tonight I tried to make a UHF yagi antenna specifically for UHF51 (WTAE TV 4) since it is usually the one that had the most signal, even though I could not get it all the time. So I spent about an hour making the make-shift antenna, hooked it up to the amp and the converter box and instantly had about 75% signal strength on it in my dining room. I thought wow that is awesome. So I went and grabbed the little Radio Shack Yagi that I had (rated for about 40miles) and plugged it in, damn it, it works too for just that one channel. So the test will be tomorrow when the tropo effect goes away if my home-made one still works or not. If it does, I might try modifying it to get some of the other channels.

The yagi was made using calculations on this site: http://www.k7mem.com/Electronic_Notebook/antennas/yagi_vhf.html. Since I was making a “tuned” antenna, it was basically only for one frequency. To find the frequency, I used http://www.csgnetwork.com/tvfreqtable.html and used the bottom number for the channel (i.e. 692MHz for Channel 51).

Also to see when DX’ing might be good check out http://www.dxinfocentre.com/tropo.html

Random Stuff , , , , ,

Another Internet Explorer exploit

November 22nd, 2009
Comments Off

Just released, another exploit to Internet Explorer 6 & 7, that allows “hackers” to install software on your machine… What do the major Antivirus people say:

“To minimize the chances of being affected by this issue, Internet Explorer users should ensure their antivirus definitions are up to date, disable JavaScript and only visit Web sites they trust until fixes are available from Microsoft,” Symantec said.

How many mom and pop’s out there even know how to disable java script, and only visit sites they trust? Let alone make sure their antivirus definitions are updated. I have seen some virus trick Symantec’s AV in to thinking the definitions were up to date, and then I go to find hundreds of virus’ on my parents computer. This is just another reason why building the web browser in to the OS is a bad thing and why it should be sandbox’d off in to its own little area.

M$ Winders, MacOSX, Random Stuff, Rant, Security , , ,

Avenue Q

November 16th, 2009
Comments Off

See what all the fuzz is about

Went last night with some friends to see Avenue Q. For those who have never heard of it or seen it, think of Sesame Street for adults. It was a blast. Some how we ended up with front row center seats. If you ever get to New York city, London or select city’s in Australia you should really see it. (Assuming that adult humor does not offend you.) They also have some national tours going on right now which would be another way to see it.

I was so surprised at the number of kids that came with their parents. It was clearly labeled as not for kids, yet I saw parents bringing their kids assuming that since there are “puppets” that it was a kids show. If they didn’t find out in the first couple of minutes that it wasn’t a kids show, they surely found out when they did the bit about how the “Internet is for Porn”.

Some links for Avenue Q:

http://en.wikipedia.org/wiki/Avenue_q

http://www.avenueq.com/

http://www.avenueqgoods.com/

Random Stuff ,