Mounting an additional HW now no CLI


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mounting an additional HW now no CLI
# 1  
Old 09-27-2008
Mounting an additional HW now no CLI

I have a SUN V245 with Solaris 10 newly installed. I have 4 73Gb HDs in this server and thought I'd use one of the other 3 to load some applications but after issueing a mount it appears that I no longer have a CLI interpreter --


# mount -F ufs /dev/dsk/c1t2d0s0 /usr
# df
bash: /usr/sbin/df: No such file or directory
# df
bash: /usr/sbin/df: No such file or directory
# pwd
/etc
# cd /
# df
bash: /usr/sbin/df: No such file or directory
# man df
bash: /usr/bin/man: No such file or directory
# umount /dev/dsk/c1t2d0s0 /usr
bash: umount: command not found


can't even reboot as cmd is not recognized ...

What did I do here?

Thanks,
Bill
# 2  
Old 09-27-2008
Hi.
Code:
$ uname -a
SunOS vm-solaris 5.10
$ whereis umount
umount: /etc/umount /sbin/umount /usr/sbin/umount

The file in /etc and /usr both are symbolic links to /sbin, so you should be able to use:
Code:
/sbin/mount /usr

to uncover your original /usr

The reason it worked like this is:
Quote:
DESCRIPTION
mount attaches a file system to the file system hierarchy at
the mount_point, which is the pathname of a directory. If
mount_point has any contents prior to the mount operation,
these are hidden until the file system is unmounted.

-- excerpt from man mount
Best wishes ... cheers, drl
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Script creates additional file

Hi, I have created a test script like this : # cat script1.sh DAY=$(date +%d) MONTH=$(date +%b) YEAR=$(date +%Y) BC01="Blast_BC01" BC15="Blast_BC15" DIR1="$MONTH$YEAR_$BC01" DIR2="$MONTH$YEAR_$BC07" DIR3="$MONTH$YEAR_$BC15" if ;then mkdir -p "$YEAR/$DIR3" fi # When I... (5 Replies)
Discussion started by: anaigini45
5 Replies

2. Shell Programming and Scripting

Creating additional plugins for nagios

Team would like to know if anyone here had created a basic nagios plugin. I did write a simple postfix service checker. Then add it in nagios nrpe.cfg then restart nrpe and nagios and it is not working, its like i cant receive email if the service is stopped or running. #!/bin/bash... (0 Replies)
Discussion started by: kenshinhimura
0 Replies

3. Shell Programming and Scripting

Help with if else with additional condition

Input file: 3420023_3422482,3422486_3423070 46910 1795263_1798343 32681 1837399_1838886 1534 2148674_2149696,2149698_2149772 10203 3825382_3825555,3827296_3827900 198 1839890_1840294 72 . . Output file 3420023_3422482,3422486_3423070 3420023_3422482,3422486_3423070 46910 1795263... (1 Reply)
Discussion started by: perl_beginner
1 Replies

4. UNIX for Dummies Questions & Answers

How to run additional shells

Hi, unix newbi here. Im currently on the bash shell, what are the commands to run additional shells? for example i want to run csh and then ksh? Thanks. BT. (2 Replies)
Discussion started by: BillThompson
2 Replies

5. Linux

Additional mirrors on centos

How can I add additional mirrors to my CENTOS distro, according to this page AdditionalResources/Repositories - CentOS Wiki there are few fedora project repositories I'd like to add any of them but I don't know how? Thank you in advance (0 Replies)
Discussion started by: c0mrade
0 Replies

6. AIX

Install additional fonts ?

Hi, I have two fonts installed on my AIX machine: FONT FILE GLYPH FONT ID NAME SIZE ENCODING ==== ============== ===== ========= 0 Erg22.iso1.snf 12x30 ISO8859-1 1 Erg11.iso1.snf 8x15 ISO8859-1 I want to install more, how to obtain available fonts list ? What filesets I must install ?... (0 Replies)
Discussion started by: vilius
0 Replies

7. New to Unix. Which books should I read?

Additional book recommendations

To my surprise, I found many of my personal favorites to be missing from the book recommendations thread. Although dated, Kernighan & Pike's The Unix Programming Environment is a classical introduction, covering the shell, the scripting languages, make, troff, and some fundamental C programming... (0 Replies)
Discussion started by: era
0 Replies

8. UNIX for Advanced & Expert Users

Help with Additional Password Features

Hello: I have a customer who is requesting the following security features on a Solaris 8 system: 1. Password history for the three previous passwords. 2. User account lockout after 3 failed login attempts. Can anyone help provide me with a solution or direction for the above? (1 Reply)
Discussion started by: rambo15
1 Replies

9. Shell Programming and Scripting

Additional character output

Hi there, I am just wondering if somebody can help me find out why am I getting additional characters on my "echo" command to create a text file. Here's my unix script : #!/bin/ksh #============================================================ # Script Name : chk_ORDHD.ksh # Description... (2 Replies)
Discussion started by: negixx
2 Replies
Login or Register to Ask a Question