0

I wanted to know how to make my secondary drive for documents, music, and pictures. I already formatted the drive and mounted the drive in /media/bigdata. Now I just want to know on how to make all my file go to that drive or at least have access to it, so I can put in files. Thanks.

** This is what I get when I try to move a file to the new mounted hardrive. This is what I get when I try to move a file to it. Error opening file '/media/bigdata/uninstalling wine.odt'. Permission denied.

How do I use chown to change my permissions in my new drive, so I can copy and paste on it?

Here is my original post of the process. How to add a second hard drive to an already installed Xubuntu 14.04?

*** When I go to the new partition drive and I open the terminal in that location and I type Ls -L this is what I get total 16 drwx------ 2 root root 16384 Jul 3 10:05 lost+found

jart
  • 393
  • http://askubuntu.com/questions/223655/windows-ubuntu-dual-boot-share-files-between-os/223670#223670 – oldfred Jul 01 '14 at 03:59

1 Answers1

0

Just copy them ?

cp -r ~/{Pictures,Videos,Music} /media/bigdata

Or maybe move them ?

mv ~/{Pictures,Videos,Music} /media/bigdata

Just adapt these commands. What you write in /media/bigdata is written to the external drive mounted there. However, if you want to use this drive as your /home partition, that's another thing. Quoting from this page :

If you don’t create a separate home partition while installing Ubuntu, you don’t have to reinstall Ubuntu from scratch. To migrate to a separate home partition after installation, you’ll have to create a new partition (which may require resizing your existing partitions), copy the files from your existing home directory to that partition, and tell Ubuntu to mount the new partition at /home.

As you're using the whole drive, you probably don't need to partition it much more. Copying/moving is handled by my above commands. As far as auto-mounting is concerned, you might want to have a look at the fstab file. GNOME also offers device auto-mounting GUIs that mount your drive to /media/bigdata after login. Basically, most USB storage devices are auto-mounted anyway.

In you're not really at ease with disk management and system partitionning, just move your files to the drive, and leave your /home partition where it is. You might just need to configure your system to mount the external drive at /media/bigdata.

John WH Smith
  • 2,018
  • 14
  • 21
  • Also, in order to serve as the /home partition, the file system should be formatted as ext4. – Jos Jul 01 '14 at 08:24
  • @Jos Even though it's becoming a standard, ext4 is not the only possibility. Linux can mount numerous filesystems, no matter if it's /home or another partition. – John WH Smith Jul 01 '14 at 13:24
  • True. But you need a permissions system like ext4 offers, or your home partition will become a mess. – Jos Jul 01 '14 at 13:43
  • @JohnWHSmith this is my original problem which I solved, but now I can't even copy or paste to the new drive. http://askubuntu.com/questions/488213/how-to-add-a-second-hard-drive-to-an-already-installed-xubuntu-14-04?noredirect=1#comment655882_488213 – jart Jul 02 '14 at 04:08
  • @jart Then maybe you should provide us with more information about the new error. Edit your question and tell user "why" you can't copy :) – John WH Smith Jul 02 '14 at 13:32
  • @JohnWHSmith I mounted the drive and everything I just can't copy and paste on it. Is like I need a permission or something. Like modifying it with chown, but how. This is what I get when I try to move a file to it. Error opening file '/media/bigdata/uninstalling wine.odt'. Permission denied.

    How do I use chown to change my permissions in my new drive, so I can copy and paste on it?

    – jart Jul 03 '14 at 15:52
  • You just use it : sudo chown -R you:yourgroup /media/bigdata – John WH Smith Jul 03 '14 at 16:00