- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/fstab and /etc/mnttab have been edited with v...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 05:48 PM
тАО02-17-2004 05:48 PM
/etc/fstab and /etc/mnttab have been edited with vi (lines re-orderedvi yy p ZZ)
Subsequent to doing this, I have read somewhere (now where was that again?) that these file must (or should) not be edited!
Am I facing a disaster when I next reboot? If so, is there a way to 'fix' this problem?
Many Thanks
Leon
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 05:57 PM
тАО02-17-2004 05:57 PM
Solution/etc/mnttab is a file to keep records of file systems mounted. the manual page says
"/etc/mnttab should never be manually edited. Any manual changes made to /etc/mnttab are overwritten without warning by syncer, mount, and umount"
so running syncer command will overwrite your manual changes to /etc/mnttab.
Hope this helps
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 05:58 PM
тАО02-17-2004 05:58 PM
Re: /etc/fstab and /etc/mnttab have been edited with vi. Do I have a problem?
THe only thing is that the /etc/mnttab holds the information of the mounted file system and should not be edited.
#mv /etc/mnttab /etc/mnttab.old
#mount -a
which should read the /etc/fstab and rebuild the mnttab file
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 05:59 PM
тАО02-17-2004 05:59 PM
Re: /etc/fstab and /etc/mnttab have been edited with vi. Do I have a problem?
You'll be pleased to know that /etc/mnttab gets re-written if it is not in sync with what the kernel thinks as soon as something is mounted or unmounted. I beleive syncer will re-write it too if required.
In other words, you should be OK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 06:01 PM
тАО02-17-2004 06:01 PM
Re: /etc/fstab and /etc/mnttab have been edited with vi. Do I have a problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 06:10 PM
тАО02-17-2004 06:10 PM
Re: /etc/fstab and /etc/mnttab have been edited with vi. Do I have a problem?
editing fstab doesn't cause any problem, where as editing mnttab causes,
remove the mnttab and use 'mount -a' command which will rebuild the mnttab file