You are not logged in.

#1 2018-01-14 17:01:15

lesto
Member
Registered: 2010-07-13
Posts: 115

Assign different lable than sd* to removable disk

Hello,

im often using dd to create images for exernal board and stuff on different PCs with different disk setup;

to avoid stupid mistake like dd on one of the internal drive, i would like to have enumeration similar to /dev/sd*, but with different prefix, so the external disk/sdcard will appear as "/dev/ex*" or similar.

Seems like for disk i have to put my hand on 60-persistent-storage.rules, but not sure what line im looking for; the same for sd card reader, assigned in 80-udisks2.rules

Also the header of the files say they will be override at update, so i need to find a way to create alternative configuration and not edit the esisting hmm

Offline

#2 2018-01-14 17:19:57

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: Assign different lable than sd* to removable disk

lesto wrote:

Also the header of the files say they will be override at update, so i need to find a way to create alternative configuration and not edit the esisting

Yes, rules in /usr/lib/udev/rules.d/ are installed by packages and will thus be overwritten the next time the owning package is reinstalled or updated.

For system-local configuration, use the files /etc/udev/rules.d/.

Last edited by ayekat (2018-01-14 17:20:21)


pkgs │ hacks │ cfg │ blag

Offline

Board footer

Powered by FluxBB