LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 05-21-2015, 02:15 AM   #1
ohmster
Member
 
Registered: May 2005
Location: South Florida
Distribution: CentOS 7
Posts: 39

Rep: Reputation: 2
New fstab line for CentOS 7 backup, any issues?


Hi, I have gotten some terrific help here with backup ideas for the reconditioned older PC that I want to use for my Linux server. Now I have a great rsync backup script from jlinkels and it works really well.

I need an fstab entry for this new drive. I used gparted to make it a single parition ext drive with the label "USB-Backup". Nice.

For the /etc/fstab file, I used this line initially:

Code:
LABEL=USB-Backup        /mnt/backup              ext4    defaults        0 0
This method works but if the drive is not plugged in, CentOS 7 will hang at boot and dump me into an emergency shell. Not good. Next I tried this fstab line:

Code:
LABEL=USB-Backup        /mnt/backup              ext4    noauto,x-systemd.automount      0 0
THIS works extremely well. But I never heard of using systemd in an fstab file before so I would appreciate if any experienced members see anything wrong with it, before it is too late. Is this a safe, dependable method of mounting the drive or is there something better suited to this application for a backup USB drive?

EVERYTHING in the fstab file endes with zeros. Is this normal? I thought that the last digit was a "checking order" number for fsck. With everything 0, will that cause any foreseeable problems?

Code:
#
# /etc/fstab
# Created by anaconda on Tue Apr 28 04:54:46 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos_linux--server-root /                       xfs     defaults        0 0
UUID=787b75ae-64e1-4d33-bc8c-8a8b8af52a09 /boot                   xfs     defaults        0 0
/dev/mapper/centos_linux--server-home /home                   xfs     defaults        0 0
/dev/mapper/centos_linux--server-swap swap                    swap    defaults        0 0
LABEL=USB-Backup        /mnt/backup              ext4    noauto,x-systemd.automount      0 0
Everything here look safe and dependable? Thanks for your help. I would really like to get this right the first time.

Last edited by ohmster; 05-21-2015 at 02:44 AM. Reason: trim for length
 
Old 05-21-2015, 08:08 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
The zeros are normal. The xfs filesystem is not checked/repaired automatically at boot time. See link1, link2.
 
Old 05-21-2015, 04:02 PM   #3
ohmster
Member
 
Registered: May 2005
Location: South Florida
Distribution: CentOS 7
Posts: 39

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by rknichols View Post
The zeros are normal. The xfs filesystem is not checked/repaired automatically at boot time. See link1, link2.
Oh this is terrific! I would never have thought to look up links like that by that name. Okay, that is exactly what I need to know. Gold star for your shirt collar for the rest of the day! Thank you rknichols.
 
Old 05-21-2015, 04:54 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by ohmster View Post
I would never have thought to look up links like that by that name.
The only terms in my search were "xfs" and "fsck". Of course, it did help that I just wanted to find an authoritative source for what I already knew was normal.
 
Old 05-22-2015, 12:00 AM   #5
ohmster
Member
 
Registered: May 2005
Location: South Florida
Distribution: CentOS 7
Posts: 39

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by rknichols View Post
The only terms in my search were "xfs" and "fsck". Of course, it did help that I just wanted to find an authoritative source for what I already knew was normal.
Way to go rknichols! I did the fsck Google but was missing the xfs part because that is really new to me. Is xfs a new Linux file system or is it used elsewhere like sdcards, memory cards, and other storage needs? Not important, just if you have the time and feel like talking I would love to hear it. Thanks buddy!
 
Old 05-22-2015, 08:50 AM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Wikipedia can be a useful resource, regardless of whether you believe everything you find there. http://en.wikipedia.org/wiki/XFS#History
 
Old 05-22-2015, 09:08 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator response

Moved: This thread is more suitable in <CentOS> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply

Tags
centos7, fstab, usb automount



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
fstab file and backup products sulekha Linux - General 2 08-18-2010 11:32 AM
help backup server corrupted /etc/fstab mahaila Linux - General 18 08-13-2005 01:02 PM
help backup server corrupted /etc/fstab mahaila Linux - General 2 08-12-2005 01:12 PM
help backup server corrupted /etc/fstab mahaila Linux - General 2 08-12-2005 01:12 PM
help backup server corrupted /etc/fstab mahaila Linux - General 5 08-12-2005 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 01:33 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