Changes

From SME Server
Jump to navigationJump to search
2,288 bytes removed ,  21:46, 29 September 2015
no edit summary
Line 1: Line 1:  
===USB Disks===
 
===USB Disks===
 
{{Warning box|NTFS partitions are supported if you install ntfs-3g and ntfsprogs, please use either fat32/vfat or ext2/ext3/ext4}}
 
{{Warning box|NTFS partitions are supported if you install ntfs-3g and ntfsprogs, please use either fat32/vfat or ext2/ext3/ext4}}
====Introduction====
  −
=====The Problem=====
  −
SME will automatically mount connected USB disk drives into the /media folder.
  −
Auto-mounting will be performed based both the specific USB port used to connect your drives and the order in which they are connected unless you use another method to specify mount points.
  −
  −
Imagine this example:
  −
* Connect USB 'A' to your system.  It is automatically assigned to /dev/sdc and auto-mounted to /media/usbdisk
  −
* Disconnect USB 'A' and connect USB 'B' (to the same or to a different USB port).  It will be assigned to /dev/sdc and auto-mounted to /media/usbdisk.
  −
* Re-connect USB 'A' while USB 'B' is still connected, and it will be assigned to /dev/sdd and auto-mounted to /media/usbdisk1.
  −
  −
Or this example:
  −
* Connect USB 'A' to the second USB port on your SME.  It is assigned to /dev/sdc
  −
* Connect USB 'B' to the first USB port without disconnecting USB 'A'.  USB 'B' is assigned to /dev/sdd
  −
* Leave both drives connected and re-boot.  USB 'B' is now connected to /dev/sdc, while USB 'A' is connected to /dev/sdd!
  −
  −
In one case, SME automatically mounted my USB drive in /media/DiskLabel, but, since the resulting automatic entry in /etc/fstab depended on the assigned device, the next drive I connected was also mounted in /media/DiskLabel, even though it had a completely different label!
  −
  −
=====The Solution=====
  −
The easiest way to avoid this behavior and provide reliable mount points for your USB drives is to label each drive, then specify the desired mount point in /etc/fstab based on the drive label.  This will allow you to:
  −
* Reliably mount your USB drives to drive-specific directories regardless of what device is assigned to the drive by SME.  This would allow you to specify separate USB disks for specific ibays by using lines like these in /etc/fstab:<br>
  −
LABEL=Disk1 /home/e-smith/files/ibays/ibay-1/html ext3 defaults
  −
LABEL=Disk2 /home/e-smith/files/ibays/ibay-2/html ext3 defaults
  −
* Reliably mount multiple disks in the one location, in case you want to use a rotating set of disk drives for backups, by using lines like these in /etc/fstab (just don't connect two of these drives at the same time!):<br>
  −
LABEL=Disk1 /media/backup ext3 defaults
  −
LABEL=Disk2 /media/backup ext3 defaults
  −
LABEL=Disk3 /media/backup ext3 defaults
  −
   
====Supported FileSystems====
 
====Supported FileSystems====
 
=====ext2/ext3/ext4=====
 
=====ext2/ext3/ext4=====

Navigation menu