Moved "/*" to another destination - what to do?


 
Thread Tools Search this Thread
Operating Systems AIX Moved "/*" to another destination - what to do?
# 1  
Old 09-20-2012
Moved "/*" to another destination - what to do?

Hi All,
please i wouldnt know if there is a way out of the stupid thing i did. i was trying to move all the files in the root directory to a temporary folder i created and mistakenly issue mv * /proo and the system moved all the folders into that directory and couldnt un-moved it back it ws coming up with command not found.
Please can any one help ?

Last edited by bakunin; 09-20-2012 at 11:00 AM..
# 2  
Old 09-20-2012
You will most certainly need a maintenance boot, and possibly best if you put this into the "Emergency UNIX and Linux Support !! Help Me!!" forum?
# 3  
Old 09-20-2012
Probably you won't be able to avoid a complete restore.

First thing: calm down. Nobody shaking for fear should be allowed anywhere near a system. Go out of the office for five minutes, smoke a cigarette, drink a coffee - anything, but DON'T TOUCH THE SYSTEM!

I wonder if your move even succeeded, because "/proo" is in the root-fs "/" and there is not that much space in it usually. Probably only a small part of vital files was really moved.

First, try if you still have the system binaries: try "mv". If it says something like "missing file operand" or a similar error this is fine - you still have it. If the answer is "not found" you're in deep manure.

In this case, change into "/proo" first and issue an "echo *" - this is the shell replacement for "ls", because if "mv" is missing then "ls" is probably missing too. Search for the binaries (probably "/proo/usr/bin"), then set the PATH temporarily to this directory where you found "mv":

Code:
PATH=/proo/usr/bin:$PATH ; export PATH

this should give you at least access to "mv".

- Check if in "/proo" are only the parts you moved there accidentally. Use "ls" if you have it, otherwise use "echo *" like above and compare the output with the output of a working system. It has not to be 100% congruent, but most of it should match.

- If this is the case try to move back everything you have moved away:

Code:
mv /proo/* /

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies

2. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

3. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

4. Solaris

The slices "usr", "opt", "tmp" disappeared!!! Help please.

The system don't boot. on the screen appears following: press enter to maintenance (or type CTRL-D to continue)...I checked with format command. ... the slices "0-root","1-swap","2-backup" exist. ...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies

5. Post Here to Contact Site Administrators and Moderators

My thread got moved to "What's on your mind?"

So there's this discussion I started (though I guess it's pretty much just myself and one other guy) in the "What's your most useful shell?" thread - Neo suggested that it shouldn't be there and gradually I came to agree with him, so I posted my next message of the discussion to a new thread, which... (3 Replies)
Discussion started by: tetsujin
3 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. Shell Programming and Scripting

"sed" to check file size & echo " " to destination file

Hi, I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if the size is more than 128KB, do a echo " " > /var/log/messages, so that the file size will be set... (7 Replies)
Discussion started by: jockey007
7 Replies

8. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
Login or Register to Ask a Question