Changes

From SME Server
Jump to navigationJump to search
1,932 bytes added ,  09:45, 3 April 2021
show fstab details
Line 88: Line 88:     
===fstab===
 
===fstab===
USB Device needs to be listed in fstab file to be available for mounting and use as backup target
+
A storage Device needs to be listed in the fstab file to be available for mounting and use as a backup target, as long as device is listed in fstab it will be used by rsync, FS ext3 ext4 or xfs, at a minimum, are supported.
Following formats may be used:
      +
/etc/fstab
 +
#------------------------------------------------------------
 +
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
 +
# by the SME server software. A few entries are updated during
 +
# the template processing of the file and white space is removed,
 +
# but otherwise changes to the file are preserved.
 +
# For more information, see http://www.e-smith.org/custom/ and
 +
# the template fragments in /etc/e-smith/templates/etc/fstab/.
 +
#
 +
# copyright (C) 2002 Mitel Networks Corporation
 +
#------------------------------------------------------------
 +
#
 +
# /etc/fstab
 +
# Created by anaconda on Sun Mar 28 18:56:50 2021
 +
#
 +
# 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/main-root  /                      xfs    uquota,gquota        0 0
 +
UUID=d52f319b-b06f-42bd-8408-6b3b1aba6731 /boot                  xfs    defaults        0 0
 +
/dev/mapper/main-swap  swap                    swap    defaults        0 0
 +
# the following device added for rsync-backup
 +
UUID=e5b75a85-5f3d-4db5-9097-f0339f711ab1 /media/usbdisk ext3 defaults,_netdev 0 0
 +
 +
Following formats for fstab may be used, UUID or LABEL is preferred:
 
  UUID=WHATEVERUUID /media/backupusb ext3 defaults,_netdev 0 0
 
  UUID=WHATEVERUUID /media/backupusb ext3 defaults,_netdev 0 0
 
  LABEL=WHATEVERLABEL /media/backupusb ext3 defaults,_netdev 0 0
 
  LABEL=WHATEVERLABEL /media/backupusb ext3 defaults,_netdev 0 0
 +
(not recommended )
 +
/dev/sdb1 /media/backupusb ext3 defaults 0 0
 +
 +
UUID or LABEL may be found by using lsblk as follows:
 +
[root@sme10rc ~]# lsblk -o NAME,UUID,FSTYPE,LABEL
 +
NAME          UUID                                  FSTYPE      LABEL
 +
sda
 +
├─sda1        d52f319b-b06f-42bd-8408-6b3b1aba6731  xfs        BOOT
 +
└─sda2        LUlD4Z-jSfM-rDXi-dnyb-YuJk-HErl-LlHLVg LVM2_member
 +
  ├─main-root 27c5fbcd-2138-4517-b911-2f03998a3aba  xfs
 +
  └─main-swap 7547033e-6245-4994-b9ee-161cabeaaf55  swap
 +
sdb
 +
└─sdb1        e5b75a85-5f3d-4db5-9097-f0339f711ab1  ext3
    
===Uninstall===
 
===Uninstall===

Navigation menu