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
Mounting Hdd tatacoffee Shell Programming and Scripting 2 02-15-2008 09:45 AM
mounting USB akhil1460 UNIX for Advanced & Expert Users 1 08-05-2006 09:09 AM
Mounting help. iconn UNIX for Dummies Questions & Answers 1 06-03-2005 12:34 PM
mounting cds? matt2kjones UNIX for Dummies Questions & Answers 3 01-13-2004 12:27 PM
Mounting...? mo0ness Filesystems, Disks and Memory 1 07-03-2003 03:04 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2003
Registered User
 

Join Date: Jul 2003
Posts: 7
mounting a dir

is there any way i can mount a folder to anoter?

im askng cuz im on knoppix, and i wanna configure my apache server, then copy the folder to /dev/hda1 so i mount to it later, over the old apache files, so i can run it again w\o configs....... is this possible?
Forum Sponsor
  #2 (permalink)  
Old 07-10-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
If you are asking if you can mount a partition over a folder, then yes.

# pwd
/
#df -k /export/home
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 961257 509377 394205 57% /
# ls -l /export/home
ls -l /export/home
total 2
drwxr-xr-x 6 unixops sysadmin 512 Jul 10 09:29 unixops
#
mount /dev/dsk/c0t0d0s6 /export/home
# df -k /export/home
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s6 480620 9 432549 1% /export/home

# ls -l /export/home
total 16
drwx------ 2 root root 8192 Sep 20 2002 lost+found


Note that mounting c0t0d0s6 over /export/home, the unixops directory is no longer seen. Once the mount point is unmounted, the unixops directory will be accessible.

As far as will this work with what you are attempting to do, I'm not sure I fully understand that problem. I don't see any harm in trying it since you should not be removing anything.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:40 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 Global Fact Book

Content Relevant URLs by vBSEO 3.2.0