LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-20-2004, 12:35 PM   #1
jjohnston62
Member
 
Registered: Aug 2003
Location: Minnesota, USA
Distribution: RedHat, Suse
Posts: 106

Rep: Reputation: 15
Clarify Mount Point Usage


Using a hotswap firewire (IEEE1394)-based drive with rsnapshot (rsync) to do disk-based backups. This all works fine.

However, my knowledge on proper use of mount points isn't fine. <G>

I have defined a mount point as /mnt/back - through the rsync script (being kicked off by cron), I do a mount on the hot swap drive (dev/sda1) before doing the sync in the script, using the following

mount /dev/sda1 /mnt/back

however, if something happens that /dev/sda1 is unavailable, I do not want it to write to the /mnt drive, thus filling up the partition and potentially crashing the server.

Question is this - what would be the proper method of defining the mount point, or script handling, so that if the device /dev/sda1 wasn't mounted, the sync wouldn't happen?

Or is this a proper use of mount points, etc?

Thanks .....
 
Old 04-20-2004, 01:12 PM   #2
ryeman
Member
 
Registered: Jan 2004
Location: Gainesville, GA
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
Well, I'm not sure about firewire, however, when I use a USB drive/device, it is automatically added to my /mnt/removable. With your firewire drive disconnected from the computer, remove the /mnt/back from your /mnt folder. I believe there is a setting in kernel 2.6 for adding firewire support as a module. Try that to see if that is what your looking for
 
Old 04-20-2004, 01:32 PM   #3
jjohnston62
Member
 
Registered: Aug 2003
Location: Minnesota, USA
Distribution: RedHat, Suse
Posts: 106

Original Poster
Rep: Reputation: 15
The firewire mounts fine.... works fine. My question is more about how to make sure that if I'm writing to a directory /backup - that the /backup directory being written to is on the device /dev/whateverdevice instead of just a directory I've created for a mount point.

Does that make sense?

I'm not saying this properly... not being clear, probably.
 
Old 04-20-2004, 11:47 PM   #4
bdp
Member
 
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
one way to check is to cat your /etc/mtab file and grep for the drive of interest. mtab keeps track of what is mounted.
 
Old 04-22-2004, 10:49 PM   #5
ryeman
Member
 
Registered: Jan 2004
Location: Gainesville, GA
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
Quote:
Originally posted by jjohnston62
The firewire mounts fine.... works fine. My question is more about how to make sure that if I'm writing to a directory /backup - that the /backup directory being written to is on the device /dev/whateverdevice instead of just a directory I've created for a mount point.

Does that make sense?

I'm not saying this properly... not being clear, probably.
Oh, I see.. you want to make sure that your files that you transfer are actually on the firewire drive? Well, I know with Linneighborhood, there is an option to "delete mount points on unmount". You may have to create a script to acheive that.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 11:03 AM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 06:02 PM
samba mount when not owner of mount point cotton213 Linux - General 1 08-04-2005 07:21 AM
Please clarify... LFS 1.6 from a 1.4 starting point? sundialsvcs Linux From Scratch 6 07-12-2005 04:08 PM
Multiple mount --bind's to 1 mount point ? Etraman Slackware 6 12-23-2004 08:18 PM


All times are GMT -5. The time now is 04:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration