Justin Lim
walking in circles
Menu Close
  • Home
  • kubectl & jq
  • awk
  • sed
  • grep
  • Wishlist
  • Privacy Policy

raw

0

How to get major/minor numbers for raw devices

Posted on October 23, 2008 by jlim0930

#!/usr/bin/env perl while () { /^s*#/ and next; /(S+)s+(d+)s+(d+)/ and do { ($rawname, $major, $minor) = ($1, $2, $3); $syspath = qx!find /sys/block -name dev | xargs grep -l “^$major:$minor$” !;

System Stuff linux, raw, system

Tags

2 6 7 agent beats CA centos certificate cloud container dell docker docker-compose eck elastic elastic-agent elasticsearch elastic stack elk Ethan filebeat fleet grub grub2 k8s kibana kubectl kubernetes linux logstash metricbeat minikube minio monitoring openssl pod redhat rhel server snapshot ssl stack tls unix yum

Recent Posts

  • Migrated to VSCODE on docker
  • Configure S3 object storage as snapshot repository for elasticsearch on ECK
  • Elasticsearch Synthetics browser monitoring in kubernetes or containers
  • Upgrading stack, fleet, elastic-agents in k8s running with ECK
  • TROUBLESHOOT swiss-army knife container image

Recent Comments

  • sguilly on Plex scripts for metadata locking and maintenance
  • sai on Mounting certificates/CAs for elasticsearch pods in k8s for custom configurations – ECK
  • Configure S3 object storage as snapshot repository for elasticsearch on ECK – Justin Lim on New elastic kubernetes script – deploy-elastick8s.sh
  • sunny keila on Helm charts to install the Elastic Stack using minikube
  • Jorge Pabon on elasticsearch stack monitoring on kubernetes(ECK)

Categories

  • Cooking Stuff
  • General Stuff
  • Mobile Stuff
  • System Stuff
  • Uncategorized

© 2026 Justin Lim. All rights reserved.
Hiero by aThemes