Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • ajouté | grep -v 'loop' dans la commande pour ignorer les "block device" virtuel ex: for SsDrive in $(find /sys/block/* -maxdepth 1 -exec echo {} \; -exec grep '0' {}/queue/rotational \; | grep -v 'loop' | grep -B1 '^0' | grep '^/' | sed 's/^.*\///g') ; do find /dev/ -name $SsDrive[0-9] ; done
    – user515185
    Commented Jan 28, 2020 at 21:50
  • I noticed after my translation yesterday that you've previously rolled back attempted translations. Please note that answers on this site should be in English. Thank you!
    – Jeff Schaller
    Commented Jan 30, 2020 at 17:56
  • Add | grep -v 'loop' on the command line to forget the loop (virtual block device ) ex: for SsDrive in $(find /sys/block/* -maxdepth 1 -exec echo {} \; -exec grep '0' {}/queue/rotational \; | grep -v 'loop' | grep -B1 '^0' | grep '^/' | sed 's/^.*\///g') ; do find /dev/ -name $SsDrive[0-9] ; done
    – user515185
    Commented Jan 30, 2020 at 21:20