- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc accidentally deleted
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
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
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-29-2009 05:03 AM
тАО04-29-2009 05:03 AM
latest ignite:yesterday
media tape:dds3
os:hpux 11.11
uname:HP-UX hostname B.11.11 U 9000/800 1684319383 unlimited-user license
question 1:possible ways to recover /etc directory?
question 2:already used command tar xvf /dev/rmt/0m /etc,still no output?any idea?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 05:08 AM
тАО04-29-2009 05:08 AM
Re: /etc accidentally deleted
mt fsf /dev/rmt/0mn 1
then you can use tar to extract what you need.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 05:10 AM
тАО04-29-2009 05:10 AM
Solution# mt -f /dev/rmt/0mn rew
# mt -f /dev/rmt/0mn fsf 1
# cd /
# tar -xvf /dev/rmt/0mn etc
In your example above you used '/etc' as the path to restore. With m_t_r all paths are stored relative to the '/' directory **without** a leading '/'.
To verify this you could do a 'tar -tvf /dev/rmt/0mn' instead of the 'tar -xvf' above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 05:20 AM
тАО04-29-2009 05:20 AM
Re: /etc accidentally deleted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 05:27 AM
тАО04-29-2009 05:27 AM
Re: /etc accidentally deleted
>>extracting /etc directory?
NO, you are just **extracting** (reading) data, not writing to the tape.
>>does mt command also have an affect?
NO, mt just repositions the tape. Again it does not write anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 05:30 AM
тАО04-29-2009 05:30 AM
Re: /etc accidentally deleted
The backup you are taking is to use at critical situation.
Put your last ignite tape to the drive.Issue these commands.
# mt -f /dev/rmt/0mn rew
# mt -f /dev/rmt/0mn fsf 1
# cd /
# tar -xvf /dev/rmt/0m etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 05:35 AM
тАО04-29-2009 05:35 AM
Re: /etc accidentally deleted
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 05:41 AM
тАО04-29-2009 05:41 AM
Re: /etc accidentally deleted
if it isn't an ignite, let us know what kind of back up it is!
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 05:45 AM
тАО04-29-2009 05:45 AM
Re: /etc accidentally deleted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2009 05:51 AM
тАО04-29-2009 05:51 AM