Edit partisi disk menggunakan terminal

harddisk 150x150 Edit partisi disk menggunakan terminalCreate/Delete/Edit partisi sudah biasa dikerjakan dengan menggunakan beberapa tools untuk orang yang bekerja pada modus X atau GUI. Tetapi bagaimana orang melakukannya pada modus konsole atau terminal. Berikut akan dijelaskan menggunakan fdisk, mkfs, dan ntfslabel filesystem yang akan di berikan pada disk adalah ntfs.

1. Tentukan disk mana yang di edit partisi nya

# fdisk -l
 
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000576a2
 
Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         122      979933+  82  Linux swap / Solaris
/dev/sda2   *         123        4377    34178287+  83  Linux
/dev/sda3            4378        9729    42989940   83  Linux
 
Disk /dev/sdb: 8127 MB, 8127512576 bytes
5 heads, 32 sectors/track, 99212 cylinders
Units = cylinders of 160 * 512 = 81920 bytes
Disk identifier: 0x00000000
 
Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       99212     7936944    7  HPFS/NTFS

pada tulisan ini akan mengedit partisi /dev/sdb (bisa diganti).

2. Masuk kedalam partisi yang akan diedit

# fdisk /dev/sdb
 
The number of cylinders for this disk is set to 99212.
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):
 
- ketik "p" (untuk mencetak partition table)
 
Disk /dev/sdb: 8127 MB, 8127512576 bytes
5 heads, 32 sectors/track, 99212 cylinders
Units = cylinders of 160 * 512 = 81920 bytes
Disk identifier: 0x00000000
 
Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       99212     7936944    7  HPFS/NTFS

- ketik “d” (delete partisi)
(jika ada pilihan nomor, berarti partisi anda lebih dari 2, pilih berurutan).

- ketik “n” (create partisi)
- pilih “p” or “e” (”p” primary partisi, hanya bisa 1-4. “e” extended)

- ketik “t” (change partisi ID)
- pilih “7″ untuk NTFS. untuk file lain ketik “L”

- ketik “w” (write to partition table and quit from fdisk)

3. Create filesystem menggunakan mkfs

# mkfs.ntfs /dev/sdb1

(tunggu dah, agak lama)

4. Membuat label pada Disk

# ntfslabel /dev/sdb1 labelname

(untuk filesystem ntfs menggunakan ntfslabel, untuk filesystem ext2/ext3 linux menggunakan e2label, untuk filesystem fat menggunakan mlabel)

Done.

Semoga Bermanfaat

Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

One Response to “Edit partisi disk menggunakan terminal”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">