Version 1 (modified by mggr, 14 years ago) (diff)

--

Data arrival by SATA disk (or DVD)

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:

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

  1. mount the disk using command sudo mount -o ro /dev/sdb1 /mnt/tmp. This will mount it read only.
  2. Then check the data looks ok.
  3. If it does, remount the disk using sudo mount -o remount,rw /mnt/tmp to make it read/write.
  4. Run the command chmod a+rX -R /mnt/tmp to ensure we have full read permissions.
  5. 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