Web lists-archives.com

Re: Partition information as text file?

Le 01/02/2019 à 16:23, tomas@xxxxxxxxxx a écrit :

   tomas@trotzki:~$ file /dev/mapper/trotzki-home
   /dev/mapper/trotzki-home: symbolic link to ../dm-4


   tomas@trotzki:~$ file /dev/dm-4
   /dev/dm-4: block special (254/4)

Not yet what we wanted. But:

   tomas@trotzki:~$ sudo file -s /dev/dm-4

In one single command :

# file -Lsk /dev/mapper/whatever

Sudo is needed

No it's not. Read permission on the raw device is needed, by whatever way including sudo but not only (su, root session...).