Cara Format Hard Disk di Linux

Q. I’ve installed a new 3 TB SATA hard disk on our office Ubuntu Linux . How do I format a hard disk under Linux operating system from a shell prompt?

A.. There are total 4 steps involved for hard disk upgrade and installation procedure:

Step #1 : Partition the new disk using fdisk command

Following command will list all detected hard disks:

# fdisk -l | grep '^Disk'

Output:

Disk /dev/sda: 251.0 GB, 251000193024 bytes
Disk /dev/sdb:  3.0 TB, 3000000193024 bytes

To partition the disk – /dev/sdb, enter:

# fdisk /dev/sdb

The basic fdisk commands you need are:

  • m – print help
  • p – print the partition table
  • n – create a new partition
  • d – delete a partition
  • q – quit without saving changes
  • w - write the new partition table and exit

So, to create a new partition, you must press, ‘n’   .. and follow steps and answer / enter few options .

 

Step#2 : Format the new disk using mkfs.ext3 command

To format Linux partitions using ext2fs on the new disk:

# mkfs.ext3 /dev/sdb1

 

Step#3 : Mount the new disk using mount command

First create a mount point /disk1 and use mount command to mount /dev/sdb1, enter:

# mkdir /disk1
# mount /dev/sdb1 /disk1
# df -H

 

Step#4 : Update /etc/fstab file

Open /etc/fstab file, enter:
# vi /etc/fstab

 

Append as follows:

/dev/sdb1               /disk1           ext3    defaults        1 2

Save and close the file.

Task: Label the partition

You can label the partition using e2label. For example, if you want to label the new partition /backup, enter
# e2label /dev/sdb1 /backup
You can use label name insted of partition name to mount disk using /etc/fstab:
LABEL=/backup /disk1 ext3 defaults 1 2

 

decrypt MD5 hash – PostgreSQL

Awalnya, Ketika saya sedang mengakses sebuah aplikasi berbasis web di kantor. Tetapi tidak tahu username dan passwordnya, maka terpaksa harus buka databasenya di PostgreSQL DB Server.

Ketika  menemukan table user yg berisi username dan password, harus berpikir lagi, karena password diENKRIPSI. Saya yakin, program PHP nya menggunakan MD5 Encoder untuk enkripsi password tadi sebelum dimasukkan ke table.

Lalu bagaimana caranya membaca password yang telah dienkripsi di table tadi ??

Browsing di GOOGLE, akhirnya nyasar ke http://md5.web-max.ca. Ini online crack MD5 Hash. Kita hanya perlu memasukkan karakter sepanjang 32 byte dari teks enkripsinya.  Dan klik MD5 Hash Decode.  Cukup mantap , hanya perlu beberapa detik saja ketahuan teks aslinya.

Printer HP LaserJet P1102 di Ubuntu 10.04

Mulai Ubuntu 10.04 sudah menyediakan driver printer HP LaserJet Proffesional P1102, tetapi kemungkinan besar printer HP LaserJet Professional P1102 tersebut tidak akan dapat nge-print.

Beberapa macam pesan error akan dijumpai, seperti :

/usr/lib/cups/filter/foomatic-rip failed

/usr/lib/cups/filter/hpcups failed

Selanjutnya  beberapa saran untuk perbaikan / troubleshooting yang ada, seperti :

- Update hplip  ke versi terakhir, saat ini ditulis, hplip.3.11.7

- Membuat link, di direktori /usr/lib/cups/filter , dgn perintah:

ln -s foomatic-rip foomatic-rip-hplip

-  Mematikan features “Bidirectional printing” di properties printer.

-  Cukup Me-resume printer, ketika error terjadi.

- dan lain lain.

Semua saran diatas tidak bekerja untuk kasus yang saya hadapi.

Solved ketika menemukan driver yang tepat di situs : http://foo2zjs.rkkda.com/

Instalasi driver sesuai petunjuknya dan printer working. :D

Catatan:  driver foo2zjs ini bekerja untuk di Ubuntu 09.04 / 10.04 / 10.10 / 11.04 , Fedora 8. dgn Printer HP LaserJet P1102 ini.

Follow

Get every new post delivered to your Inbox.