Version 3 (modified by emca, 15 years ago) (diff) |
---|
Data arrival by SATA disk (or DVD)
To mount the SATA disk, put it into the computer. Turn the key in the disk and wait for the numbers on the right to stop flashing. Then ssh onto the machine. Run dmesg to show information on the device names, the kind of thing we would be looking for is:
mptsas: ioc0: attaching sata device, channel 0, id 1, phy 1 scsi 0:0:1:0: Direct-Access ATA ST3500630AS E PQ: 0 ANSI: 5 sd 0:0:1:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) sd 0:0:1:0: [sdb] Write Protect is off sd 0:0:1:0: [sdb] Mode Sense: 73 00 00 08 sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:1:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) sd 0:0:1:0: [sdb] Write Protect is off sd 0:0:1:0: [sdb] Mode Sense: 73 00 00 08 sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdb: sdb1
where the name of the disk is sdb (sata disk b) and the partition 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.
- mount the disk using command sudo mount -o ro /dev/sdb1 /mnt/tmp. This will mount it read only.
- Then check the data looks ok.
- If it does, remount the disk using sudo mount -o remount,rw /mnt/tmp to make it read/write.
- Run the command chmod a+rX -R /mnt/tmp to ensure we have full read permissions.
- Remount the SATA back as read only, sudo mount -o remount,ro /mnt/tmp to prevent accidents!
Copying the data onto the system
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.
Some example commands:
COPYDIR=~/arsf_data/`date +%Y`/flight_data/unpacking/download-`date +%Y%m%d%H%M%S` mkdir $COPYDIR cd $COPYDIR date cp -av /mnt/tmp/* . date
Unpacking data
Return to Procedures/NewDataArrival