-1

I had a homework question which I answered correctly:

Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?

The next question said:

Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the absolute device name which this link is pointing to?

How do you find the Absolute device name on Linux?

All I got was this on Google:

  • ls - list files in the file system.
  • lsblk - list the block devices (i.e. drives)
  • lspci - list the pci devices.
  • lsusb - list the USB devices.
  • lsdev - list all the devices.
  • 1
    What is an "Absolute device name"? – DopeGhoti Oct 10 '18 at 16:13
  • @DopeGhoti I don't know what the homework question means by that as well any helps? – Rakata Infinite Empire Oct 10 '18 at 16:14
0

it depends on what kind of device you are looking for. for example for network devices you can search through /etc/network or /etc/sysconfig/network or if you want your system information you can search through /sys/class. for HDD information search through /dev. these kind of files in linux contains really useful information. as i said before , depend of what kind of device you are looking for, you can find all information you need.

0

You have to list the device itself, for example:

ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 Oct  5 11:12 /dev/cdrom -> sr0

The name after -> represent the absolute device name

  • Works in this case but doesn't work for many devices. /dev/dm-0 and /dev/st* come to mind immediately. Do I actually have a serial device hooked to /dev/ttyS0? etc. – doneal24 Oct 10 '18 at 16:22
  • Didn't worked. The question says Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the ABSOLUTE device name which this link is pointing to? The previous question that I answered correctly was Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question? – Rakata Infinite Empire Oct 10 '18 at 16:27
  • @DougO'Neal you have to list a mounted device. Tty is not an actual device! – user88036 Oct 10 '18 at 16:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.