command to display the device-fs-uuid-mount point
Hi, I need a command to display the next info from my hdd:
device name - filesystem - uuid - mount point
I found blkid but the mount point is not displayed, I've already look in man but there is no parameter for that, my question is: is there another that can help me?
ls -l *
and you can also find some info with 'mount' and no other options.
Depending on your distro you may need to do it as root or sudo
/dev/dsk won't give you all block devices - just the full disk devices. (For example it wouldn't show /dev/mapper LVM devices or /dev/md software RAID devices.)
The filesystem mountpoint is not part of the device. That is to say you can mount a filesystem on any mountpoint you want.
If you run "blkid" with no flags it should show you all block devices with details including LABEL (if any), type and uuid. You can then grep for the device name and LABEL (if any) in /etc/fstab to determine normal mountpoint and run df -h to determine current mount point. Essentially you'd have to to write a script to relate all this info together the way you want it. Note that some devices (e.g. swap) will show up in blkid but do not have mount points but rather special purposes for them. The normal swap devices can be seen in /etc/fstab.
|All times are GMT -5. The time now is 04:07 PM.|