image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old April 18th, 2007, 09:47 AM
Registered User
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ssmith11 is on a distinguished road
Help accessing external drive

Hi I am trying access an ibook in target disk mode via terminal. I see the following:

ssmiths-Computer:~ ssmith$ ls -l /Volumes
total 8
drwxrwxr-t 27 root admin 952 Apr 18 09:26 LaCie
drwxrwxr-t 29 root admin 1020 Apr 18 08:54 Macintosh HD
drwxrwxr-t 33 root admin 1156 Apr 18 09:27 SSDATA HD
lrwxr-xr-x 1 root admin 1 Apr 18 08:53 ssMacintosh HD -> /

I am trying to access folders on the Macintosh HD.

I am new to the command line and tried :
ssmiths-Computer:~ ssmith$ ls -f Macintosh HD
ls: Macintosh: No such file or directory

as you can see - I failed.

Thanks for any help
Reply With Quote
  #2  
Old April 18th, 2007, 10:27 AM
Registered User
 
Join Date: Jul 2005
Posts: 867
Thanks: 0
Thanked 4 Times in 4 Posts
simbalala is on a distinguished road
You need to escape the space

Not: ls -f Macintosh HD

but: ls -f Macintosh\ HD

The backslash tells the system to accept the space as a literal character. Or you can use quotes

ls -f "Macintosh HD"
Reply With Quote
  #3  
Old April 18th, 2007, 10:34 AM
Registered User
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ssmith11 is on a distinguished road
I'm not to good at this

ssmiths-Computer:~ ssmith$ sudo cd "Macintosh HD"
/usr/bin/cd: line 4: cd: Macintosh HD: No such file or directory
ssmiths-Computer:~ ssmith$ cd Macintosh\ HD
-bash: cd: Macintosh HD: No such file or directory
ssmiths-Computer:~ ssmith$
Reply With Quote
  #4  
Old April 18th, 2007, 11:57 AM
Registered User
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ssmith11 is on a distinguished road
A work around but still would like to know how to do this

I restarted my computer with the target disk (Macintosh HD) as the startup disk. I could run terminal from there and do what I wanted.

I would still love to know how to move between drives (volumes) from the command line.

Thanks
Reply With Quote
  #5  
Old April 18th, 2007, 01:37 PM
Registered User
 
Join Date: Mar 2005
Posts: 235
Thanks: 0
Thanked 3 Times in 3 Posts
artov is on a distinguished road
If I understood your prompt rigth, you did the cd "Macintosh HD" on your
home directory. Use cd /Volumes/Macintosh\ HD instead.

BTW. Depending on the shell you are using, pressing the <TAB> -key might
help: type cd /Volumes/Ma<TAB> and it should expand it to
cd /Volumes/Macintosh\ HD .
Reply With Quote
  #6  
Old April 18th, 2007, 01:39 PM
Registered User
 
Join Date: Mar 2005
Posts: 235
Thanks: 0
Thanked 3 Times in 3 Posts
artov is on a distinguished road
Also, I noticed you used "sudo cd Macintosh\ HD". It runs the cd -command
as root, but after it has run it, the command returns to yourself, on your
current directory.
Reply With Quote
Reply

Bookmarks

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 08:22 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2008 DigitalCrowd, Inc.