Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
3  
Try sudo fdisk -l –  atenz Aug 13 '12 at 17:33
    
These thing happen when you switch from RHEL to ubuntu. So obvious. Thanks. –  Chirag Aug 13 '12 at 17:36
add comment

3 Answers 3

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.

share|improve this answer
    
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
add comment

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

sudo fdisk -l
share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.