- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to restore fstab file?
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
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
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
04-19-2004 09:23 PM
04-19-2004 09:23 PM
how to restore fstab file?
I managed to destroy my fstab file. I'm using the logical volume manager. Is there an easy way to create it? Or do I have to edit the file?
Thanks,
Aleks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 09:26 PM
04-19-2004 09:26 PM
Re: how to restore fstab file?
Restore form backup !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 09:31 PM
04-19-2004 09:31 PM
Re: how to restore fstab file?
#mount -p >/etc/fstab
check the contents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 09:36 PM
04-19-2004 09:36 PM
Re: how to restore fstab file?
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 09:37 PM
04-19-2004 09:37 PM
Re: how to restore fstab file?
Just tried TGM solution on my testserver, works like a charm.
# mv /etc/fstab /etc/fstab.old
# mount -p > /etc/fstab
# mount -a
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:24 PM
04-19-2004 10:24 PM
Re: how to restore fstab file?
But do remember to add entries of the swaplv's into fstab manualy
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 01:41 AM
04-20-2004 01:41 AM
Re: how to restore fstab file?
the system is running again! The trouble was I noticed my fstab was gone only while rebooting. So mount -p did not work. And I had no backup either. I had to mount the lvols and examine the contents and then create the fstab using echo like this (no vi):
echo "/dev/vg00/lvol5 /usr vxfs delaylog 0 2" >> /etc/fstab
Thanks for your replies!
Aleks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 01:52 AM
04-20-2004 01:52 AM
Re: how to restore fstab file?
If yes, on some other server where you have tape drive you can do as follows.
mt -f /dev/rmt/0mn fsf 1
cd /tmp
tar -xvf etc/fstab /dev/rmt/0mn
Then check that file and boot into single user mode and create a fstab file.
Anil