Changes

Jump to navigation Jump to search
11 bytes removed ,  15:29, 8 March 2016
m
Gave better formatting to echo output in script.
Line 160: Line 160:     
Once the script exists you can add additional mount commands by editing S95mount_USB using:
 
Once the script exists you can add additional mount commands by editing S95mount_USB using:
  pico -w /etc/e-smith/events/local/S95mount_USB
+
  nano -w /etc/e-smith/events/local/S95mount_USB
    
The 'local' event will run each time your server boots up.  If you connect or disconnect a drive and need to re-mount it you can re-run your auto-mount commands using:
 
The 'local' event will run each time your server boots up.  If you connect or disconnect a drive and need to re-mount it you can re-run your auto-mount commands using:
 
  signal-event local
 
  signal-event local
 +
 
====Mount your disks automatically when connected====
 
====Mount your disks automatically when connected====
 
{{incomplete}}
 
{{incomplete}}
Line 199: Line 200:  
         fs=$(hal-get-property --udi $udi --key volume.fstype)
 
         fs=$(hal-get-property --udi $udi --key volume.fstype)
 
         lb=$(hal-get-property --udi $udi --key volume.label)
 
         lb=$(hal-get-property --udi $udi --key volume.label)
         echo $dev": label "$lb",file system: "$fs ",uid: "$udi
+
         echo device: $dev", label: "$lb", file system: "$fs", uid: "$udi
 
     fi
 
     fi
 
  done
 
  done
Line 210: Line 211:     
The output will tell you the device, volume label, file system type, and the uid. If this is a new drive you have to run fdisk to create a partition and format the drive before you can mount it.
 
The output will tell you the device, volume label, file system type, and the uid. If this is a new drive you have to run fdisk to create a partition and format the drive before you can mount it.
   
=====Run fdisk on the Drive=====
 
=====Run fdisk on the Drive=====
   Line 222: Line 222:  
=====Format The Drive=====
 
=====Format The Drive=====
   −
You now need to format the drive. ext4 is recommended. To format the drive with an ext4 filesystem located at /dev/sdb1 and give it a label of usbdrive, issue the following command:
+
You now need to format the drive. To format the drive with an ext3 filesystem located at /dev/sdb1 and give it a label of usbdrive, issue the following command:
  mkfs ext4 -L usbdrive /dev/sdb1
+
  mkfs.ext3 -L usbdrive /dev/sdb1
    
=====Mount The Drive=====
 
=====Mount The Drive=====
95

edits

Navigation menu