LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-02-2011, 03:51 PM   #1
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 9 "Stretch", Arch
Posts: 115

Rep: Reputation: 15
fdisk -l only lists one disk?


I have an external hard disk connected to my laptop through usb.
When it is turned off, fdisk with the "l" option lists only the partitions on the laptop hard disk (sda). When it is turn on, it lists only the partitions on the external disk (sdb).
Is there a command to make it list both?
 
Old 10-02-2011, 04:25 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
That falls into the "should just work" category. Which distro is this
happening with, as which user are you running fdisk?
 
Old 10-02-2011, 04:41 PM   #3
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
When it lists sdb have you tried fdisk -l /dev/sda?

Tinkster is right, it should just work
 
Old 10-02-2011, 06:20 PM   #4
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 9 "Stretch", Arch
Posts: 115

Original Poster
Rep: Reputation: 15
fdisk -l

Apologies and thanks! Running as root provides both the internal and the external disk partitions. I should have thought of that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Unique Sorting Of Lists And Lists Of Lists With Perl For Linux Or Unix LXer Syndicated Linux News 0 09-05-2008 02:50 PM
Disk Limitations ? - Help with fdisk Subliminal_2 Linux - General 22 07-01-2008 12:11 PM
Fdisk is not recognizing second SATA disk olf359 Debian 5 01-03-2006 03:42 PM
fdisk from Win98 disk for XP? r_jensen11 Linux - General 7 04-06-2004 09:27 PM
Fdisk or Druid on boot disk jborges Conectiva 1 11-23-2003 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration