"; */ ?>

hardware


10
Jul 08

Restore/Format USB Flash Drive

Who does not have a flash memory USB drive? (128Mb – 16Gb…) Everybody does, even my dog, if I had one, would have it. However, sometimes these little dongles can be tricky to use if they are not properly formatted. The usual format for the flash memory USB drive is FAT16, and it is understood by many operating systems with no problem. But in case the drive is not formatted properly/or you think it is not formatted properly, you can always reformat it, and here is how.

The whole process consists of 5 steps ans takes about 15 seconds um.. if do it slowly.. :)

In case you need to find the actual device your USB drive was associated with look here “Find USB flash device/drive in Linux

WARNING: All the data will be lost from the flash UBS drive since we are going to reformat it.

We are going to use fdisk utility, so “for starters” here are available commands that you can use with fdisk:

a – toggle a bootable flag
b – edit bsd disklabel
c – toggle the dos compatibility flag
d – delete a partition
l – list known partition types
m – print this menu
n – add a new partition
o – create a new empty DOS partition table
p – print the partition table
q – quit without saving changes
s – create a new empty Sun disklabel
t – change a partition’s system id
u – change display/entry units
v – verify the partition table
w – write table to disk and exit
x – extra functionality (experts only)

Now let’s get to cooking a new and fresh flash memory USB drive…

Step 1. Run fdisk via sudo on your USB flash drive device:

user@host:~$ sudo fdisk /dev/sdb

enter “p” command to list current partition table of the USB drive:

Command (m for help): p
 
Disk /dev/sdb: 1039 MB, 1039663104 bytes
32 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes
Disk identifier: 0xf1f494df
 
Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1023     1014785   83  Linux

Here you will see whatever partition (if any) currently present. In my case (above) it is a “Linux” partition, in your case it may be something different. But it does not really matter, because we are going to delete it anyway:

Step 2. Enter “d” command to delete existing partition (if you have any). If you have several, delete several by using”d” command multiple times:

Command (m for help): d
Selected partition 1

Step 3. Now let’s get to business and enter “n” command to create a new partition:

Command (m for help): n
Command action
e   extended
p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1023, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1023, default 1023):
Using default value 1023

As you can see from above, I entered “1” for “Partition number”, and hit enter key twice to leave everything by default.

Now let us list current partitions with “p” command again:

Command (m for help): p
 
Disk /dev/sdb: 1039 MB, 1039663104 bytes
32 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes
Disk identifier: 0xf1f494df
 
Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1023     1014785   83  Linux

We have a single “Linux” partition which is fine (for now).

Step 4. Time to actually apply our changes, so enter a “w” command that will write out all the changes to the USB drive.

Command (m for help): w
The partition table has been altered!
 
Calling ioctl() to re-read partition table.
Syncing disks.

fdisk will write all the changes to the USB drive and exit. But we are not done yet. Our goal is to make a (in this case) FAT16 partition, so this USB drive can be read by most operating systems.

Step 5. For that we will use mkfs.vfat utility:

user@host:~$ sudo mkfs.vfat -F 16 /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)

Now we are good to go! It was easy, as I promised :)

Let’s look at the new USB drive now. Mounting it first:

user@host:~$ sudo mount /dev/sdb1 /mnt/flashka/
user@host:~$ cd /mnt/flashka/
user@host:/mnt/flashka$ ls -l
total 0

Checking what it has under the hood:

user@host:/mnt/flashka$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1             991M     0  991M   0% /mnt/flashka
 
user@host:/mnt/flashka$

It has 991Mb which is what they call 1Gb flash memory USB drive! :)


16
Jun 08

SplashTop Linux On HP and Dell Notebooks

linux inside dell and hpSometime ago ASUS rebranded some of their motherboards as “Express Gate”.

What is unique about these “new wave” motherboards is that they come with SplashTop Linux installed in 512MB flash memory that is embedded on these motherboards.

What does it mean? It means that essential applications (e.g. web browser, instant message client, e-mail client, etc.) that come with SplashTop Linux can be started within 5 seconds after PC/Notebook is powered on – cool huh? Well Hewlett-Packard and Dell also thought it is “cool huh?” and decided to act upon it.

This week Hewlett-Packard announced the HP Envy 133 as its competition to Apple’s ultra-thin MacBook Air notebook. Like the MacBook Air, the Envy 133 runs off an Intel CPU. With the HP Envy 133 they are also shipping an “instant-on Linux” they’ve called Voodoo IOS (Instant-on Operating System).

In addition to the instant-on Linux excitement this week for the HP Envy 133, Dell is apparently working on a similar Linux solution. Engadget has shared details surrounding the Dell E and E Slim. These notebooks are direct competition to the very popular ASUS Eee PCs. These Dell E and E Slim notebooks will use Intel’s Diamondville processors and come with a similar set of features to the Eee PC and potentially at a better price. The E and E Slim also ship with what Dell is calling “BlackTop” for providing an instant-on Linux solution.

For a few months now DeviceVM (SplashTop creators) has had a version of SplashTop that comes equipped with the Pidgin (formerly GAIM) instant messenger and other cool apps.

from wikipedia:

Distinct from most Linux distributions, Splashtop is intended to be integrated on a read-only device and shipped with the hardware, rather than installed by the user. The user can install another operating system but always has this one ready to boot, in case the other one is broken, or in case web browsing and chatting is enough. It boots in about 5 seconds.[5] It is thus marketed as “instant-on.”

An “instant-on” operating system offers many advantages over a traditional operating system:

  • It boots much faster.
  • It is less vulnerable to malware as the system is mostly read-only.
  • It allows for diskless computers.
  • It is lighter but sufficient for running a web desktop and web applications.

sources: phoronix


3
Jun 08

Install Floola on Ubuntu

iPod on UbuntuFloola is a freeware application to efficiently manage your iPod or your Motorola mobile phone (any model supporting iTunes). It’s a standalone application that can be run directly from your iPod and needs no installation under Linux, Mac OS X and Windows (Windows Vista is supported).

Step 1. Get it from:

http://www.floola.com/modules/wiwimod/index.php?page=download_linux

Step 2. Before running make sure to install c++ standard library:

sudo apt-get install libstdc++5

Step 3. DONE!


9
Jan 08

Word’s Thinnest LCD from JVC

The International Consumer Electronics Show (CES) is a trade show held each January in Las Vegas, Neveada. It is a trade-only show and is not open to the general public. At the show, many previews of products are introduced, or new products are announced.

The 2008 exhibition is scheduled to occur from January 7, 2008 through January 10, 2008 in Las Vegas. One of the highlights was Bill Gates’ keynote speech in which he formally announced his retirement from his day-to-day duties at Microsoft.

Here is the World’s Thinnest LCD from JVC that is introduced here at CES’2008:

Word's Thinnest LCD from JVC

According to engadget, JVC’s “thinnest” LCD (if you only count screens with an integrated tuner) was also on display at their showroom and of course we’ve got the pics. This might not be a nearly cellphone-thin 9mm screen, but its still pretty skinny and probably a lot more likely to hang on your wall than some of the prototypes we’ve seen at CES this year.

Word's Thinnest LCD from JVC from the side

more info about CES from wikipedia:

Products and technologies introduced at CES include (in reverse chronological order):

 


21
Nov 07

Add Launcher to “Avant Window Navigator”

    Lately it has become a very painful experience for many people (according to forums/articles/open tickets) to add new launchers to Avant Window Navigator. I have taken a look at it and figured out a rather hacky approach to make it work.

    First I will manually create a "desktop" launcher.

( If you already have one, open it with any text editor (vi, gedit, etc..) and make sure it follows the structure of my "desktop" launcher )

   In order to create the launcher, I have to know two things:

       – the path to the file we would like to launch

       – the path to the icon we would like to use

    In this example, I am going to create a launcher to some program called Aptana, in your case it may be any other program. I know that Aptana executable file is located here: "/opt/aptana/Aptana". I also found an icon I would like to use for it, and put it here: "/home/user/icons/aptana_48x48.png".

    Now by knowing two these things, I can open my favorite text editor (vi, gedit, your favorite.. ) and type the following:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name[en_US]=aptana
Exec=/opt/aptana/Aptana
Comment[en_US]=+ RadRails
Icon[en_US]=/home/user/icons/aptana_48x48.png
Name=aptana
Comment=+ RadRails
Icon=/home/user/icons/aptana_48x48.png

    Notice the Exec and Icon parameters are populated with those two things. Name and Comment can be whichever you’d like them to be, in this case I just like them to make sense.

    Now I will save the file (you can save it on your desktop, or anywhere you want your launchers to live) as "aptana.desktop" (permissions could be "-rw-r–r–", or you can make it less restrictive if you like).

    And.. I am ready for the final step "drag & drop" (!). For this I go to the directory where I saved the "aptana.desktop" file using Nautilus/Konqueror/Other GUI browser, click on the file, drag it to Avant’s launcher bar, and drop it there. Tam tam tam – it is there -> I am done! So do you!

    Make sure your "desktop" file is the format shown above, since it is tested and works.