| 1 | = Data arrival by SATA disk (or DVD) = |
| 2 | |
| 3 | To mount the SATA disk, put it into the computer. Then ssh onto the machine. Run `dmesg` to show information on the device names, the kind of thing we would be looking for is: |
| 4 | {{{ |
| 5 | mptsas: ioc0: attaching sata device, channel 0, id 1, phy 1 |
| 6 | scsi 0:0:1:0: Direct-Access ATA ST3500630AS E PQ: 0 ANSI: 5 |
| 7 | sd 0:0:1:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) |
| 8 | sd 0:0:1:0: [sdb] Write Protect is off |
| 9 | sd 0:0:1:0: [sdb] Mode Sense: 73 00 00 08 |
| 10 | sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA |
| 11 | sd 0:0:1:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) |
| 12 | sd 0:0:1:0: [sdb] Write Protect is off |
| 13 | sd 0:0:1:0: [sdb] Mode Sense: 73 00 00 08 |
| 14 | sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA |
| 15 | sdb: sdb1 |
| 16 | }}} |
| 17 | where the name of the disk is sdb (sata disk b) and the partion is sdb1. SATA disks will be 500GB or 1TB in size. If you're paranoid and want to look at a time stamped log, run `sudo less /var/log/messages`. |
| 18 | |
| 19 | 1. mount the disk using command `sudo mount -o ro /dev/sdb1 /mnt/tmp`. This will mount it read only. |
| 20 | 1. Then check the data looks ok. |
| 21 | 1. If it does, remount the disk using `sudo mount -o remount,rw /mnt/tmp` to make it read/write. |
| 22 | 1. Run the command `chmod a+rX -R /mnt/tmp` to ensure we have full read permissions. |
| 23 | 1. Remount the SATA back as read only, `sudo mount -o remount,ro /mnt/tmp` to prevent accidents! |
| 24 | |
| 25 | == Copying the data onto the system == |
| 26 | |
| 27 | As the arsf user, create a directory in ~arsf/arsf_data/YYYY/flight_data/unpacking/ then copy the data over. Ensure you use a method that preserves timestamps, e.g. `cp -a` or `rsync -av`. |
| 28 | |
| 29 | Some example commands: |
| 30 | {{{ |
| 31 | COPYDIR=~/arsf_data/`date +%Y`/flight_data/unpacking/download-`date +%Y%m%d%H%M%S` |
| 32 | mkdir $COPYDIR |
| 33 | cd $COPYDIR |
| 34 | date |
| 35 | cp -av /mnt/tmp/* . |
| 36 | date |
| 37 | }}} |
| 38 | |
| 39 | == Unpacking data == |
| 40 | |
| 41 | Return to [wiki:Procedures/NewDataArrival] |