image
image

|


Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old July 2nd, 2008, 07:40 AM
Registered User
 
Join Date: Mar 2007
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
yogish is on a distinguished road
Unhappy how to mount the same file system in more than one place in mac os x

how can i mount a same file system(device) in more than one place in mac os x?.
Reply With Quote
  #2  
Old July 2nd, 2008, 09:04 AM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 9,735
Thanks: 2
Thanked 38 Times in 36 Posts
ElDiabloConCaca will become famous soon enough
I believe you just use the standard UNIX "mount" command to mount the device to more than one target directory.
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.4 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
  #3  
Old July 2nd, 2008, 09:44 AM
Registered User
 
Join Date: Mar 2007
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
yogish is on a distinguished road
Device is automatically getting mounted at /Volumes/UNTITLED.
i have created temp directory in /Volumes
when a type "mount /dev/disk2s1 /Volumes/temp"
i am getting resources busy error.
Reply With Quote
  #4  
Old July 2nd, 2008, 11:02 AM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 7,423
Thanks: 12
Thanked 81 Times in 65 Posts
nixgeek will become famous soon enough
You could also use the diskutil command to mount the volumes properly.
__________________
Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11
Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
Apple PowerBook Duo 230 (33 MHz MC68030) - System 7.1
"JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 12.1
"Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 8.04
Reply With Quote
  #5  
Old July 2nd, 2008, 11:52 PM
Registered User
 
Join Date: Mar 2007
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
yogish is on a distinguished road
Device /dev/disk1s1 is getting automounted on /Volumes/UNTITLED.
i want to mount the device again on different path like /Volumes/temp.
so that i can have same device mounted at two different place.
When i type " mount /dev/disk1s1 /Volumes/temp" in Terminal , i get the following message : /dev/disk1s1 on /Volumes/temp: Resource busy

Can anyone help me in this?
Reply With Quote
  #6  
Old July 3rd, 2008, 10:40 AM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 7,423
Thanks: 12
Thanked 81 Times in 65 Posts
nixgeek will become famous soon enough
First, use diskutil to unmount the volume from where it's being automounted. Then, make sure the directory that you're trying to mount to actually exists. Once those two things have been done, you should be able to use diskutil or the mount command to point the mount to where you want it to go.
__________________
Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11
Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
Apple PowerBook Duo 230 (33 MHz MC68030) - System 7.1
"JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 12.1
"Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 8.04
Reply With Quote
  #7  
Old July 4th, 2008, 12:01 AM
Registered User
 
Join Date: Mar 2007
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
yogish is on a distinguished road
i unmounted the volume using diskutil.
created two directory temp and temp1 in /Volumes.
used diskutil to mount the device: diskutil mount /dev/disk2s1.
it got mounted to /Volumes/UNTITLED.
Now how do i mount the device again?
Reply With Quote
  #8  
Old July 4th, 2008, 09:20 AM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 7,423
Thanks: 12
Thanked 81 Times in 65 Posts
nixgeek will become famous soon enough
Unmount the volumes again using diskutil and then force them to the directory you want with the mount command as follows:

Quote:
mount /dev/disk1s1 /Volumes/temp
Diskutil wants to mount them the way OS X automatically mounts everything...in /Volumes with the name of the volume itself (in this case, "UNTITLED"). If you notice, it will also show on the Desktop when it's loaded this way. If you mounted them manually using mount, they won't show up on the desktop as a mounted drive....just as a directory in /Volumes.
__________________
Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11
Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
Apple PowerBook Duo 230 (33 MHz MC68030) - System 7.1
"JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 12.1
"Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 8.04
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 12:52 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.