The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Additional book recommendations era I'm new to Unix. Which books should I read? 0 05-18-2008 03:52 AM
additional interfaces in XEN environment sap4ever Linux 0 03-03-2008 04:08 AM
sed Command - Need Additional Assistnce guiguy Shell Programming and Scripting 3 03-31-2006 03:13 PM
Help with Additional Password Features rambo15 UNIX for Advanced & Expert Users 1 07-25-2005 05:44 AM
Additional character output negixx Shell Programming and Scripting 2 06-13-2005 02:18 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-26-2008
Registered User
 

Join Date: Sep 2008
Posts: 1
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
Reply With Quote
Forum Sponsor
  #2  
Old 09-27-2008
drl's Avatar
drl drl is offline
Registered User
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 556
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0