9

When I do fdisk -l in terminal there is no output? What can be the probable reason? How to fix it?

Chirag
  • 2,099
  • 6
  • 30
  • 49

3 Answers3

10

Because fdisk is a menu-driven program for creation and manipulation of partition tables. Therefore it requires sudoers or root access

try using

sudo fdisk -l.

atenz
  • 12,674
  • 5
  • 44
  • 66
  • It is so tedious to do sudo for simple tasks. Anyway that was obvious. I used RHEL earlier and things were straight forward. – Chirag Aug 13 '12 at 17:39
  • Maybe RHEL follows the footsteps only to be controlled by admins , here it avails everyone to do changes ( Ubuntu - Linux for Human beings + Admins too) :P – atenz Aug 13 '12 at 17:41
  • \m/ absolutely agree :) – Chirag Aug 13 '12 at 17:44
2

You need to prefix the command with sudo, then enter your password.

sudo fdisk -l
Fernhill Linux Project
  • 3,879
  • 1
  • 19
  • 25
0

You need to do a sudo fdisk -l or first sudo su then fdisk -l.

user3185936
  • 361
  • 1
  • 6
  • 14