1834389 Members
1826 Online
110066 Solutions
New Discussion

Re: fsdb with a swap fs

 
shai kedem
Occasional Advisor

fsdb with a swap fs

Hi,

when I try to use fsdb on a FS that is defined as swap fs (in /etc/fstab), I get an error that fsdb cannot execute on this kind of FS.
This is regardless of the FS type (vxfs, hfs, etc.)

Does any one know how to overcome this problem (without ofcourse modifying /etc/fstab).

BTW, the fsdb command I'm using is just to read the file system structure, so it is not supposed to destroy anything in the FS.
1 REPLY 1
James R. Ferguson
Acclaimed Contributor

Re: fsdb with a swap fs

Hi:

I presume that you are explicitly specifying the filesystem type ("-F vxfs" for instance in the 'fsdb' command string. If not, do that, and/or try setting up /etc/default/fs with the entry "LOCAL=hfs" or "LOCAL=vxfs" depending on which is your default filesystem type. In the absence of an /etc/default/fs file, or an explicit type specification, 'fs_wrapper' uses entries in /etc/fstab to determine the filesystem type when invoking filesystem handling commands. Since your /etc/fstab type entry is "swapfs", for the filesystem you are attempting to query, I would expect the 'fsdb' to fail.

I have always used device swap. I?m curious why you are using filesystem swap and exactly how (command-wise) you set it up. Would you comment, please?

I?m also curious why you want to scrutinize a filesystem with 'fsdb'. Have you done so with hfs and/or vxfs filesystems not otherwise being used for swap?

...JRF...