How move User Folders to another partition (NTFS) in Ubuntu 14

Carlos

I've installed Windows 7 and Ubuntu on my notebook. I want to share the user folders:

  • Pictures
  • Musics
  • Videos
  • Downloads
  • etc...

In my instalation I've 3 partitions:

  • Windows 7
  • Ubuntu
  • Data

I already have setted the Windows 7 folders on partition Data. But is so hard change the Ubuntu folders.

I tried change paths with:

gedit .config/user-dirs.dirs

I.E.:

XDG_PICTURES_DIR="/media/user/Dada/Pictures"

But everytime when I restart, the value changes to "$HOME/"

How can I change path of user folders of Ubuntu and add to menu Locals on file explorer?

G Trawo

I do this all the time with my computers. I have my documents, pictures, and music (etc) on the NTFS partition and then link them over to my Ubuntu installation. Works flawlessly. I even link my Thunderbird installation, so that my emails are synced as well.

The key is to MOUNT the drive on boot. Here is how you do what you asked for:

First, you will need to make sure you have the proper NTFS packages installed to mount them with read/write (all the commands to follow are done in a terminal window):

sudo apt-get install ntfs-3g

To figure out which one is your actual partition (with your user data on it), you will need to find out which one is the right one by it's size. Type this:

sudo fdisk -l | grep NTFS

This will show something like this:

/dev/sda1  *         2048    718847    716800   350M  7 HPFS/NTFS/exFAT
/dev/sda2          718848 467937279 467218432 222.8G  7 HPFS/NTFS/exFAT
/dev/sda3       467937280 468858879    921600   450M 27 Hidden NTFS WinRE

/dev/sda2 shows up as 222.8G for me and is the right size of the partition I am looking for. You will have to match the right one for you.

To make sure that plugging in an external drive or USB stick doesn't mess up the sdX naming convention of the drives when you boot up, we will NOT use that to mount the drive. We will instead get the UUID of it. This way we make sure to always mount the right drive! To get the UUID type:

sudo blkid | grep sda2

This should show something like this:

/dev/sda2: UUID="2292B90B92B8E507" TYPE="ntfs" PARTUUID="446ec305-02"

Now we have all the information to put something into fstab to automatically mount the drive in a directory of our choice.

First make a backup of your fstab file. Just in case something goes wrong.

sudo cp /etc/fstab /etc/fstab.bak

Now let's edit.

Using GEDIT: (easier for beginners)

gksudo gedit /etc/fstab

OR using terminal (nano): (good to learn)

sudo nano /etc/fstab

Add this line at the end of the file:

#Added By Carlos
UUID=2292B90B92B8E507   /windows_data  ntfs-3g defaults,windows_names,locale=en_US.utf8   0       0

Change the UUID to match yours. Also, I am assuming you live in the US, and if not, you will need to change the locale.

Finally, let's make the directory:

sudo mkdir /windows_data 

You can call it 'windows_data' or whatever you want. Just make sure to match it to the entry in fstab.

Let's mount it! Well, first unmount it to make sure. Use the sdX of your partition to do that. Mine would be:

sudo umount /dev/sda2

Then mount it all properly:

sudo mount -a

If everything worked, you will now have your windows partition automatically mounted to /windows_data! Pat yourself on the back for a job well done so far! :)

Ok, let's do the final step: link the directories you wanted! And this is the easiest step.

What I usually do is to open TWO nautilus windows (the Ubuntu file explorer). Hit the Windows key on your keyboard and type "nautilus". Open one and go to your "Home" directory (should be in "/home/" somewhere).

Open another and go to "/windows_data". Then go into your users data directory in there. Right-click on the directory (like "Documents") and select "Make Link" and it will create a shortcut there. Move the shortcut by pressing CTRL-X and then CTRL-V in the other nautilus window.

Delete the old 'Documents' directory in your Ubuntu home directory (if it is empty) and rename the shortcut to 'Documents'.

Rinse and repeat for the rest of the directories.

I hope I didn't move too fast. If you need more info on anything I can edit this answer to add more detail.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Restrict access from another user to the NTFS partition

From Dev

How to remove NTFS partition in Ubuntu Launcher?

From Dev

How to create NTFS partition in ubuntu 13.04

From Dev

How to create NTFS partition in ubuntu 13.04

From Dev

How to hide a(n) (NTFS) partition from ubuntu

From Dev

How to copy a bootable NTFS partition from one physical hard drive to another with Ubuntu?

From Dev

How do I mount another NTFS partition of an external hard drive running Ubuntu?

From Dev

How to copy a bootable NTFS partition from one physical hard drive to another with Ubuntu?

From Dev

How do I mount another NTFS partition of an external hard drive running Ubuntu?

From Dev

how to move Ubuntu 20.04 partition

From Dev

Move Ubuntu partition to another drive and resize?

From Dev

Want to share folders with another user in Ubuntu 14.04

From Dev

how to move folders to another folder in command line

From Dev

How to move multiple folders to another directory?

From Dev

How to restrict access to a NTFS partition to a standard (non-admin) user?

From Dev

How to restrict access to a NTFS partition to a standard (non-admin) user?

From Dev

How to open NTFS partition on Ubuntu without Windows' hidden files?

From Dev

How to make NTFS partition for storage alongside Ubuntu installation?

From Dev

How to open NTFS partition on Ubuntu without Windows' hidden files?

From Dev

How to move completely the ProgramData folder from one partition in to another partition?

From Dev

Move service to another partition

From Dev

How to recover deleted folders or files (by shift+delete) from an NTFS partition

From Dev

How to recover overwritten NTFS partition?

From Dev

How to safely move all my Picasa folders to another drive

From Dev

Unable to mount NTFS partition from user account

From Dev

How can i move an encrypted home directory to another partition?

From Dev

How to move from partition to another from (browse)button

From Dev

Volume Management: How to move space from one partition to another?

From Dev

How can I move a single partition to another empty drive?

Related Related

  1. 1

    Restrict access from another user to the NTFS partition

  2. 2

    How to remove NTFS partition in Ubuntu Launcher?

  3. 3

    How to create NTFS partition in ubuntu 13.04

  4. 4

    How to create NTFS partition in ubuntu 13.04

  5. 5

    How to hide a(n) (NTFS) partition from ubuntu

  6. 6

    How to copy a bootable NTFS partition from one physical hard drive to another with Ubuntu?

  7. 7

    How do I mount another NTFS partition of an external hard drive running Ubuntu?

  8. 8

    How to copy a bootable NTFS partition from one physical hard drive to another with Ubuntu?

  9. 9

    How do I mount another NTFS partition of an external hard drive running Ubuntu?

  10. 10

    how to move Ubuntu 20.04 partition

  11. 11

    Move Ubuntu partition to another drive and resize?

  12. 12

    Want to share folders with another user in Ubuntu 14.04

  13. 13

    how to move folders to another folder in command line

  14. 14

    How to move multiple folders to another directory?

  15. 15

    How to restrict access to a NTFS partition to a standard (non-admin) user?

  16. 16

    How to restrict access to a NTFS partition to a standard (non-admin) user?

  17. 17

    How to open NTFS partition on Ubuntu without Windows' hidden files?

  18. 18

    How to make NTFS partition for storage alongside Ubuntu installation?

  19. 19

    How to open NTFS partition on Ubuntu without Windows' hidden files?

  20. 20

    How to move completely the ProgramData folder from one partition in to another partition?

  21. 21

    Move service to another partition

  22. 22

    How to recover deleted folders or files (by shift+delete) from an NTFS partition

  23. 23

    How to recover overwritten NTFS partition?

  24. 24

    How to safely move all my Picasa folders to another drive

  25. 25

    Unable to mount NTFS partition from user account

  26. 26

    How can i move an encrypted home directory to another partition?

  27. 27

    How to move from partition to another from (browse)button

  28. 28

    Volume Management: How to move space from one partition to another?

  29. 29

    How can I move a single partition to another empty drive?

HotTag

Archive