Operating System - HP-UX
1753510 Members
5179 Online
108795 Solutions
New Discussion юеВ

Re: REMOVE INVALID ENTRIES IN ETC/FSTAB

 
ajin
Frequent Advisor

REMOVE INVALID ENTRIES IN ETC/FSTAB

ANY SPECIFIC COMMAND TO REMOVE INVALID ENTRIES IN ETC/FSTAB ?
10 REPLIES 10
Venkatesh BL
Honored Contributor

Re: REMOVE INVALID ENTRIES IN ETC/FSTAB

If you know the entries, you could just 'vi' and remove yourself. I doubt if there is any command to 'auto-detect' invalid entries and remove them.
ajin
Frequent Advisor

Re: REMOVE INVALID ENTRIES IN ETC/FSTAB

or ANY OTHER SCRIPT FOR THIS?
Steven Schweda
Honored Contributor

Re: REMOVE INVALID ENTRIES IN ETC/FSTAB

I doubt that ANY OTHER SCRIPT knows what you
mean by INVALID. I sure don't. Do you? If
you do, then you should be able to write a
script to do the work. If you aren't, then
perhaps you shouldn't be playing with
/ete/fstab.
Tim Nelson
Honored Contributor

Re: REMOVE INVALID ENTRIES IN ETC/FSTAB

( stop YELLING :)

vi /etc/fstab

delete your entries that you consider invalid.

save.

No real other way.
Pete Randall
Outstanding Contributor

Re: REMOVE INVALID ENTRIES IN ETC/FSTAB

To quote the man page:

"DESCRIPTION
fstab is an ASCII file that resides in directory /etc. Programs read it, but do not write to or from it. System administrators are responsible for creating and maintaining this file properly."


Pete

Pete
Kapil Jha
Honored Contributor

Re: REMOVE INVALID ENTRIES IN ETC/FSTAB

what has happen to your fstab.
what is invalid in it.
As told vi is the only way....hmm emacs is another way...as well.
;)
Kapil
I am in this small bowl, I wane see the real world......
Srimalik
Valued Contributor

Re: REMOVE INVALID ENTRIES IN ETC/FSTAB

I think by INVALID you mean the logical volumes for those entries have been deleted. right? or something like that and ytou do not want the filesystem to be mounted.

JUst go and delete the entries from /etc/fstab.
Its no rocket science.

abandon all hope, ye who enter here..
ajin
Frequent Advisor

Re: REMOVE INVALID ENTRIES IN ETC/FSTAB

Yes It has lot of entries in already mounted file system and give errors while booting
Mustafa Gulercan
Respected Contributor

Re: REMOVE INVALID ENTRIES IN ETC/FSTAB

could you post your fstab file?