Results 1 to 4 of 4

Thread: Change path of Documents

  1. #1
    Join Date
    May 2011
    Beans
    6

    Change path of Documents

    I have a dual boot Win 7 and Ubuntu 11.04 I just started setting up - and know almost nothing about Linux - I have all my data on separate drives from my OS drives, and would like to "arrive" at my "My Documents" file when i choose "Documents" in Ubuntu.

    The location of "My Documents" is - /media/New Volume/My Documents (which I found by dragging the folder onto the terminal)

    not quite sure how to put in the right command - something like

    ln -s /media/New Volume/My Documents ~Documents - (but that isn't right and didn't work).

    I also want to do the same with Music, Pictures and Videos.

    Anyone know how to do this?
    Many thanks
    John

  2. #2
    Join Date
    Aug 2006
    Location
    Michigan
    Beans
    392
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Change path of Documents

    The command looks like it can work but just needed to add a '/' after the '~':
    Code:
    sudo ln -s /media/New\ Volume/My\ Documents ~/Documents
    Just change the 'Documents' to whatever other directory you want to symbolically link to your Ubuntu Home Directory.
    ThisIsBryan: The Site | About Me
    HowTo: Setup Ubuntu Desktop with LVM Partitions WIKI
    Hardware Profile: Dell XPS 14z; 4GB DDR3 RAM; 700GB HD; Intel Corporation Centrino Advanced-N 6230; Intel i7 CPU @ 2.80 GHz

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Change path of Documents

    I learned a while back to stop using spaces. Use CamelCase or under_score or just onebiglongname. Windows will work without the spaces and it makes things a lot simpler in Linux.

    If you have one partition with many folders.
    #Or link all with one command:
    for i in `echo /mnt/data/*`;do ln -s $i; done

    Are you mounting your shared NTFS partition with fstab? So it is always mounted when you boot?

    NOTE: The mount point can be anywhere. If it's in your /home or /media folders it will show up under "Places". If it's directly off "/" or /mnt it will not.

    sudo mkdir /mnt/data
    sudo chown -R fred:fred /mnt/data
    sudo chmod -R 766 /mnt/data
    #Edit fstab with your UUID:
    UUID=a55e6335-616f-4b10-9923-e963559f2b05 /mnt/data ntfs-3g defaults 0 2
    #Verify entry is ok, if no errors it is:
    sudo mount -a
    #from home so default location of link is in /home/fred
    mv Music oldMusic
    # Music is a folder in the partition mounted as /mnt/data
    ln -s /mnt/data/Music
    #Or link all folders with one command:
    for i in `echo /mnt/data/*`;do ln -s $i; done

    Shared NTFS partition:
    http://www.howtogeek.com/howto/35807...ws-and-ubuntu/
    Last edited by oldfred; June 1st, 2011 at 01:56 AM.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Aug 2006
    Location
    Michigan
    Beans
    392
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Change path of Documents

    Quote Originally Posted by oldfred View Post
    for i in `echo /mnt/data/*`;do ln -s $i; done
    +1 for this command. I do love an easy one-liner like this one
    ThisIsBryan: The Site | About Me
    HowTo: Setup Ubuntu Desktop with LVM Partitions WIKI
    Hardware Profile: Dell XPS 14z; 4GB DDR3 RAM; 700GB HD; Intel Corporation Centrino Advanced-N 6230; Intel i7 CPU @ 2.80 GHz

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •