LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02:51 PM   #1
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 11 "Bullseye", Arch
Posts: 123

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, 03:25 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 03: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, 05:20 PM   #4
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 11 "Bullseye", Arch
Posts: 123

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



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 01:50 PM
Disk Limitations ? - Help with fdisk Subliminal_2 Linux - General 22 07-01-2008 11:11 AM
Fdisk is not recognizing second SATA disk olf359 Debian 5 01-03-2006 02:42 PM
fdisk from Win98 disk for XP? r_jensen11 Linux - General 7 04-06-2004 08:27 PM
Fdisk or Druid on boot disk jborges Conectiva 1 11-23-2003 04:19 PM

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

All times are GMT -5. The time now is 01:26 AM.

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