[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Partition information as text file?



On Fri, Feb 01, 2019 at 07:30:31PM +0100, Pascal Hambourg wrote:
> Le 01/02/2019 à 16:23, tomas@tuxteam.de a écrit :
> >
> >   tomas@trotzki:~$ file /dev/mapper/trotzki-home
> >   /dev/mapper/trotzki-home: symbolic link to ../dm-4
> >
> >Ah.
> >
> >   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

Yep, thanks. I just wanted to sketch a path to the idea.

> >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...).

This is of course more correct than my handwaving description :-)
> 

Attachment: signature.asc
Description: Digital signature


Reply to: