LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-15-2010, 08:14 AM   #16
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749

Quote:
What exactly is the UUID?
http://en.wikipedia.org/wiki/Univers...que_Identifier
Quote:
That doesn't look like a udev rule. Is it an fstab entry?
Yes. As I stated in my post.
Quote:
Anyway, I don't want the drive to be mounted automatically at boot-up.
Hence the 'noauto' option.
Quote:
I could be plugging it in and out randomly.
And when you do plug the device, then it can be mounted with a consistent mount point, or from a script, which is what I do. This particular unit is normally plugged to a server for backups scheduled as a cron job. The backup script mounts the device, performs the backup and unmounts the device just prior to the script exiting.
Quote:
And why does it say "ntfs-3g"?
The device in this example is formatted with as NTFS.
 
Old 02-15-2010, 08:35 AM   #17
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by allend View Post
I still don't really get it.

Quote:
Originally Posted by allend View Post
Yes. As I stated in my post.
Quote:
Originally Posted by allend View Post
Hence the 'noauto' option.
So how do I use it? Could you explain to me how that fstab line helps?

Why not make a udev rule that makes a symlink called "backup" for the first partition of a drive with the correct UUID?

Quote:
Originally Posted by allend View Post
And when you do plug the device, then it can be mounted with a consistent mount point, or from a script, which is what I do. This particular unit is normally plugged to a server for backups scheduled as a cron job. The backup script mounts the device, performs the backup and unmounts the device just prior to the script exiting.
I want a script to automatically mount it, and then unmount it when the backup is done.

Quote:
Originally Posted by allend View Post
The device in this example is formatted with as NTFS.
Why would you format your Linux flash drive with NTFS? Why not FAT, which has better Linux support and still works fine with Windows?

Last edited by MTK358; 02-15-2010 at 08:37 AM.
 
Old 02-15-2010, 08:46 AM   #18
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
The UUID is a unique identifier for your device.
The fstab line saves you from having to make a custom udev rule, but still allows you to have a consistent mount point.
The script you will have to write for yourself to suit your own circumstances. My script simply mounts the drive, runs a couple of rsync commands, then unmounts the drive. You can find it here. http://www.linuxquestions.org/questi...1/#post3810632
The device in my example is an external USB drive. It came formatted with NTFS and contained existing backups made using Windows tools prior to being put into service with this server.

Last edited by allend; 02-15-2010 at 08:52 AM. Reason: Added link
 
  


Reply



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
Where Are Some Files I Would Like To Backup? Harpo Linux - Newbie 3 01-07-2007 11:04 AM
Backup files nesta Linux - Newbie 1 12-18-2006 10:24 AM
text files and their automatic backup files AGazzaz Linux - General 1 07-01-2006 07:38 AM
help with backup files vince_2x Linux - General 1 09-21-2004 09:11 PM
Your way: Backup - what files, how often, on CD-(RW)? JZL240I-U Linux - General 8 07-24-2003 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:23 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
Open Source Consulting | Domain Registration