Entries Tagged 'computers' ↓

Terastation Upgrade

Couple months after I replaced a drive in my terastation, another drive died. Sigh. Time to upgrade. Took many many hours, but I upgraded my 1TB Buffalo Terastation (4 x 250GB) to 2TB (4 x 500GB). Of course its less than 2TB - once RAID 5 is setup, it comes out to about 1.4TB of usable space. And you definitely want RAID 5 - that means if any one of the 4 drives dies, you don’t lose any data, just replace it before a second drive fails.

Here’s the deets:

  1. Bought four 500GB drives for about $100 each,
  2. Copy data from Terastation to one of the 500GB drives - mounted via USB on windows xp, could also work with IDE inside PC (4-6 hours)
  3. Disassemble Terastation, pull out 250GB drives (<1 hour)
  4. Copy data from 500GB to 2 of the 250GB drives on windows xp PC (6-8 hours)
  5. Partial Reassemble Terrastation with 4 new drives (10 mins)
  6. Upgrade Terastation firmware to 2.16 (had trouble with disk format till I did this)
  7. Format each disk (5 mins) (had to reboot a couple times to get it to work)
  8. Create Raid array 1 (RAID 5) using all 4 disks (2 mins), raid “checking” took 13 hours
  9. Create shared folder
  10. Copy data from the 2 250GB drives back to terastation.

More on http://www.terastation.org/wiki/FAQ

Terastation Drive Replacement

Back in 2005, i bought a Buffalo Terastation 1TB NAS (Network Attached Storage). Basically its a backup device - a mini-computer box with 4 harddrives, each 250GB, or 1TB total. Last week one of the drives died after a power outage (we get a lot of outages on san jose ave), and today i fixed it. However, it wasn’t that easy - I spent over 3 hours on it - when it should have taken less than one. So i’m just gonna note a few things so the next guy might have it easier. Now here’s where i’m gonna geek out, so all non-geeks .. move along.

When i first setup the terastion, i did a RAID5 + RAID1 - that means i got a 750GB partition out of my 4 250GB drives. So if any one of the four drives dies, i don’t lose my data. I just pop in a new drive and rebuild. Easy. This worked great for 3 years, never had to replace a drive. Every now and then we’d lose power and when i powered on my terastation, it would take 1-2 days to check the disks before we were good to go.

Last week Terastation would not recover - it would boot up for a minute, do disk check, then turn off (power light was off). However, each of the four drive status lights would stay red, with disk 3 blinking red. After reading the manual, I decided to replace disk 3. I also read the wiki FAQ, so i knew i could replace with any same-size or bigger drive. I did this, spending almost 45 mins opening the terstation up, switching the drive, and putting it back together. Turned it on, and it stayed on. Yay!

So now all i had to do is connect to the web manager interface and “rebuild the raid array”. Once i logged in, it said Raid array 1 error - i clicked it, and I’d get to array 1, and it listed disk 1, 2, 3, 4 .. but the checkbox to disk 3 was greyed out. I spent a while looking through the web pages and decided something might be wrong with my new disk. I turned it off, took the thing apart (only took 15mins this time), pulled out my new disk, and basically connected it to my PC in a external USB drive box. It worked fine. Ugh. Was terastation broken? I tried the old drive, that terastation thought was dead. It also seemed OK by PC standards. Ugh.

After going back in forth and trying different things, it turned out that the new drive had to have the jumper in Cable Select to work. The older 3 western digital drives were not in Cable Select mode. Whatever.

Also, the LED lights on the front don’t always do exactly what the manual or FAQ says. Specifically, i loved this blog on replacing terastation drive, but at the what he says is different than what i saw. Once I clicked ‘Restructure RAID Array’ , the lights were all going nuts and within a minute it went to a page that said “Restructuring has completed successfully” “Checking RAID Array”. At this point my 8 drive lights are blinking red and green - the 3 old ones have solid red status, new one is not lit, and all 4 have blinking green activitiy. Power light is on, diag light is blinking green. On web interface, i clicked on Raid Array 1 and it says it is “Rearing (x.x % Complete)”. I waited a few mins and refreshed page .. percent complete is increasing. It’s working !!! 4 hours later it finished - my setup is as good as it ever was.

Tagging Friends

Social Networking is hot right now. Myspace is huge, facebook is growing super-mega fast, and even Google is backing open standards with OpenSocial (tho, not perfect).

Tagging is also a somewhat new (few years old). You can tag photos (flickr), tag websites/blogs (digg, del.icio.us, technorati, furl, etc) .. why not tag friends? Specifically, I have different circles of friends, some friends overlap, and would love to be able to group them more effectively than i can today. Examples

  • babysitters
  • coworkers
  • work project A
  • work project B
  • lunch friends
  • church friends
  • hiking friends
  • drinking buddies
  • college friends
  • star trek fans
  • DJ/dancing crews

One thing to point out is how this compares to the existing concept of groups on social networking sites. Tagging people with “hiking” is promoting MY view of the world - I get to control who i want to talk to when i want to go hiking. In contrast, a hiking group I join is not my view - I don’t have control on that case. It’s more random, usually controlled by the loudest people (loudest meaning more volume of info and higher frequency), and most likely less personal, therefore a different usage paradigm. But the most important difference is that friends tagged with “hiking” are friends first, hiking people second. Social networking groups are groups first, and may or may not contain friends.

Everybody likes to spend time with friends, so why not change the paradigm to make friends come first?

How would it work? Simple - while looking at profiles on a given social network site, there’s always a section that has “add friend” or “marked as friend”. Around there you could add a tag to that person. Then, on your home page, you could have a friend tag cloud or list of friend tags. You pick a tag and it jumps to a dynamicly created page containing summaries of each person you tagged, with the following options:

  • email - easier to manage than creating new email lists all the time
  • calendar or event planning - requires them all to use the same calendar system so it can find time when all are free .. not easy
  • person summaries, including existing tags (with ability to add/delete here, too), latest posts, pictures, status, …. optionally filtering posts/pics by the current tag (oooo.. advanced)

I’m looking at you, google.

New LCD Monitor

Today my beautiful new 24″ monitor arrived. Thanks, Mr. Fedex!! I ordered the Samsung 245T after doing a bunch of research (xbitlabs, trusted reviews, cnet). Specifically, its the best 1920×1200 24″ flat-screen out there under $1000. Besides awesome screen quality (my, what a wide color gamut you have), it has tons of inputs (DVI, HDMI, VGA, S-Video, RCA, Component), USB Hub, and PIP (picture-in-picture). Its also quite popular - constantly out of stock everywhere as soon as stock arrives (pricegrabber). I ended up paying about $700 for it. Yeah, i’m a geek.

Web Hosting Round-up

I have several domains hosted out of my apt, meaning the computer that controls samo.org (among others) sits in my apartment. Now that i’m moving, i decided to look into hosting these domains somewhere else a bit more reliable (although it was fun to walk fritz and shayna thru a reboot from Thailand).

Here’s what i’m looking for

  • cheap monthly (less than $10/month)
  • virtual hosting (2+ domains)
  • linux/BSD/Unix
  • PHP access
  • ssh access (csh, cron, .htaccess, php.ini, etc)
  • web stats (access to apache log files)
  • decent disk space and bandwidth (?)

I’m happy to see that shared hosting (one machine serving many domains and many customers) is pretty cheap ($5-$10/month). This is in comparison to dedicated hosting, where a customer gets their own machine - for high bandwidth and/or highly customizable stuff. I used to think i needed that, but now i don’t. First I tried to find current reviews of web hosting, starting with GoDaddy, since that’s where i have some domains registered. Basically they are one of the cheapest around, but there are many on the net that complain about their customer support. After a bit of digging, i found some decent review sites and decided to do it right.

Webhostingsitesreviews does a good job evaluating the company and their offerings - their top linux sites were BlueHost 95%, StartLogic 95%, IX Web Hosting 92%, HostMonster 92%, HostGator 87%, Yahoo 87%, and last place GoDaddy 83%. I also liked Hosting Review’s top 10 table with links to their verbose reviews. YourWebHosting also lists a top 10 with BlueHost at the top, followed by IX, GoDaddy, Dot5, StartLogic. Top 5 Hosts picked Hostmonster, Lunarpages, Bluehost, Startlogic, and Hostgator. Ahh, those names sound familiar - I think i see some patterns. Good.

I also found a few sites that seem… off. Perhaps paid placements? Hostsearch allows people to review sites, which is nice to get user issues, but they are not as thorough as webhostingsitereviews. Hostsearch’s top picks are (in order) Webstrike (402 reviews), WebHostingBuzz (258 reviews), eBoundHost (43 reviews), Galaxyvisions (22 reviews), HostForWeb (259 reviews). Web Hosting picked these as their tops: Globat, Poweb, HostRocket, GoDaddy .. and none of them seemed like a good deal.

Anyway, on with the Round-Up - My Summary below. Most of the top ones were about the same, altho I noticed a few things i wanted that not everyone has, like SSH access and access to log files (i like to ssh and tail logs while troubleshooting).

Site Month Disk Domains Notes
BlueHost $7-8 300 GB unlimited ssh, many scripts, .htaccess, 350k domains, blog
HostMonster $6 300 GB unlimited ssh, scripts, log files .. merged with bluehost
StartLogic $5 300 GB unlimited ssh, many scripts, .htaccess, 80k domains
HostGator Baby $10 100 GB unlimited ssh, many scripts, log files, 400k domains
Dreamhost $8-10 146 GB unlimited ssh, many scripts,
IX Business $7 500 GB 8 no ssh, many scripts, log files?,
Dot5hosting $5-6 300 GB 6 no ssh, log files
lunarpages $7 350 GB 10 no ssh, many scripts,

And the winner is … Hostmonster, everything i need for $6/month.

Notes - doteasy.com only had 1GB storage and 20GB/month xfer for $7/month plan. Yahoo was equally lame.

Tigerdirect sux

Don’t ever ever get a gift card for Tigerdirect.com - trust me. I worked for yahoo, got a free gift certificate at giftcertificates.com, which i used to buy $250 gift cards at Tiger direct. Bad move. All i wanted to do was buy stuff from their site using the gift cards -

  1. I ended up having to call them 5 times, totaling about 3 hours, longest call was over an hour (this really sucked)
  2. I got passed around from customer service to credit card payment and back and on hold and talked to supervisors and on hold and … dropped entirely, 3 of 5 times. Each time they liked to tell me how their internal operations work (hello, do i care?), and it varied depending on who i talk to.
  3. Web site is great, but does not work with gift card system. During checkout, It incorrectly reports the amount available on gift cards
  4. If you use less than the full amount of a gift card, they have to mail you another gift card for the difference (why not email? or better yet, just change the amount on the gift card to whats left? not rocket science)
  5. They have at least 2 different types of gift card numbers, and one of the problems i had was that both could not be applied to one
    order - at least the supervisor acknowledged this as not great and made it work for me.  well, i hope he made it work - not shipped yet.

Seriously, guys, how much money do you waste on customer service? Perhaps gift cards are not that popular, and its not worth the time to make the system functional, relying on supervisors to fix it? I thought about calling Carl Fiorentino, TigerDirect’s president, at home in Miami, like Fred Wise did, but haven’t. I think i got it sorted - we’ll see if my package arrives after burningman.

I love being a Geek

I can’t tell you how excited and happy I am now that i got my laptop fixed. My macbook pro, which died in India, was resurrected by the good kids at Apple. I’ve been waiting to get this laptop fixed since i got back - and it finally arrived thursday after 11 days of separation anxiety. Hurray. Now i’m loading it up with software, mp3s, and videos.

Here’s a little more on fixing a broken macbook pro. First lemme tell you its condition - it was in my bag, well padded, but the bag fell off the roof of a SUV going 30 mph. Ouch. Surprisingly, it did boot up - the screen was mostly cracked (nice fractals) but the upper left corner of the screen i could see the mouse and the little blue apple. The harddrive worked (wow), the keyboard sorta worked, but the sides of the titanium casing had ripples in it, making the ports questionable. I took it to the apple store for an estimate - he quoted $1,000 for tier 4 damage - meaning they would replace all parts needed to get it back to normal. He said a 3rd party could fix it cheaper - maybe - and mentioned techrestore. I talked to those guys, but they wanted $500 for just a screen fix - and wouldn’t give me an upperbound - like, the most it would cost for a new screen, new case, new ports, new drive, etc. So i just decided to let apple do it. Apparently the first apple guy was incorrect on the price - Apple ended up charging me about $1,300 ($1,140 tier 4, $100 labor, $96 tax) - more than a brand new windows laptop. Of course, this IS a macbook pro. Ooooooo…. But i gotta say, i think they replaced EVERYTHING. It’s like i have a whole new computer. Feels so nice and purty. I’m soo happy. I love being a Geek.

Oh, and before i took it in, i wanted to salvage my harddrive data - mostly pics - because apple likes to erase everything. My ports wouldn’t work, so i had to remove my drive and put in a external harddrive enclosure, and mount it to another computer. Removing the drive was a bit of work, but a success, thanks to the macworld macbook pro hard drive upgrade guide (say that 10 times fast).  After doing this, i decided i could do it again, replacing the new 100GB drive with a 250GB hardrive (only $200). I also ordered another 1GB of RAM ($50), which will arrive next week. Woop!

So yeah, like i said, this stuff makes me happy, so i know i’m a geek. And i love it.

Bangkok WIFI

When i first got to Bangkok in March 2007, i had trouble finding good wifi.  Well, i’m now gonna list a few spots that I ended up using - i may add to this list more later.

FREE WIFI

  • Around the Thammasat(?) University - cafeteria a good spot - near Khao San Road
  • Irish Exchange - Bar on Convent Rd (near Sala Daeng BTS)
  • The Dubliner - Irish bar on Sukhumvit, between Soi 22 and 24
  • a few other bars have free wifi on Sukhumvit

Pay (but fast)

  • A-One - hotel and internet, near MBK (national stadium BTS). 40-60 Baht/hr
  • Wendy House - 24hrs, next to A-one.  40-60 Baht/hr (Downloaded 800MB in one hour - over 1Mbps sustained!!!)
  • Old Bangkok Inn - fast, free wifi with room, expensive (2000-3000 baht/night)

iPod: iTunes SUCKS !!!

Well, i’m just another sucker who thought Apple designed products well. Apple products sure are pretty. But what could be the absolute worst thing that could happen when you use iTunes? Besides blowing up in your face killing your baby nephew. Yes, erasing your harddrive without warning. I backup my laptop, but not my iPod. So of course today i got my iPod wiped clean by iTunes 7. For you techies out there, its like the old “sudo rm -rf /”

What do you do when iTunes erases your iPod??? well, first stage is denial. What? no songs? eject ipod, hold it in my hand, look at artists .. blank. WHAT?? Ok, maybe i can recover .. search the web .. Oooh.. “iTunes 7 erased my iPod” happened to this guy, too. Hmm.. most of the 48 responses are people complaining how it happened to them too. OK, so maybe it did happen. Any recovery tools out there .. a few for windows, none for the mac. Let’s recheck the iPod, maybe my songs are there now. Nope. Videos gone, too. But my photos are still there. Wow.

Sigh. Luckily i have copies of my mp3s on a backup server, but i did lose all my playlists. I spent many many hours creating and tweaking these playlists - those run mixes, driving in the car mixes, chilling out on a bus mixes, and many more. I hate iTunes.

iTunes WarningOk, for the record, here’s what i did - I reproduced it to make sure i got warning message and steps correct. With my iPod plugged in, on iTunes 7 I clicked on chadpod (my name for my ipod). I clicked on the Music tab, and unchecked “Manually manage music and video”. I got the warning message in the image above - “Are you sure you do not want to manually manage music and videos on your iPod? All existing content on the iPod ‘ChadPOD’ will be replaced with content from your iTunes library.  Ok, i think “merger” when i read that, not “YOUR IPOD WILL BE ERASED”?  Clearly i was wrong.  Then I clicked Summary tab just to the right of the Music tab. I tried to sync one of my playlists automatically by checking the “Sync Music” box and selecting one of my playlists. I then had an interruption, and when i got back to my computer, I decided i didn’t have time to finish this right now, so I went to eject my iPod.  Then i got the following warning: “You have changed the settings for iPod ‘ChadPod’.  Would you like to apply these changes?”.  Umm.. Ok.  At that moment it erased my ipod - i could tell cuz it took a few seconds. Now my chadpod is blank. Wha?? Unplug from my macbook pro. Yep, wiped out. I admit that popup was a warning, but i definitely didn’t expect to lose my music and playlists. What i still don’t get is that it didn’t even sync. I have tons of music in my iTunes, none were copied.. No playlists copied. Whatever happened, it definitely was not a design flaw, it’s a bug in iTunes.

Lessons Learned:

  • Use Manual Mode to update iPod (apple info on switching to manual mode).
  • NEVER accidentally click on anything in settings - especially do not try and sync a playlist if you’re in Manual mode
  • iTunes SUCKS.

Hmm… I think i feel better now that i vented.

iPod: Copy To Play Order

I’m very excited today .. I finally figured out how to reorder my playlists on my ipod. I’ve been using iTunes 7 on my macbook pro for a while, but could not figure this one thing out. I read numerous postings where people had the same problem i had - I reorder my iPod playlist on iTunes, but when i eject the iPod, the playlist order is still random. The only solution i found was to create a new playlist and drag each song to it one at a time in the order you want. Then remove the old playlist and rename the new one to old playlist name.

But today i found out what to do - pick the iPod playlist you want by clicking on it in the left pane of iTunes 7, reorder songs in your playlist how you want, sort on title/artist/album, and/or drag and drop how you want them. When you’re ready to save the playlist order to the iPod, goto the left pane, ctrl-click (or right-click) the iPod playlist (which should already be selected), choose “Copy To Play Order”.

EXAMPLE: Change “Favs” playlist to be sorted by album, except switch the first five items with second five items.

  1. Click your “Favs” playlist on left pane under your iPod symbol
  2. Sort by album by clicking album column in main (right) pane
  3. Save current order by ctrl-clicking “Favs” playlist, selecting “Copy To Play Order”
  4. Sort by playlist order by clicking on column to the left of the ‘Name’ column (has no name, contains just numbers). Make sure arrow is pointing up.
  5. Select first five items, then drag down right below the next five.
  6. Save by repeating step 3.

Note: this was on a Mac using iTunes 7.02, iPod version 1.2.1

For me, this is huge - most of my music is live sets and the mp3 tag info is poor. Plus i love my playlists, several are 50 songs are more, and now i can easily pull out one song i’m sick of, add another song or two, or switch the order around to my full pleasure. Hurray.