(Solved)Setting up a external HD for backup.

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

(Solved)Setting up a external HD for backup.

Postby roly » Dec 6th, '14, 01:03

I have a external 3 terraB hard drive that I would like to setup to do backups on my wife's and my PC's. It uses USB.
I seem to be able to have perrmissions for either my PC or her's but not both. :(
We are both running Mageia 4.
roly
roly
 
Posts: 70
Joined: Feb 5th, '12, 06:07

Re: Setting up a external HD for backup.

Postby doktor5000 » Dec 6th, '14, 01:42

Could you show an excerpt of ls -al of one folder so we can see what you're actually talking about?

Do you want to access the files of both users as both users, and read/write the files of the other user?
Also, what filesystem do you use?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Setting up a external HD for backup.

Postby roly » Dec 8th, '14, 23:20

>>Could you show an excerpt of ls -al of one folder so we can see what you're actually talking about?
I tried to do this but either I am having a senoir moment or I cannot do it. :O{

I am attaching 2 screen prints of the two partitions I have setup; scrn3 is the partition for my wife and scrn4 is for me.

>>Do you want to access the files of both users as both users, and read/write the files of the other user?
>>Also, what filesystem do you use?

What I am trying to set up with this exteral drive is that it can be pluged into my system or hers, both running Mageia 4.1, and the proper partition will mount and we can copy our files we want to backup to the mounted partition. We do not need to access each others partition.

The file system I formated the partitions to is "ext4".
Attachments
snapshot4.png
snapshot4.png (302.41 KiB) Viewed 1399 times
snapshot3.png
snapshot3.png (299.41 KiB) Viewed 1399 times
roly
 
Posts: 70
Joined: Feb 5th, '12, 06:07

Re: Setting up a external HD for backup.

Postby doktor5000 » Dec 9th, '14, 00:02

As you're using ext4, you need to care about directory and file permissions. Make sure all directories are readable and executable for others,
and files should also at least be readable for others. For more information check the following links:

http://unix.stackexchange.com/questions ... sions-ext4
https://ask.fedoraproject.org/en/questi ... d-on-ext4/
http://askubuntu.com/questions/12009/so ... ltiple-lin

You could also add your user and your wife's user to some common group like "users" and then run something as root like
Code: Select all
chown -R :users /mountpoint
when that partition is mounted below /mountpoint.
That way you don't have to change the permissions- although that will only work if the newly created files belong to the common group.
To ensure that, set the sticky bit for the group on all directories:
http://superuser.com/questions/277775/e ... -the-group
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Setting up a external HD for backup.

Postby benmc » Dec 9th, '14, 21:34

could you attach a screen shot of your 3TB drive when attached to your system and your wifes as well.
to get this particular screen shot, change your screen shot capture mode to : rectangular region, then use the mouse, left click and drag to create a rectangular area
permisssion.png
permisssion.png (41.05 KiB) Viewed 1381 times

insert drive, launch dolphin., lefthand pane of dolphin window should show places and your drive should be the last one listed.
click on the drive. it should change colour.
from the dolphin menu bar choose file and then properties:
properties.png
properties.png (52.31 KiB) Viewed 1381 times
benmc
 
Posts: 1218
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: Setting up a external HD for backup.

Postby roly » Dec 11th, '14, 01:32

Sorry to be slow, we loost power for over 24 hours.

For the last while, weeks, the updates have been messing up my system, rights, blowing away libre office, etc.

So I am not sure whats affecting me.
attached are two more screen shots requested.
roly
Attachments
snapshot6.png
snapshot6.png (939.94 KiB) Viewed 1365 times
snapshot5.png
snapshot5.png (938.97 KiB) Viewed 1365 times
roly
 
Posts: 70
Joined: Feb 5th, '12, 06:07

Re: Setting up a external HD for backup.

Postby benmc » Dec 11th, '14, 01:57

Nice wallpaper - from Hubble?

anyway. I am guessing you have made up 2 folders in the drive.
Roly backup + ? backup-, or something like that?

could you also show this line on the general tab:
general.png
general.png (44.08 KiB) Viewed 1355 times

"mounted on: /run/media/work/Data Traveller 4G"
benmc
 
Posts: 1218
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: Setting up a external HD for backup.

Postby roly » Dec 12th, '14, 04:41

Yes I have many huble shots.
Attachments
snapshot7.png
snapshot7.png (780.62 KiB) Viewed 1347 times
snapshot8.png
snapshot8.png (788.69 KiB) Viewed 1347 times
roly
 
Posts: 70
Joined: Feb 5th, '12, 06:07

Re: Setting up a external HD for backup.

Postby benmc » Dec 12th, '14, 05:16

If you change your :group " users " to :group " roly " on your permissions tab, that should correct the problem.
benmc
 
Posts: 1218
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: Setting up a external HD for backup.

Postby roly » Dec 13th, '14, 01:00

Only for me,what about Sue?
roly
 
Posts: 70
Joined: Feb 5th, '12, 06:07

Re: Setting up a external HD for backup.

Postby doktor5000 » Dec 13th, '14, 17:15

benmc wrote:If you change your :group " users " to :group " roly " on your permissions tab, that should correct the problem.

That would correct what problem exactly?

@roly: Can you please show the output of
Code: Select all
id roly
id sue
mount | grep media

The last one for each box where the external drive is connected.

As you're attaching the external drive to two computers, and on each computer you have one account (sue and roly)
it's first a question if both have the same user and group id. If they are the first or the only user on those machines,
they will both have user-id and group id set as 500. In that case you won't have to set up anything.
This would also explain why one folder is shown owned by roly on one machine, and owned by sue on the other machine.
(That is, if I interpreted the screenshots correctly).

On a related note, please stop those screenshots - the way they are currently, they're pretty meaningless.
You can't even see from which object the permissions are shown, and they miss information on what box they were taken
and what is shown there. On one screenshot you show the permissions of /home, on the other of /run/media/roly.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Setting up a external HD for backup.

Postby roly » Dec 16th, '14, 02:41

Sorry, the screen shots were requested by a poster higher up.

The problem is solved. I pluged into sue's pc then as root setup her partion.

Thanks for your help.
roly
roly
 
Posts: 70
Joined: Feb 5th, '12, 06:07


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest