LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-08-2014, 10:27 AM   #1
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Rep: Reputation: 0
WHY DOES fdisk -l print ...


wHY Does fdisk -l print "blank" on my Hp envy cpu?

It doesnt print the word blank, however, nothing comes to the screen?

Thank you for your help.
cajunchief
 
Old 08-08-2014, 11:17 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by cajunchief View Post
wHY Does fdisk -l print "blank" on my Hp envy cpu?

It doesnt print the word blank, however, nothing comes to the screen?

Thank you for your help.
cajunchief
On some distributions you have to have administrative/root privileges.
Try running the fdisk -l command as "root"
 
Old 08-08-2014, 11:17 AM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
From the fdisk man page:

"List the partition tables for the specified devices and then exit. If no devices are given, those mentioned in /proc/partitions (if that exists) are used."

So if you have nothing in /proc/partitions then fdisk -l will list nothing.

-------------------------
Steve Stites
 
Old 08-09-2014, 07:44 AM   #4
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
From the fdisk man page:

"List the partition tables for the specified devices and then exit. If no devices are given, those mentioned in /proc/partitions (if that exists) are used."

So if you have nothing in /proc/partitions then fdisk -l will list nothing.

-------------------------
Steve Stites
jailbait,

Here is what is in my /proc/partitions

8 0 976762584 sda
8 1 204800 sda1
8 2 512000 sda2
8 3 976044032 sda3
8 16 1953514584 sdb
253 0 52428800 dm-0
253 1 6127616 dm-1
8 32 1003520 sdc
8 33 1003272 sdc1
253 2 917483520 dm-2

shouldn't something be listed from here?

cajunchief
 
Old 08-09-2014, 08:46 AM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
jailbait-

Since there are 3 drives would the lsblk or the blkid cmd help?
 
Old 08-09-2014, 12:34 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by cajunchief View Post
jailbait,

Here is what is in my /proc/partitions

8 0 976762584 sda
8 1 204800 sda1
8 2 512000 sda2
8 3 976044032 sda3
8 16 1953514584 sdb
253 0 52428800 dm-0
253 1 6127616 dm-1
8 32 1003520 sdc
8 33 1003272 sdc1
253 2 917483520 dm-2

shouldn't something be listed from here?

cajunchief
Yes, fdisk should list this /proc/partitions. You have some large partitions and according to the fdisk man page:

"fdisk does not understand GUID partition tables (GPTs) and it is not designed for large partitions. In these cases, use the more advanced GNU parted(8)"

So I suggest that you give up on fdisk and try using parted.

---------------------
Steve Stites
 
Old 08-12-2014, 04:34 PM   #7
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
Yes, fdisk should list this /proc/partitions. You have some large partitions and according to the fdisk man page:

"fdisk does not understand GUID partition tables (GPTs) and it is not designed for large partitions. In these cases, use the more advanced GNU parted(8)"

So I suggest that you give up on fdisk and try using parted.

---------------------
Steve Stites
Steve,

Thanks for the input I do agree with your surmise. Thanks again! Problem solved
cajunchief
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD fdisk - Linux fdisk compatibility ? Vilius *BSD 2 01-17-2013 08:02 AM
understadning /dev/dm-02 mapping and fdisk -l or fdisk -l | less mixxmaster27 Linux - Newbie 2 06-03-2010 12:17 PM
Replacing fdisk with gnu fdisk in busybox? Alkisx Slackware 5 10-23-2009 11:51 AM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
Print-to-file print driver to print PDF Bill Fox Linux - General 3 05-02-2006 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration