- History
- View the source.
- Computer and Network/Data transfer has been deleted.
Data transfer†
at the ASTE site†
- login to aste-1x as asteobs
- connecting USB portable HDD to aste-1x
- HDD is mounted automatically, and the icon named 'ASTEBU_??' appears on the Desktop
- checking the data set to transfer
- making directory in the USB HDD if it does not exist
aste-1x{asteobs}59: mkdir /mnt/usbhdd/to_spda
- running the script to copy
- the script is /home/trans/bin/cos3_trans_aste.sh
- checking the data to transfer
aste-1x{asteobs}60: /home/trans/bin/cos3_trans_aste.sh /mnt/usbhdd/to_spda
***found data directories to transfer*** [#ocb03654]
/home/trans/20091207
/home/trans/20091208
***found data directories to transfer*** [#o5a4ffc8]
check mode
- if it is OK, execute the script
aste-1x{asteobs}65: /home/trans/bin/cos3_trans_aste.sh /mnt/usbhdd/to_spda -exec
- delete temporary files
- 転送が終わると、aste-1xの/home/trans内にある日付ディレクトリを消すかどうか聞かれる。
- 明示的に'y'(一回目)と'delete'(二回目)と打って消去する
- そのままenterを押すとファイル消しはキャンセルされるので、その後手動で消す。
- 転送中にトラブル等の違和感を感じた場合は、ファイルの消去をせずに塚越まで連絡。
- unmounting USB HDD
- disconnecting USB HDD from aste-1x
- please handle with care
- keep connecting the USB cable to aste-1x
At SPdA†
transfer from the ASTE site to SPdA†
- login aste-ax3 (or aste-ax2) as asteobs
- connect USB portable HDD in which the copied data at the ASTE site are
- HDD is mounted automatically
- checking the copied data in USB HDD
[asteobs@aste-ax3 ~]$ ls /mnt/usbhdd/to_spda/
- 山頂でコピーしたファイル(日付+'.cpio.'+なんちゃら)が入っているはず
- data copy
- スクリプトは/home/trans/bin/cos3_trans_spda.sh
- まずは転送ファイルのチェック
[asteobs@aste-ax3 ~]$ /home/trans/bin/cos3_trans_spda.sh /mnt/usbhdd/to_spda
*** found data to transfer ***
/mnt/usbhdd/to_spda/20091205
/mnt/usbhdd/to_spda/20091206
/mnt/usbhdd/to_spda/20091207
/mnt/usbhdd/to_spda/20091208
/mnt/usbhdd/to_spda/20091209
*** found data to transfer ***
check mode
- execute script if files are OK
[asteobs@aste-ax3 ~]$ /home/trans/bin/cos3_trans_spda.sh /mnt/usbhdd/to_spda -exec
- ファイル結合とcpioによるファイル展開が行われる。
- また日本への輸送データとして/home/trans/[日付]のディレクトリへコピーされる。
- 輸送データ消去
- 転送が終わると、ポータブルディスク内の元ファイルを消すかどうか聞かれるので消去する。
- 消すには明示的に'y'(一回目)と'delete'(二回目)と打つ必要がある。
- そのままenterを押すとファイル消しはキャンセルされるので、その後手動で消す。
- 転送中にトラブル等の違和感を感じた場合は、ファイルの消去をせずに塚越まで連絡。
- ポータブルディスクのアンマウント
transfer from SPdA to Japan†
- aste-ax3(ax2)にasteobsでログインする
- USBポータブルHDDをaste-ax3(ax2)につなぐ
- 自動で/mnt/usbhddにマウントされ、画面上にASTEBU_??というディスクアイコンが出る
- 転送データの確認
- ポータブルディスク内に別ディレクトリを作成
[asteobs@aste-ax3 ~]$ mkdir /mnt/usbhdd/to_jpn
- コピースクリプトの実行
- スクリプトは/home/trans/bin/cos3_trans_jpn.sh
- まずは転送ファイルのチェック
[asteobs@aste-ax3 ~]$ /home/trans/bin/cos3_trans_jpn.sh /mnt/usbhdd/to_jpn
***found data directories to transfer***
/home/trans/20091208
/home/trans/20091210
***found data directories to transfer***
check mode
- ディレクトリがOKなら実行する
[asteobs@aste-ax3 ~]$ /home/trans/bin/cos3_trans_jpn.sh /mnt/usbhdd/to_jpn -exec
- rsyncにてファイルがコピーされる
- 輸送データ消去
- 転送が終わると、ポータブルディスク内の元ファイルを消すかどうか聞かれるので消去する。
- 消すには明示的に'y'(一回目)と'delete'(二回目)と打つ必要がある。
- そのままenterを押すとファイル消しはキャンセルされるので、その後手動で消す。
- 転送中にトラブル等の違和感を感じた場合は、ファイルの消去をせずに塚越まで連絡。
- ポータブルディスクのアンマウント
At Mitaka†
- 運んできたUSB HDDは、以下の方法で関係者に渡して下さい。
FAQ†
USB HDD cannot be umounted†
- dmesgでディスクが認識されているかどうか確認
> dmesg
- ログの最後の方にUSBのメッセージが出ているので、エラーが出ていないかどうか確認する
- エラーが出ておらず、'sdc1'のように認識している場合
- 手動でマウントする
> mount /dev/sdc1
- エラーが出ている場合
USB HDD is mounted on /media/usbhdd instead of on /mnt/usbhdd†
- 手順書内の/mnt/usbhddを/media/usbhddとして実行する
USB HDD cannot be unmounted†
- マウント先にユーザーが残っていないかチェック
> fuser /mnt/usbhdd/*
- 残っていたら、ディレクトリを移動する、プロセスをKILLする等の処置を行う
message 'lack of disk space' appears†
- USB HDD内のいらないファイルを手動で消去し、ディスクの空き容量を増やしてください
- もしくは他のUSB HDDに付け替えて下さい。
disk space of USB HDD is not close to being enough due to too much data†
- 仕方がないので二つ以上のUSB HDDで運びます
- この場合は手動でのコピーになります。分かる方は手動でコピーを行い、その旨をaste-compまでお知らせ下さい。
- 分からなければ、aste-compか塚越まで連絡してください。指示を出します。
something is wrong!!!†
- mail to Takashi (ttsuka -at- ioa.s.u-tokyo.ac.jp)
memo(FAQs)†
- Below is just for your information
- I can't mount the USB HDD.
- USB HDD might have been recognized with a device name other than the designated one (ex. /dev/sde1). This may happen when some other devices are plugged or missing.
- Is the USB HDD already automatically mounted under /media/disk/ ?
- Is something already mounted under a designated mount point (ex. /mnt/backup)?
- 1.if possible, unmount it.
> umount /mnt/backup
then unplug it. Then try mounting your USB HDD.
> mount /mnt/backup
- If you have no other option, you have to specify a correct device name instead of just specifying a mount point(ex. /mnt/backup).
- 1.check the device name
> dmesg
because the output is very long, you can use "less", "more", "grep", "tail", etc. to pick out what you need.
- System says busy and I can't unmount the HDD.
- if you have any terminal with current directory under /mnt/backup, try
> cd
Then
> umount -l /mnt/backup
- if you have no other option,
- try logout once, login again, and then try umount -l /mnt/backup