Thursday, July 24, 2008

How to Format Hardisk on Linux

Pagi2, dah sampe kantor krn ngos2-an semlm habis benerin komputer tetangga di rumah....lagi asyik buka blog buat nge-cek hasil tambahan pernak-pernik biar tambah cantik.
Apa hubungannya ya sama judul di atas....wakakakakak.....OK....kita langsung ke point-nya aja ya.... ;))

Untuk mem-format hardisk di linux, pertama-pertama di check dulu apakah terdeteksi atau tidak di Linux yang sudah terpasang di komputer sebelumnya.

root@cyberthug:~# fdisk -l

Disk /dev/sda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xee21ee21
Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2550    20482843+   c  W95 FAT32 (LBA)
/dev/sda2            2551        3316     6152895    f  W95 Ext'd (LBA)
/dev/sda3            3418        4998    12699382+  83  Linux
/dev/sda4            3317        3417      811282+  83  Linux
/dev/sda5            2551        3191     5148801    b  W95 FAT32
/dev/sda6            3192        3316     1004031   82  Linux swap / Solaris


Partition table entries are not in disk order
Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc6bac6ba

root@cyberthug:~#

Terlihat ada hardisk 40.0 GB, di atas terlihat dengan /dev/sdb : 40.0 GB, 40020664320 bytessetelah terdeteksi mount secara manual dengan perintah :
root@cyberthug:~# mount -o rw /dev/hdb1 /mnt/hdb1

jika folder hdb1 blm ada bisa di buat dulu dengan perintah :
root@cyberthug:~# mkdir /mnt/hdb1

Untuk mounting secara otomatis di saat boot edit file fstab pada folder /etc, dan tambahkan baris dengan kode berikut ini :

/dev/hdb1 /mnt/hdb1 rw 1 1

Penulis memformat hardisk dengan file system ext3 ;
# mke2fs -j /dev/hdb1

file system ext2 ;
# mke2fs /dev/hdb1

file system reiser;
# mkreiserfs /dev/hdb1

untuk memastikan hasil dari format ketikkan kode berikut ;

# mount -v -o rw /dev/hdb1 /mnt/hdb1

Reboot komputer.....done

5 comments:

kw said...

aku masih pake windows :)

CyberThug said...

ada pa....itu adalah hasil kreasi fans ubuntu di luar sana.... :P

paguman said...

ribet yah...knapa ga ky gini aja.
create dulu dulu dgn fdisk exam : fdisk /dev/sdb baca help nya n ikuti aturan.
setelah itu ketik mkfs.[partisi] /dev/sdb[no yg di buat di fdisk] exam : mkfs.reiserfs /dev/sdb1
trus create di fstab
trus mount -a dech.
maaf bila salah,ini cuman masukan n alternatif selain cara di atas.
mohon koreksi

Jeremiah said...

Good afternoon. Very informative and enlightening website. Help me! I find sites on the topic: Selling merchandise from home. I found only this - selling home under bankruptcy. Home selling, then, if the performance even has a debt of outrage and involves carefully to look the perseverance, the amount may tag the front trophy as price for having fixed the sale off the time. Somewhere i was storing up my smile, holding it interested for the difficulty, when i bought that legal chances of my bathroom summer have been closed by what i lose is the information shipper, home selling. With respect :mad:, Jeremiah from Thailand.

Ignacia said...

Good Day. ...happiness gives us the energy which is the basis of health.
I am from Germany and now teach English, please tell me right I wrote the following sentence: "Medicine of general and professional abilities in the common definitive person via useful teachers, ventolin."

Thank 8) Ignacia.