1826106 Members
4711 Online
109690 Solutions
New Discussion

bdf not see /etc

 
SOLVED
Go to solution
Jose Ramirez_6
Advisor

bdf not see /etc

hello.
I can??t see /etc from bdf but i can acces to the directory and see the files. I had add in the files fstab and mnttab the lines for /etc.

if i rebbot the machine the line for the file mnttab is deleted.

if i do
mount /dev/vg00/lvol2 /etc the respond is:
/dev/vg00/lvol2: unrecognized file system

thank you.


jose ramirez
5 REPLIES 5
melvyn burnard
Honored Contributor
Solution

Re: bdf not see /etc

/etc is NOT a separately mountable file system.
and the reason you get the error is that unless you have changed something, /dev/vg00/lvol2 is your primary swap device.

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Bill McNAMARA_1
Honored Contributor

Re: bdf not see /etc

/etc is not a filesystem

/etc/ is a directory under /

Later,
Bill
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: bdf not see /etc

lvol2 as mentioned is swap.

lvlnboot -v should defined it:

kibo:root> lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t15d0 (0/0/1/1.15.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t15d0
Root: lvol3 on: /dev/dsk/c1t15d0
Swap: lvol2 on: /dev/dsk/c1t15d0
Dump: lvol2 on: /dev/dsk/c1t15d0, 0



kibo:root> bdf
Filesystem kbytes used avail %used Mounted on
/dev/root 143360 37736 99143 28% /
/dev/vg00/lvol1 83733 30462 44897 40% /stand
/dev/vg00/lvol8 1740800 888234 799742 53% /var
/dev/vg00/lvol7 2048000 583054 1373427 30% /usr
/dev/vg00/lvol4 512000 388966 115550 77% /tmp
/dev/vg00/lvol6 2048000 1278911 721184 64% /opt
/dev/vg00/lvol5 40960 32028 8399 79% /home



kibo:root> cat /etc/fstab
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2


Try the fstyp command before mounting.
kibo:root> fstyp /dev/vg00/lvol1
hfs
kibo:root> fstyp /dev/vg00/lvol2
unknown_fstyp (no matches)
kibo:root> fstyp /dev/vg00/lvol3
vxfs

Later,
Bill

It works for me (tm)
Martin Burnett_2
Trusted Contributor

Re: bdf not see /etc

Hello Jose,

1. Normally on HP-UX installations /etc is not a mounted filesystem but simply a directory under root. This is so that when you are in single user mode you can access all of the files in /etc without having a mounted file system.

2. /dev/vg00/lvol2 is normally swap space, (raw device) which is why you receive "unrecognized file system".

3. If you are simply trying to see the size of the /etc directory I would suggest you use something like the du command.

# du -sk /etc
1520 /etc

The number here is displayed in 1024-byte blocks.

Perhaps it would be better if you told us what it is you are trying to achieve?

Martin
Jason VanDerMark
Trusted Contributor

Re: bdf not see /etc

If you ever wonder about which directory belongs to which filesystem you can simply cd to that directory(e.g. cd /etc) and then type 'bdf .' That will tell the bdf to give you the information for the filesystem that you are currently in. I hope that this helps.

Regards,
Jason V.
Tie two birds together, eventhough they have four wings, they cannot fly.