You are not logged in.
Pages: 1
how do i find a device node for a disk mounted by hal when i know the mount point
i need this for a script.
Offline
What is the output of mount? It should give the block device and mount point. I would think you can grep/awk or sed the rest out to get what you want for the script.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
cat /etc/mtab -or-
cat /etc/mtab | awk -v m=$MOUNTPOINT '{ if ($2 == m) print $1 }'
Offline
Thank you thats just what i was looking for
Offline
Pages: 1