Western Digital 2.0TB ED20EARS chipset

So this drive has been ticking loudly since the day i got it, and now it is officially dead..

Anyhow, i had the data off this one out already, it is another drive that i am concerned

And for my refrerance with that other hard drive, the PCB on this one has chips that read the following

SMOOTH
L7251 3.1
AAABG V5
TWN 8U 044
S7 EBK

——————

M
88I9146-TFJ2
P3M4600.3
1040 B2P
TW

————–

SAMSUNG 046
K4H511638 G-LCCC
H5116 C2J162GEN

————–

THE PCB STICKER READS

2061-771698-802 08P XW BEA8 GZF55 0002230 1232

——————–

The sticker on the actual hard drive reads

S.N: WMAZA3145151
MDL: WD20EARS-00MVWB0
WWN:50014EE6561655A6
DATE: 14-DEC-2010
DCM: HBNNHTJMH
DCX: 4M05V3WW5

LBA: 3907029168
5VDC: 0.70A
12VDC: 0.55A
R/N: 771698

So i am leaving the above information since it may save some technician doing a PCB replacement some time, and it will surely spare me the need to look for the file i wrote this information in when i get to my other busted hard drive

WD 2TB drives not advanced format

So, i got the WD2001FASS and after plenty of investigation, found out that even if they do support AF, they are not by default advanced format, and have decided to put this information online for anyone who is trying to install one on LINUX.

The problem is that ONLINE, there are many answers, some saying it is, some saying it is not, and some saying it is compatible (Whatever that means),

The short answer is, NO, Western Digital 2TB BLACK WD2001FASS IS NOT ADVANCED FORMAT, i am sure about that but don’t hold me liable for anything (In case some crazy American gets too excited).

Proof

1- the results of hdparm are.

hdparm -i /dev/sdd

Model=WDC WD2001FASS-00W2B0, FwRev=05.01D05, SerialNo=WD-WMAY00589096
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=3907029168
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes:  pio0 pio3 pio4
DMA modes:  mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: Unspecified:  ATA/ATAPI-1,2,3,4,5,6,7

* signifies the current active mode

————————————-

and

hdparm -t /dev/sdd

gives us

Timing buffered disk reads: 418 MB in  3.01 seconds = 138.72 MB/sec

Which is the number on the Western Digital Website

———————————–

In any case, i have formatted it once assuming it is AF and once assuming it is 512b (Not AF) and the results were the same (And that is why i say it might be compatible but i don’t know how that can be done anyway)

Domain prices have just increased

The prices for .COM and .NET have got that yearly increase yesterday, this year, the base price from Verisign for the .COM has jumped from $7.34 to $7.85 and for the .NET it has jumped from $4.65 to $5.11, so this is the bottom line, Last year, prices jumped as well, here is a table of the prices for the three years

2010 2011 2012
COM $6.86 $7.34 $7.85
NET $4.23 $4.65 $5.11

Dissable HTACCESS for faster performance

I always use MOD-REWRITE in my development, but i never put it in a htaccess file, an htaccess file will requiere a call to the OS with every page or file view to check if the file has changed or not, apache will only stop making such requests if you turn htaccess off.

You can turn it off with the statement

AllowOverride None

in your config file, but now how do we enable rewrite ?

Sinple, put the rewrite statement in the config file, here is a config file that does rewrite and has the AllowOverride set to none.

In this sample file, AllowOverride is set to null, Apache is instructed not to maintain a log file (not recommended for 90% of websites, since log files help you debug and analyze if an accident happens), makes robots.txt a PHP script file,

<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName example.com
ServerAlias www.example.com
ServerAlias search.smartdomaingenerator.com
ServerAlias subd.example.com
DocumentRoot /var/vhosts/example.com/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/vhosts/example.com/>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AddDefaultCharset utf-8

#i like to send robots.txt dynamically via PHP so that i can control it from web interface
<Files robots.txt>
SetHandler application/x-httpd-php
</Files>

RewriteEngine on
RewriteRule .(php|gif|jpg|png|ico|swf|flv|avi|mpg|jpeg|ram|css)$ – [L]
RewriteRule ^style.css$ – [L]
RewriteRule ^beditor(.*) – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
DirectoryIndex index.php
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory “/usr/lib/cgi-bin”>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

# ErrorLog /var/log/apache2/error.log
ErrorLog /dev/null
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

#CustomLog /var/log/apache2/access.log combined
CustomLog /dev/null combined
ServerSignature Off

Alias /doc/ “/usr/share/doc/”
<Directory “/usr/share/doc/”>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

Disk read and write measuring and monitoring

The tools i need are in
apt-get install sysstat

this will give me the command

iostat -x 5

Where the 5 means tell mne about disk usage for all partitions and disks every 5 seconds…

When you stop the command, running it again will display data since the last run, there is much more that has to do with IOSTAT that i will come to in a bit, this one here is simply the basic command and usage for my referance

IO stat will display something like the following lines for the second disk that has 4 partitions, the first line is the totals

sdb 0.20 0.20 33.20 16.00 728.00 1392.00 43.09 3.87 41.01 3.04 14.96
sdb1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
sdb2 0.20 0.00 7.00 0.00 502.40 0.00 71.77 0.06 8.46 7.54 5.28
sdb3 0.00 0.20 25.60 15.40 204.80 1384.00 38.75 3.79 47.41 2.85 11.68

Just got my ATOM D525MW motherboard

I got this motherboard because it is fanless, and all reviews say that this Dual core (4 thread) ATOM processor is faster than a Pentium 4 for something like a database application and a web server, and that is exactly what this PC will be doing. Reviews also say that this PC also puts some decent performance for an average home PC used for browsing and similar little tasks (Did photoshop CS5 fine for me, but surely, no GPU optimization, did the job but probably too slow for a professional designer).

In any case, this fanless PC turned out as cheap as $137 ($79 For motherboard and processor, $18 for 4GB of RAM, $20 for a case and a small power supply, $20 for a small SATA hard drive). very cheap price wise, and much cheaper on electric with around 20 watts of power compared to the 200 watts the average PC draws ( 1/10 of the power consumption).

And for all i know, the power supply can run fanless when this little power is drawn from it (i did punch a few holes on the top for ventilation and passive cooling), so this is a completely fanless PC that costs $137 (without the monitor).

As soon as the new PC was switched on, i could F7 to update the BIOS, so i did, before we even start,
The motherboard had the bios (MWPNT10N.86A.0083.2011.0524.1600), while the latest bios on the INTEL website dated 10/13/2011 0098 MWPNT10N.86A.0098.EB.EXE so i installed the latest.. everything is working fine up to now.

First of all, i installed a hard drive that already had windows 7 64Bit on the new Motherboard, the drive was on an intel G41 series motherboard (Socket 775), it work right away, windows seems responsive, although it needs activation now.

NOTE: i think, that since this PC uses the Unified Extensible Firmware Interface (UEFI) (The new system replacing Basic Input Output System BIOS, since BIOS is being phased out this year), The Windows 7 Activator by Hazar and Orbit 30 would probably not work, the similar software that would work is probably DAZ loader for Windows 7, and from the feature list i have read, probably Version 2.1 and above.

So, The motherboard booted from a hard drive that was on a G41 motherboard, and it also booted Linux directly from a VIA chipset motherboard with a celeron processor, on that drive i got from the Celeron PC with via chipset, all i needed to do was edit the file in /etc/network/interfaces to use eth3 rather than eth0 (Since the name changes with the new network adapter built in the motherboard) and it seems everything is good to go !

LOAD seems to have gone down,

I installed one 4GB 204 PIN SODIMM DDR3 (The motherboard’s max is 4GB, you can put all 4 in one piece or 2*2).

Anyway, now that this thing replaced the Celeron, i can expect increased performance (Since the Celeron D 331 is based on Pentium four) and some saving in the electric bill (Seriously now, who cares, but it sounds responsible)

For those of you wondering how much those savings could be… here are some estimates since i can never tell for fact (Unless i hook it to my ammeter)

I think the headless / Monitor-less celeron consumed about $10 per month (And this is a very educated guess).
This one will probably consume the same for everything but the processor, which is 13Wat max TDP from a 85W for the celeron
Making the PC consume something around $2 or $3, and therefore i should expect $7 in savings every month, That is, i will get my money back within a year’s time.

LINUX TV et al

Working with DVB…

So i have a SKYSTAR 2 by technisat, and i have that old CONEXANT bt878, both should work under linux just fine

On Windows 7 (32 bit only it seems), even though there are no drivers for the tuner chip (bt878), the free open source driver btwincap should do the trick, as for the SkyStar II card, everything should work just fine as it is supported, and there is software to run it downloadable from Technisat.

What i have not yet done is to get them both working under Linux (Did not try yet), from what i understand up to now is that LinuxTV should get us up and running in no time, Both cards are supported natively under Linux.

There is a package that seems to do everything i need called MythTV, hoping it will work just fine with my hardware

Other things to keep an open eye for

MythTV, Open Source DVR
VDR, Video Disk Recorder
Freevo
DVB Vulture
SageTV
Tvheadend
Tvtime

I will let you know step by step how it goes, for the time being, i am installing Debian Squeeze.

BZIP2 PHP’s bzcompress RETURNS ERRORS ON lINUX

After hours of revising my code to find the error, i finally found the least expected error, bzcompress fails often ! and that is the error

bzcompress under PHP 5.x failed with error code -3, unfortunately, there is no documentation on what that may be, or at least i can not find it.

To fix my application, i tested the data in the resulting variable with the is_numeric function, and if that had the value of TRUE, i used a flag with the data to denote compression.

I will update this post as soon as i have more information on this matter

FireFox for Linux Platforms

First of all, i am not happy with my Linux Desktop firefox or with my Windows Firefox, they are lacking on the multi-threading, and on a web all about Javascript, One tab hangs, my whole browser hangs, so firefox is lagging behind chrome and IE in this regard, otherwise, i can say that firefox is probably the best browser out there. Get your shit together firefox, we all have Dual and Quad cores, and we want our browser to utilize them.

Having Plugin container fire up multiple instances will also be nice for multi threading… And just to let you know, my I7 can do 8 threads with 4 cores and 2 hyperthreads per core.

Anyway, back to our subject, Firefox is coming out for tablets and mobile phones with 2 features that will certainly put it in the list of the 3 mobile players !

The first feature is being able to take photos from the phone directly on to the browser so that we can upload photos direct, firefox calls this Camera UI .

The other feature that is probably good for normal (not power) users is the site blacklist where the browser will look up any visited website against a blacklist maintained by mozilla and there affiliates, this is probably going to be an important feature for the upcoming firefox for android.