2008-05-07

Fdisk, bikin filesystem, dan gparted

barusan dapet harddisk nganggur 20g (nganggur?? hehehhe) aku format trus aku bikin filesystemnya jadi ext3 .. rencana mau bikin mp3-server di kantor :P

fdisk

etchRouter:/mnt/hdb# fdisk /dev/hdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.

The number of cylinders for this disk is set to 4865.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n --> bikin partisi baru
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1 --> partisi baru
First cylinder (1-4865, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-4865, default 4865): 4865

Command (m for help): t --> merubah filesystem
Partition number (1-4): 1 --> partisi ke 1
Hex code (type L to list codes): 83 --> filesystem

Command (m for help): w --> write, kalo ga di dwrite perubahan di partisi ga akan disimpan
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

Merubah Filesystem abis dari fdisk

untuk merubah jadi ext3

etchRouter:/var/log/fsck# mkfs.ext3 -b 4096 /dev/hdb1
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
4889248 inodes, 9769528 blocks
488476 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
299 block groups
32768 blocks per group, 32768 fragments per group
16352 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

proses merubah jadi ext3 dah selese, trus kita mount .. misalnya ke /mnt/hdb/

mount /dev/hdb1 /mnt/hdb

kalo pengen otomatis dimount pada saat restart, kita musti ubah file /etc/fstab,

etchRouter:/var/log/fsck# vi /etc/fstab











proc/procprocdefaults00
/dev/hda1/ ext3 defaults,errors=remount-ro01
/dev/hda9/home ext3 defaults 02
/dev/hda8/tmp ext3 defaults 02
/dev/hda5/usr ext3 defaults 02
/dev/hda6/var ext3 defaults 02
/dev/hda7none swap sw 00
/dev/hdb1/mnt/hdb ext3 defaults 02
/dev/hdc1/mnt/hdc ext3 defaults 02
/dev/hdd /media/cdrom0udf,iso9660 user,noauto00


GParted (Gnome Partition Editor)

Gparted adalah softwer untuk mempartisi harddrive yang jalan di gnome, aku pernah pake ini pas instalasi komputerku ini ke linux.

ubuntu sendiri udah menyediakan gparted di liveCD-nya. aku pake gparted ini karena aku mlakukan instalasi laptopku dari system restore yang dia punya shingga satu harddisk dipake smua.

gparted menyeleseikan masalah dengan memartisi harddisk yang udah jadi. dia kerjanya persis partitionmagic, cuman bedanya ini gratis. kalo cuman mau partisi bisa donlod iso-nya di gparted.sourceforge.com

Tidak ada komentar: