Web lists-archives.com

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




	Hi.

On Sun, Apr 21, 2019 at 09:14:02PM +0200, Jonas Smedegaard wrote:
> ...but the ideal for me would be a command considered safe to call as 
> root which did _not_ involve piping tricks, to limit the risk of 
> confusion (I still remember myself in my early days of linux typing ">" 
> instead of "<" and accidentally wiping a file I wanted to read).
> 
> (but before anyone suggests it: No, "dd" is the wrong tool here!)

Sure. It's oldschool, but it works.

echo 'ACTION=="add", ENV{ID_BUS}=="usb", KERNEL=="sd*", GROUP="floppy"'
\ >  /etc/udev/rules.d/z_local.rules

useradd  ... floppy

Reco