Partisi HDD lewat Terminal

#Untuk melihat isi HDD yang digunakan#

fdisk -l

ex hasilnya;
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00076587

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       23498   188742657    5  Extended
/dev/sda2           23759       27414    29360128   83  Linux
/dev/sda3           23498       23759     2097152   82  Linux swap / Solaris
/dev/sda4           27414       30402    23996416    7  HPFS/NTFS
/dev/sda5               1       11749    94370816   83  Linux
/dev/sda6           11749       23498    94370816   83  Linux

Partition table entries are not in disk order
Ket;[Disk /dev/sda: 250.1 GB] adalah ukuran HDD yang kita gunakan

#Cek HDD yang tersisa atau digunakan#

df -lh


ex hasilnya;
<pre>Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              28G  7.2G   20G  28% /
none                  489M  280K  489M   1% /dev
none                  496M     0  496M   0% /dev/shm
none                  496M   76K  496M   1% /var/run
none                  496M     0  496M   0% /var/lock
none                  496M     0  496M   0% /lib/init/rw
/dev/sda4              23G  848M   23G   4% /media/X-Files


#Untuk prakteknya kita menggunakan sisa HDD... Tetap menggunakan perintah Fdisk#

fdisk /dev/sda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): p

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00076587

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       23498   188742657    5  Extended
/dev/sda2           23759       27414    29360128   83  Linux
/dev/sda3           23498       23759     2097152   82  Linux swap / Solaris
/dev/sda4           27414       30402    23996416    7  HPFS/NTFS
/dev/sda5               1       11749    94370816   83  Linux
/dev/sda6           11749       23498    94370816   83  Linux

Partition table entries are not in disk order


Command (m for help): m
Command action
   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)

Command (m for help): n
Command action
e   extended
p   primary partition (1-4)

p
Partition number (1-4): 3
First cylinder (3571-17769, default 3571):
Using default value 3571
Last cylinder or +size or +sizeM or +sizeK (3571-17769, default 17769):
Using default value 17769

Command (m for help): w
The partition table has been altered!

#Setelah itu coba cek,,apa partisinya sudah bertambah#
#fdisk -l
Kalao sistem partisi di Linux berupa /sda, /sdb [liat jumlah partisinya apa sudah bertambah]

Terus tinggal di format aja partisi yang telah jadi

#buat paritisi#

mkfs.ext3 /dev/sda3

[sda3 >> sesuaikan dengan partisi yang akan kamu buat/partisi yang tadi ditambahkan]

Semoga bermanfaat ^.^


0 komentar to "Partisi HDD lewat Terminal"

Posting Komentar

Share
Linux-Blogs : Translate

Blog Archive