Operating System - HP-UX
1833780 Members
2487 Online
110063 Solutions
New Discussion

Re: fstab with dirty characters

 
SOLVED
Go to solution
HDgio
Regular Advisor

fstab with dirty characters

I have a fstab with of the dirty characters as I can clean up it and why it happens
17 REPLIES 17
Zigor Buruaga
Esteemed Contributor

Re: fstab with dirty characters

Hi,

Are you referring to /etc/fstab or /etc/lvmtab?

Could you please post the file?

Kind regards,
Zigor
Chris Wilshaw
Honored Contributor

Re: fstab with dirty characters

The invalid characters in fstab can be removed using the vi editor

This corruption will most likely have been caused by someone editting the file.
RAC_1
Honored Contributor

Re: fstab with dirty characters

I think you are talking abt /etc/fstab only and /etc/lvmtab.(lvmtab is not a text file, should not be edited in any way)

To reconstruct the /etc/fstab file do mount -p and redirect it to a file. Also check it has appropriate permissions.

Hope this helps.
There is no substitute to HARDWORK
G. Vrijhoeven
Honored Contributor

Re: fstab with dirty characters

Hi,

The fstab is a text file, and can be edited with vi. Normally it is only checked when the server is booting. What you can do is:

edit the fstab and:
# mount -a

the respond should be like:

mount: /dev/vg00/lvol8 is already mounted on /var
mount: /dev/vg01/lvol1 is already mounted on /var/opt/ignite
mount: /dev/vg00/lvol7 is already mounted on /usr
mount: /dev/vg00/lvol6 is already mounted on /tmp
mount: /dev/vg00/lvol5 is already mounted on /opt
mount: /dev/vg00/lvol4 is already mounted on /home
mount: /dev/vg00/lvol1 is already mounted on /stand

Gideon
HDgio
Regular Advisor

Re: fstab with dirty characters

Excuse me
I do not have the headl, the file is lvmtab
with dirty characters
T G Manikandan
Honored Contributor

Re: fstab with dirty characters

lvmtab is not a text file.

you can view the contents using

#strings /etc/lvmtab
Zigor Buruaga
Esteemed Contributor

Re: fstab with dirty characters

Hi,

OK, now it's clear. lvmtab is not a text file.
Try with:
# strings /etc/lvmtab

Kind regards,
Zigor
RAC_1
Honored Contributor

Re: fstab with dirty characters

/etc/lvmtab file is not text file. It is logical volume table details file.

DO
strings /etc/lvmtab
There is no substitute to HARDWORK
T G Manikandan
Honored Contributor

Re: fstab with dirty characters

The best way would be to use

vgdisplay for the VG configurations.

strings is a command which can show the ASCII contents of binary file
HDgio
Regular Advisor

Re: fstab with dirty characters

I would want to clean up it and not to visualize the content
Thanks to all
HDgio
Regular Advisor

Re: fstab with dirty characters

this is the output file of the
strings /etc/lvmtab
/dev/vg00
/dev/dsk/c3t2d0
/dev/dsk/c3t0d0
/dev/dsk/c1t0d0
/dev/dsk/c1t2d0
/dev/vg_cem01
/dev/dsk/c4t2d0
/dev/dsk/c4t1d0
/dev/vg_doc_DISK1
1ia?
/dev/dsk/c10t0d2
/dev/dsk/c10t0d3
/dev/vg_doc_DISK0
/dev/dsk/c10t0d0
/dev/dsk/c10t0d1
/dev/dsk/c10t0d4
/dev/dsk/c10t0d5
What is 1ia?
Pete Randall
Outstanding Contributor
Solution

Re: fstab with dirty characters

Giuseppe,

It's just extraneous vg header info. There's nothing you can do to get rid of it so there's nothing to worry about it. Here's mine:
/dev/vg00
~0;TMm
/dev/dsk/c1t6d0
/dev/dsk/c1t5d0

It's got garbage in it too (~0;TMm), but it's not something to be fixed. That's just the way it is.


Pete

Pete
HDgio
Regular Advisor

Re: fstab with dirty characters

thanks to all
Angus Crome
Honored Contributor

Re: fstab with dirty characters

Try

strings /etc/lvmtab | grep dev
There are 10 types of people in the world, those who understand binary and those who don't - Author Unknown
HDgio
Regular Advisor

Re: fstab with dirty characters

Very nice thanks and excuse my stupidity
Bye
Michael Schulte zur Sur
Honored Contributor

Re: fstab with dirty characters

Hi Giuseppe,

you may not have the knowledge or the training but I wouldnt call that stupidity. Dont be so hard on yourself. Just keep on learning. ;-))

greetings,

Michael
Angus Crome
Honored Contributor

Re: fstab with dirty characters

Giuseppe,

Sorry if my previous post seemed curt, it was not intended as such. One of my bosses had just stepped into my cube, with "THAT" look on his face, so I needed to answer quick.
As is generally the case, he was blowing things way out of proportion.

Anyway, I'm glad it helped.
There are 10 types of people in the world, those who understand binary and those who don't - Author Unknown