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===== |
| | | |