Viewed k times. Improve this question. Community Bot 1. Add a comment. Active Oldest Votes. Yes, according to man df you can: -T, --print-type print file system type Another way is to use the mount command. Improve this answer. EvanCarroll in the fuse case, this helps: lsblk -no name,fstype — Basj. Perfect, this works also for unmounted filesystems and even images. Similarily I am looking for similar type of command on AIX.
I hope my request is clear. Last edited by Don Cragun; at PM.. Don Cragun. Join Date: Jul Originally Posted by Maddy Join Date: Feb This User Gave Thanks to agent. Regards, Maddy. Join Date: Nov I doubt IBM will ever support "-h" and I know coreutils is not going to support "-g" - because I asked. The answer was: we have "-h". Anyway, to summarize what you are seeing I switched to root, because not all directories were directly readable - saving you that I just type the request - and it works!
Code :. Hi Michael, Your command is not helpful. I am unable to find answers I am looking for using your commands. Sorry for the confusion then. Clifford Mathew Clifford Mathew 21 1 1 bronze badge. A more direct way to obtain a list of LVs on a specific PV is to script around this: lspv -M hdisk14 basic output: hdisk hdisk lv hdisk lv hdisk lv hdisk lv hdisk lv Generally the lines are the form of: PVname:PPnum [LVname: LPnum [:Copynum] [PPstate]] It is fairly easy to cut all the unneeded fields and leave only PVname and LVname.
Maximus Minimus Maximus Minimus 8, 1 1 gold badge 21 21 silver badges 35 35 bronze badges. Ewan Leith Ewan Leith 1, 8 8 silver badges 7 7 bronze badges. But I want to know what mount points are on which disks. How can I know to run lspv -l "hdisk0" - do I just randomly pick hdisk0?
There are more than disks on this server hdisk0-hdisk more actually — BrianH. The mount points can be spread over multiple disks as long as they are within the same volume group, so I'd start by running it across every hdisk and building a spreadsheet of the results.
With the command mount you have the LV of your FS. Falcon Momot Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Hi forum, So I am trying to determine the OS type with the following script:! How to determine the fie system type? Good day I need create new mount points on a server. I'm not very familiar with HP-UX and was given steps on how to go about doing the mounting, etc.
Before I start though, I need to determine which file system type is currently being used. This will determine whether i need to extend the Findout iLO type installed in a machine. IP address will be given in the command line of the script.
I'm writing a gui for the core utility shred. I want to be able to warn the user if they are about to shred a file that is on a journaled file system. In order to do this, I must learn the file system type of the path they are about to shred.
0コメント