LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2011, 08:43 AM   #1
ChrisAnstey
LQ Newbie
 
Registered: May 2011
Distribution: Ubuntu, CentOS
Posts: 3

Rep: Reputation: Disabled
Mount point for backup drive


Hi All,

I'm just setting up a partition on a seperate HDD in my system. I plan to use the partition to backup the important files on my main HDD (to guard against HD crash).

The question I have is about where would be the typical location to auto mount this partition? Which would it be normal to go for:

1. /backup/
2. /media/backup/
3. /mnt/backup/
4. /home/chris/backup/

Any issues with choosing each one? Does it matter? Since it's backing up my personal files, maybe option 4 makes sense?

Thanks,

Chris
 
Old 05-21-2011, 08:46 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
It is totally up to you how to name the mountpoint. None of your options makes more or less sense than the others.
 
Old 05-21-2011, 08:51 AM   #3
ChrisAnstey
LQ Newbie
 
Registered: May 2011
Distribution: Ubuntu, CentOS
Posts: 3

Original Poster
Rep: Reputation: Disabled
Ok, great thanks. I just wondered whether there was any common practice for locating things like this, or its just personal preference.

I think I'll go with option 4.
 
Old 05-21-2011, 08:57 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
If you want to follow the Linux Filesystem Hierarchy standard then somewhere under /mnt is appropriate for temporary mounts and somewhere under /media is appropriate for removable media (a USB HDD might count as removable media; an internal HDD would not).

A separate HDD would guard against primary HDD failure alone; it would not guard against events damaging the entire computer (such as fire); for this reason external media is a more robust choice and off-site storage even better.

EDIT: the directory hierarchy under each /home/* directory is for files specific to the associated user.

Last edited by catkin; 05-21-2011 at 09:01 AM. Reason: missing space
 
Old 05-21-2011, 09:03 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Personally I would not use the user's home directory. What happens when you backup the user's home directory? In that case you will also backup the mounted backup drive.

My choice would be either 3 or 1.
 
Old 05-21-2011, 09:14 AM   #6
GazL
Senior Member
 
Registered: May 2008
Posts: 4,472
Blog Entries: 7

Rep: Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942
If your intention is to have the backup filesystem permanently mounted, then I'd be inclined to avoid both /media and /mnt.

/mnt is intended to be used for temporary mounts done by the system administrator, so for example
mount /dev/backupdrive /mnt/backup
do_backuip
unmount /mnt/backup
would be an appropriate use of /mnt

/media is where the desktop environments will automatically mount removable media via udev + udsks/hal. Label a disk as "backup" and it will be mounted on /media/backup
For this reason I prefer to aviod using /media directly and leave it for udev/hal.

For permanent mounts, what I do is I have all my local filesystems mounted on subdirectories under /local.
/local/mirrors
/local/music
/local/backup

... and so on, but it's really up to you to decide how you like to organise it. It doesn't really matter what scheme you come up with, but if you do think out a scheme and stick to it, it'll make your system much tidier and easier to manage in the long run.

Just be aware of, and respect the intended use of /mnt and /media and you should be fine.
 
Old 05-21-2011, 10:01 AM   #7
ChrisAnstey
LQ Newbie
 
Registered: May 2011
Distribution: Ubuntu, CentOS
Posts: 3

Original Poster
Rep: Reputation: Disabled
Ah Ok, yes, I did think about the issue you mentioned when I was setting it up Wim. Your scheme using /local/ sounds good though GazL, so I'll change to /local/backup/ .

Edit: When you put them in /local/, who do you set as the owner and group?

Thanks all,

Chris
 
Old 05-21-2011, 10:44 AM   #8
GazL
Senior Member
 
Registered: May 2008
Posts: 4,472
Blog Entries: 7

Rep: Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942Reputation: 1942
I'd be inclined to make /local root:root 755 and set any subdirectories as is appropriate to their use, but there are all manner of ways of doing the permissions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto mount USB drive to specified mount point after reboot smallbook Linux - Server 7 07-21-2010 05:40 AM
udev rules to mount external hard drive at mount point akamikeym Gentoo 3 03-31-2010 02:12 PM
How do I change mount point location from /home to /backup amersheikh Red Hat 2 05-27-2009 09:03 AM
Set up rsync to mirror mount on Windows Server to mount point on 2nd internal drive MoMule Linux - Server 4 04-13-2007 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration