Moved root directory to tmp


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Moved root directory to tmp
# 1  
Old 11-22-2004
Moved root directory to tmp

I just received a phone call from a customer who accidentally typed this in:

# mv * /tmp

They did this from the root directory. I think they thought they were in a different folder. So now no commands work. I even adjusted the path to have the /tmp in front of everything. Even when I went into /tmp/usr/bin the commands still would not work.


Anyone have any ideas on what I can do??

this is on Sco Openserver 5.0.4
# 2  
Old 11-22-2004
With a disaster of that magnitude, it's time to re-install the the os and load the back up tapes.
# 3  
Old 11-22-2004
thats what I was thinking but I thought I would run it past you guys first.

Thanks for the fast reply!!!!
# 4  
Old 11-22-2004
Code:
/tmp/bin/mv /tmp/* /

Why this wouldn't work? Because SCO has dynamically linked /bin and /sbin stuff?
# 5  
Old 11-23-2004
I am guessing that permissions changed when the move command was used.
# 6  
Old 11-23-2004
This is a bit like asking for the precise cause of death when someone takes a direct hit from a nuclear weapon.

With no /dev/tty to write on we will never know. The executable will never get far enough to detect a missing shared library since there is no /dev/zero or /dev/full left to permit the mapping of anonymous memory. And the dynamic loader is gone anyway so what's the diff? I don't know if SCO kernel usied vm, but the kernel is gone. init will be attempting to complain about the absence of /etc/inittab but it can't open /dev/console. Can init even reap zombies in this state? Beats me.

When you lose all of /dev, all or /etc, and the kernel in one fell swope, it's hard to say which is the worst. If you want my guess I'll pick the loss of /dev.

But more to the point, I've seen dozens of disasters of lessor magnitude. Sometimes I've tried to recover usually by mounting the devastated disk on another system or by booting a install or a recovery medium. I succeeded about 25% of the time and only a few of those was a win. I was usually picking up the pieces for days. In contrast, it only takes a few hours to reload the os and users get a stable system much faster. So unless I'm completely convinced that I can deliver a correct running system in less than an hour or so I will always go for the re-install. I know it will work and I know how long it will take.
# 7  
Old 11-23-2004
Well said.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to use space in /tmp to increase root?

Hello All, I have solaris server running, uname -a SunOS host 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-280R Filesystem Size Used Available Capacity Mounted on /dev/md/dsk/d0 9.8G 8.7G 1.0G 90% / /dev/dsk/c1t1d0s3 4.3G 7.7M 4.2G ... (17 Replies)
Discussion started by: gull05
17 Replies

2. UNIX for Dummies Questions & Answers

Redirecting tmp files of SORT into different directory

Hey Guys, I am facing an annoying scenario, fewer times when I execute the sort command, it throws out on error saying that "No Space on available on /var/tmp/<temp file name>. May be it is set to /var/tmp directory. I was wondering, if I cant redirect the temporary file creation to any other... (3 Replies)
Discussion started by: abhisheksunkari
3 Replies

3. AIX

\tmp Directory is full up to 99%.

Dear All, We are on AIX OS, /tmp directory is filled up to 99% percent, Please suggest, How to get free space for "/tmp"? which files can be deleted from /tmp? and How to delete it? is there any commands..... Thanks in advance, Its very urgent, Helpful answers will be appreciated, Please... (7 Replies)
Discussion started by: kak
7 Replies

4. UNIX for Dummies Questions & Answers

User cannot retrieve email once his /home directory was moved

Hi, We run an IMAP server at work. I had to move the home directory of one user to another partition. I updated his account in /etc/passwd. For some reason his Microsoft Outlook account cannot rertrieve his new emails. I check /var/spool/mail and his emails are there... Any advice? (1 Reply)
Discussion started by: mojoman
1 Replies

5. Web Development

html link to images in /tmp directory

Because of permission issues, I need to link to images in my web page which are stored in /tmp which of course is located in the root directory but my actual html page is much further down in another directory. I thought the the following code should work, but the image comes up as a broken link:... (2 Replies)
Discussion started by: Solerous
2 Replies

6. Shell Programming and Scripting

perl script related /tmp directory

hi friends. i have to make a perl script to generate all users and space(how much they are using) and files(how much files they have) and time(how much time that accessed /tmp buffer) from /tmp directory. please provide me guidance. regards pranesh b. mishra (2 Replies)
Discussion started by: praneshmishra08
2 Replies

7. UNIX for Advanced & Expert Users

MODIFY DEFAULT TMP Directory

Am using SCO Unix Open Server 5. I am having trouble big running procedures as my / filesystem gets full before the report completes sorting. How do I change the default tmp directory. (1 Reply)
Discussion started by: Waitstejo
1 Replies

8. Solaris

Usage of /var/tmp/ directory on Solaris 10

Hi All, I have some threaded applications. Design of the application is such that one thread will decode some data and put it in data structure, And main thread will wait for another child threads pick up the decoded data. The data will be large decoded files. Once decoded data is picked by... (1 Reply)
Discussion started by: patilmuragesh
1 Replies

9. Red Hat

/tmp directory

i heard once that the /tmp directory was a ramfs (swap) that is cleared at reboot time, is this still the case in redhat EL 3 and 4 ? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

10. UNIX for Dummies Questions & Answers

/tmp directory gets to 100%

Eventhough there is no visible feed to the /tmp dir, when I shut my apps engine it gets down to 4%. Upon restarting my engine, give it about 10-15 minutes and the /tmp gets to a 100% again. My engine is running on AIX 4.3. Engines job is to process metapp (metacode to PDF) completed files and then... (2 Replies)
Discussion started by: buRst
2 Replies
Login or Register to Ask a Question