Tutorial Linux Bahasa Indonesia

Melihat Partisi Harddisk dengan fdisk

 •  2   • 338 

Kita bisa melihat struktur partisi harddisk dengan aplikasi fdisk, jika kita tidak memberikan parameter harddisk mana yang ingin kita lihat partisinya, maka fdisk akan menampilkan partisi seluruh harddisk yang terpasang di komputer. Jika anda menggunakan Ubuntu, anda harus menggunakan sudo karena hanya user dengan hak akses setingkat root yang bisa melihat table partisi :

$ sudo fdisk -l

Jika anda mengunakan Red Hat atau turunannya, anda harus login atau melakukan substitute user sebagai root :

# fdisk -l
[root@sissy ~]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        9729    78043770   8e  Linux LVM

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      243201  1953512001   8e  Linux LVM

Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      243201  1953512001   8e  Linux LVM

Disk /dev/sdc: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      243202  1953512448   8e  Linux LVM

Disk /dev/sdd: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1      243201  1953512001   8e  Linux LVM
[root@sissy ~]# fdisk -l /dev/hda

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        9729    78043770   8e  Linux LVM

Ingin tips lainnya? anda bisa membaca Linux Tips 101 yang merupakan bagian dari 1001 Linux Tips

Selamat mencoba! Have Fun!

Follow me

Semua tentang Linux dan Open Source.