Changes between Initial Version and Version 1 of Procedures/NewDataArrival/Disk


Ignore:
Timestamp:
Oct 9, 2009, 10:52:02 AM (15 years ago)
Author:
mggr
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Procedures/NewDataArrival/Disk

    v1 v1  
     1= Data arrival by SATA disk (or DVD) =
     2
     3To 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{{{
     5mptsas: ioc0: attaching sata device, channel 0, id 1, phy 1
     6scsi 0:0:1:0: Direct-Access     ATA      ST3500630AS      E    PQ: 0 ANSI: 5
     7sd 0:0:1:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
     8sd 0:0:1:0: [sdb] Write Protect is off
     9sd 0:0:1:0: [sdb] Mode Sense: 73 00 00 08
     10sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
     11sd 0:0:1:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
     12sd 0:0:1:0: [sdb] Write Protect is off
     13sd 0:0:1:0: [sdb] Mode Sense: 73 00 00 08
     14sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
     15sdb: sdb1
     16}}}
     17where 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
     27As 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
     29Some example commands:
     30{{{
     31COPYDIR=~/arsf_data/`date +%Y`/flight_data/unpacking/download-`date +%Y%m%d%H%M%S`
     32mkdir $COPYDIR
     33cd $COPYDIR
     34date
     35cp -av /mnt/tmp/* .
     36date
     37}}}
     38
     39== Unpacking data ==
     40
     41Return to [wiki:Procedures/NewDataArrival]