[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What's the device name of my microSD card?



Quoting Paul Sutton (2019-04-21 20:17:16)
> 
> On 21/04/2019 19:02, Erik Josefsson wrote:
> > I run into my ignorance already at instruction 2: "Locate device 
> > name of your microSD card".
> >
> > It turns out when I use completion with ls /dev/disk/by-id/ that my 
> > new USB microSD card reader says that my micro SD card has two 
> > names:
> >
> >     usb-Generic_STORAGE_DEVICE_000000001532-0:0
> >     usb-Generic_STORAGE_DEVICE_000000001532-0:0-part1

The clues missing from that instruction is that you should locate the 
_path_ (not only the name) for the _disk_ (not partitions on it).


> Not to sure if this helps.  if you run lsblk it will list devices 
> connected to the system,  just plugged in a usb flash disk and it 
> showed up as
> 
> sdg      8:96   1   3.8G  0 disk
> ├─sdg1   8:97   1   640M  0 part /media/psutton/Rescatux0.51b3
> └─sdg2   8:98   1   704K  0 part

Yes, I agree lsblk is a good tool here: It a) shows topology by default 
which may intuitively help distinguish a USB stick often with a single 
partition from an internal harddrive with several partitions that would 
be devastating to accidentally overwrite, and b) lists explicitly which 
are disks and which are partitions.

(I only discovered that tool recently)

Thanks, Paul!


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: