I m using Ubuntu 12.04 and i have to partitions part1 and part2, both are ext4. I want to transfer media files to and from them freely through programs.
|
What I would do is the following: Assuming you have both partitions mounted with the names part1 and part2, you will be the only one using them and you want total free control over them, I would do this:
The permissions (in this case 777) are as follow: 7 - Full (Read, Write & Execute) The first 7 (Starting from the Left) is for the owner, the 2nd is for the group where the owner resides. The last 7 is for other groups. Basically like this you can copy anything you want in the partitions and if you ever need to take the HDD out and connect it to another computer with Ubuntu you will not have any problems with permissions. At least in my case it saves me time because I tend to have 1 or 2 hard drives that hold movies, music and similar stuff and I move them around from PC to PC. Just to add, if you do not know where the partitions are mounted, you can always open Disk Utility and in the information about the hard drive it will tell you where it is mounted. Remember that you need to apply this to the partition AFTER it has been mounted. |
|||||||||||||||||
|
|
Instead of changing all file permissions, like Luis Alvarado suggested, it would be better to change the file owner - thus keeping the executable bit on any binary and script files that previously had it. So, assuming your partition is mounted as /media/something and your username is johndoe, you can run
to change the owner and owning group of /media/something (and all files and directories it contains, hence the -R for 'recursive') to johndoe. This way, all files will retain their permissions, but since you will be the owner of /media/something, you will be able to write to it and change any file permissions, in case you ever need to. |
|||
|
|
|
You should be able to mount the partition from nautilus (Ubuntu's default file manager). If you look at the top left hand side of the window, you should be able to see all of the partitions you have on your drive. Just click on one to mount it. However, if you want a given directory to always be mounted on startup, you need to add it to
The format is
So basically just replace /dev/sda2 with your device and /media/part1 with your mount point from the example. If you need more info for editing your /etc/fstab, you could check out this article I found: http://www.tuxfiles.org/linuxhelp/fstab.html. |
|||
|
|
|
You can normally do this already, but my advice would be to add the partitions to Create the directories under
You now have the two directories created, with you as the owner. You need the UUID (Universal Unique Identifier) of the two drives to identify them in the fstab file. To get these, run Open
Then, enter these two lines at the end of the file (but substitute the UUID for the xxx.... part, and the directory name for MyMounts):
To test, save the file and enter this at a terminal commandline: |
|||||||||
|
|
I had the same problem and solved it by running nautilus as root, right click on the partition, properties, and changed the permissions (or owner if necessary). If nautilus is not installed:
|
|||
|
|