You are not logged in.

#1 2014-10-05 22:56:21

bzpnbx
Member
Registered: 2014-10-05
Posts: 35

way to learn device & partitions on inserted USB-drive?

when I insert a USB-drive, is there a way to learn the device and mountable partitions on it?

something like

 dmesg | tail 

only shows the device (/dev/sdb) which leave you guessing at the partition.

Offline

#2 2014-10-05 22:59:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: way to learn device & partitions on inserted USB-drive?

{f,g}disk -l

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-10-06 03:21:31

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: way to learn device & partitions on inserted USB-drive?

cat /proc/partitions

Works on many Linux systems and uses only cat.

Offline

#4 2014-10-06 03:22:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: way to learn device & partitions on inserted USB-drive?

lsblk

Offline

#5 2014-10-06 04:53:12

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: way to learn device & partitions on inserted USB-drive?

blkid

Offline

Board footer

Powered by FluxBB