Changes

From SME Server
Jump to navigationJump to search
16 bytes added ,  10:36, 11 November 2007
m
mnt > media
Line 24: Line 24:  
  LABEL=Disk2 /home/e-smith/files/ibays/ibay-2/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>
 
* 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 /mnt/backup ext3 defaults
+
  LABEL=Disk1 /media/backup ext3 defaults
  LABEL=Disk2 /mnt/backup ext3 defaults
+
  LABEL=Disk2 /media/backup ext3 defaults
  LABEL=Disk3 /mnt/backup ext3 defaults
+
  LABEL=Disk3 /media/backup ext3 defaults
    
====Supported FileSystems====
 
====Supported FileSystems====
Line 73: Line 73:  
  mkfs.ext3 -L MyLabel /dev/sdc1
 
  mkfs.ext3 -L MyLabel /dev/sdc1
 
</li><li>Make the mount point
 
</li><li>Make the mount point
  mkdir -p /mnt/affadevice
+
  mkdir -p /media/affadevice
 
</li><li>Customize /etc/fstab as shown here: [[USBDisks#Customizing_fstab|Customizing fstab]]
 
</li><li>Customize /etc/fstab as shown here: [[USBDisks#Customizing_fstab|Customizing fstab]]
 
</li><li>Mount the drive
 
</li><li>Mount the drive
 
mount reads /etc/fstab to look for instructions on what to do if not specifically told on the command line.  After updating /etc/fstab as recommended, you can "mount" your USB disk reliably by specifying either the target directory:
 
mount reads /etc/fstab to look for instructions on what to do if not specifically told on the command line.  After updating /etc/fstab as recommended, you can "mount" your USB disk reliably by specifying either the target directory:
  mount /mnt/affadevice
+
  mount /media/affadevice
 
or the disk label:
 
or the disk label:
 
  mount LABEL=MyLabel
 
  mount LABEL=MyLabel
Line 147: Line 147:     
Add the following line to the /etc/fstab
 
Add the following line to the /etc/fstab
  LABEL=MyLabel /mnt/affadevice ext3 defaults
+
  LABEL=MyLabel /media/affadevice ext3 defaults
    
* Replace 'ext3' with 'vfat' if your drive is formatted as fat32/vfat.
 
* Replace 'ext3' with 'vfat' if your drive is formatted as fat32/vfat.
* Replace /mnt/affadevice with the folder in which you want your USB drive mounted (here and in all "mount" commands)
+
* Replace /media/affadevice with the folder in which you want your USB drive mounted (here and in all "mount" commands)
* Make sure that the mount directory (/mnt/affadevice in this example) exists and is empty!  Linux will not mount a drive in a directory that is not empty.
+
* Make sure that the mount directory (/media/affadevice in this example) exists and is empty!  Linux will not mount a drive in a directory that is not empty.
 
* Add multiple entries as described in [[USBDisks#The_Solution]] to meet your specific requirements.
 
* Add multiple entries as described in [[USBDisks#The_Solution]] to meet your specific requirements.
  

Navigation menu