LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to list USB Drive Assignment (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-list-usb-drive-assignment-644851/)

writedom 05-26-2008 09:29 AM

How to list USB Drive Assignment
 
If I use GParted I can see all attached USB drives even if they are not formatted. GParted provides the size of the drive and the location (/dev/sdb).

Is there another way, just using the command line, that will show me this information?

Ryptyde 05-26-2008 09:45 AM

Try
Code:

df -h
it will list your attached usb devices.

writedom 05-26-2008 09:53 AM

The unformatted drive does not show up.

tredegar 05-26-2008 09:56 AM

As root:
Code:

fdisk -l

Ryptyde 05-26-2008 10:22 AM

Quote:

Originally Posted by tredegar (Post 3165020)
As root:
Code:

fdisk -l

This will do it, was going to be my next suggestion but tredgar beat me to it. :cry: just kidding :)

tredegar 05-26-2008 11:29 AM

HeHe. Don't feel bad, LQ is not a contest ;)


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