|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Trying to move Documents Folder via Symbolic Link Problem
Hi all,
I've just recently received my new iMac 27" i7 and have the SSD + HDD option, where the SSD contains OS + Applications and the HDD contains data. I read that moving the whole Home folder was not a good idea, therefore, I wanted to just move my Documents, Pictures and Download folder to the second internal HDD. I read an article/tutorial how to do this and this is what I followed (using Terminals): Code:
cp -Rp ~/Documents /Volumes/Macintosh Data HD chmod -R -N ~/Documents rm -rf ~/Documents ln -s /Volumes/Macintosh Data HD/Documents ~/Documents Code:
"ln: Documents: No such file or directory" Any ideas how I can get the link working or if not try and restore the original documents folder and just move the entire Home folder over to the Hard Disk data drive? Many thanks in advance! (note: I don't have any documents in the folders as of yet so I haven't lost any important info!) |
|
|
|
0
|
|
|
#2 | |
|
Quote:
Code:
cd /Volumes; ls -la Post the output. Last edited by LPZ; Sep 16, 2010 at 07:14 PM. |
||
|
|
0
|
|
|
#3 | |
|
Quote:
Code:
cd /Volumes; ls -la total 8 drwxrwxrwt@ 6 root admin 204 17 Sep 01:23 . drwxrwxr-t 30 root admin 1088 15 Sep 16:54 .. drwxr-xr-x 1 SimonNg staff 4096 16 Sep 12:21 BOOTCAMP drwxrwxr-x 9 SimonNg staff 374 17 Sep 00:26 Macintosh Data HD lrwxr-xr-x 1 root admin 1 17 Sep 01:23 Macintosh HD -> / drwxr-xr-x 1 SimonNg staff 4096 16 Sep 14:45 Windows Data HD |
||
|
|
0
|
|
|
#4 |
|
In Terminal,
Code:
cd /Volumes/Macintosh*Data*HD; ls -la |
|
|
|
0
|
|
|
#5 |
|
Result:
Code:
cd /Volumes/Macintosh*Data*HD; ls -la total 16 drwxrwxr-x 9 SimonNg staff 374 17 Sep 00:26 . drwxrwxrwt@ 6 root admin 204 17 Sep 01:23 .. -rw-r--r--@ 1 SimonNg staff 6148 17 Sep 00:46 .DS_Store drwx------ 3 root staff 102 16 Sep 12:35 .Spotlight-V100 d-wx-wx-wt 3 root staff 102 17 Sep 01:24 .Trashes drwx------ 5 root staff 170 17 Sep 01:17 .fseventsd drwxr-xr-x@ 3 SimonNg staff 102 17 Sep 00:31 Documents drwxr-xr-x@ 3 SimonNg staff 102 16 Sep 22:38 Downloads drwxr-xr-x@ 3 SimonNg staff 102 16 Sep 22:41 Pictures |
|
|
|
0
|
|
|
#6 |
|
OK, there's a directory named Documents where you copied it to.
In Terminal, enter Code:
cd ~; ls -la |
|
|
|
0
|
|
|
#7 | |
|
Quote:
Code:
cd ~; ls -la total 24 drwxr-xr-x+ 14 SimonNg staff 476 17 Sep 01:24 . drwxr-xr-x 5 root admin 170 15 Sep 15:29 .. -rw------- 1 SimonNg staff 3 15 Sep 15:29 .CFUserTextEncoding -rw-r--r--@ 1 SimonNg staff 6148 17 Sep 00:32 .DS_Store drwx------ 2 SimonNg staff 68 17 Sep 01:24 .Trash -rw------- 1 SimonNg staff 2140 17 Sep 01:55 .bash_history drwx------+ 3 SimonNg staff 102 15 Sep 15:29 Desktop drwx------+ 5 SimonNg staff 170 16 Sep 22:17 Downloads drwx------+ 30 SimonNg staff 1020 15 Sep 17:15 Library drwx------+ 3 SimonNg staff 102 15 Sep 15:29 Movies drwx------+ 4 SimonNg staff 136 16 Sep 20:59 Music drwx------@ 6 SimonNg staff 204 16 Sep 22:41 Pictures drwxr-xr-x+ 5 SimonNg staff 170 15 Sep 15:29 Public drwxr-xr-x+ 5 SimonNg staff 170 15 Sep 15:29 Sites |
||
|
|
0
|
|
|
#8 |
|
I just moved my entire home folder and I find it to be the perfect solution. There is no worries with this, it's even a recommended practice for linux users. Only precaution is to let one user on the main partition in case of failure.
__________________
Hackintosh G31M-S2L - Macbook 3,1 |
|
|
|
0
|
|
|
#9 | |
|
Quote:
Code:
ln -s /Volumes/Macintosh*Data*HD/Documents ~/Documents |
||
|
|
0
|
|
|
#10 | |
|
Quote:
So to move the folder, the symbolic link requires the * to denote a space? Also, is it worth moving that folder back to the home and just move the entire HOME folder over or just individually move folders that I require over to the second internal hard drive? |
||
|
|
0
|
|
|
#11 |
|
Sorry to be a pain, but to clarify the terminal code for moving the folder should be:
Code:
cp -Rp ~/Documents /Volumes/Macintosh*Data*HD chmod -R -N ~/Documents rm -rf ~/Documents ln -s /Volumes/Macintosh*Data*HD/Documents ~/Documents |
|
|
|
0
|
|
|
#12 | ||
|
Quote:
Instead of using the * in the Terminal commands, you should be able to use the space characters, provided you precede each with a \ So the following should work: Code:
cp -Rp ~/Documents /Volumes/Macintosh\ Data\ HD chmod -R -N ~/Documents rm -rf ~/Documents ln -s /Volumes/Macintosh\ Data\ HD/Documents ~/Documents Quote:
|
|||
|
|
0
|
|
|
#13 | |
|
Quote:
string1\ string2 ..denotes that string1 and string2 are actually one string containing the space character. Analogue, you can escape any special character if need (i.e. \* = literal * and not the wildcard mentioned above)
__________________
the net is vast and infinite :x1c, pb2400c, 4gs |
||
|
|
0
|
|
|
#14 |
|
Thank you so much for your help guys. I'm slowly starting to understand the whole symbolic link idea in terminal...(I think!)
I've managed to move the necessary folders over to the second internal HD and I believe are all operational. Although one last query if I may: Within my Home directory I still see the Documents/Downloads/Pictures folders except with a small arrow on the bottom left corner which leads to the actual folder on the second HDD (thus creating a symbolic link). Although I thought with the "rm -rf ~/Documents" command I deleted the folder? I shouldn't really be concerned as it's a link to the actual folder rather than a folder which holds data? Thanks. |
|
|
|
0
|
|
|
#15 | |
|
Quote:
Code:
rm -rf ~/Documents Code:
ln -s /Volumes/Macintosh*Data*HD/Documents ~/Documents Code:
cd ~; ls -l Code:
drwxr-xr-x 2 root staff 68B Dec 10 2008 libxslt-plugins -rwxr-xr-x 1 root staff 240K Dec 10 2008 libxslt.1.1.22.dylib lrwxr-xr-x 1 root wheel 20B Feb 8 2009 libxslt.1.dylib -> libxslt.1.1.22.dylib |
||
|
|
0
|
|
|
#16 |
|
Undo symbolic link??
So this method worked for me. I just partitioned my HD and linked folders over.
HOWEVER, i liked my desktop to the partitioned HD and causes problems, saying "operation can't be completed" SO, what do i have to do to undo the symbolic link i created?? Thanks in advance |
|
|
|
0
|
|
|
#17 |
|
|
0
|
|
|
#18 | |
|
Quote:
-bash: syntax error near unexpected token `newline' This is what i typed in to create the link cp -Rp ~/desktop /Volumes/Files chmod -R -N ~/desktop rm -rf ~/desktop ln -s /Volumes/Files/desktop ~/desktop Last edited by greenland; Apr 23, 2011 at 11:08 AM. |
||
|
|
0
|
|
|
#19 | |
|
Quote:
The Desktop folder starts with 'D' not 'd' - presumably that's a typo too? Edit: by the way, when you get rid of the link, logging out and back in again should rebuild your Desktop folder and you can bring the files back. As mentioned earlier in this thread, you'd be better to move your whole home directory. Last edited by plinden; Apr 23, 2011 at 11:14 AM. |
||
|
|
0
|
|
|
#20 | |
|
Quote:
I just deleted both symbolic links (after moving everything to a temp folder). Logged back in and copied the old desk top items back. I guess i could create symbolic links of individual folders on my desktop to the other driver, a pain yes, but that's the only other option i see (other than as you suggested - moving Home dir) thanks for your help |
||
|
|
0
|
|
|
#21 |
|
Hello guys, I have MacBookPro 17,2001 with 128 SSD (from Apple) and another second hard drive on Optibay - 750GB.
Please can you show me, how can I move my 1. Documents 2. Downloads 3. Music 4. Movies 5. Pictures 6. Sites to another hard drive. ![]() Can you give me a Terminal commands? Thank you! |
|
|
|
0
|
|
|
#22 |
|
error after symlink?
Hello,
Being a newbie at Terminal, I have no idea what I'm doing. Thought everything went well but when clicking on symlink, I get "The operation can’t be completed because the original item for “Documents” can’t be found." error. Any help is appreciated! |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Is there any way to move "My Kindle Content" folder from Documents folder? | bartenderonduty | Mac Applications and Mac App Store | 4 | Apr 29, 2011 11:53 AM |
| problem trying to upload a folder via ftp in terminal. | newmacuser23 | Mac OS X | 2 | Jan 5, 2011 10:01 AM |
| Trying to move my contacts/calendar via MissingSync to new iPhone... | Wingnut330 | iPhone Tips, Help and Troubleshooting | 1 | Jul 11, 2008 04:20 PM |
| EXC_BAD_ACCESS when trying to save image to app's /Documents folder | attodorov | Mac Programming | 6 | Apr 25, 2008 03:42 AM |
| Trying to move files from OS X to XP via wireless network. Help? | reubs | Mac OS X | 0 | Jan 11, 2008 08:06 AM |
All times are GMT -5. The time now is 12:28 PM.








Linear Mode

