# Issue with moving files to scratch space

**URL:** <http://hpc-community.unige.ch/t/issue-with-moving-files-to-scratch-space/326>\
**Category:** HPC Technical\
**Created:** [July 4, 2019, 2:37pm UTC](http://hpc-community.unige.ch/t/issue-with-moving-files-to-scratch-space/326 "2019-07-04T14:37:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aymeric.galan1](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/a/e5b9ba/32.png) [@aymeric.galan1](http://hpc-community.unige.ch/u/aymeric.galan1)\
**Post date:** [July 4, 2019, 2:37pm UTC](http://hpc-community.unige.ch/t/issue-with-moving-files-to-scratch-space/326/1 "2019-07-04T14:37:15Z")

</div>

Hi Yann,

I tried to apply the few steps you mentioned to migrate the scratch directory, but despite having no issues during the execution of those lines, I did not manage to get it done properly. In the end, I am unable to delete the `scratch.o` directory, and I’m not convinced the symbolic link is right.

Could you please create a “good” scratch directory in my home ? (username : galanay)

---

<div class="post-metadata">

**Author:** ![Yann.Sagon](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/yann.sagon/32/3_2.png) [@Yann.Sagon](http://hpc-community.unige.ch/u/Yann.Sagon)\
**Post date:** [July 5, 2019, 9:03am UTC](http://hpc-community.unige.ch/t/issue-with-moving-files-to-scratch-space/326/2 "2019-07-05T09:03:09Z")

</div>

Dear Aymeric,

inf your home directory, you have two folder that seems to be related to scratch:

```
/home/users/g/galanay/scratch.o -> /srv/beegfs/scratch/users/g/galanay/
/home/users/g/galanay/scratch_temp

```

Here is what I did (as yourself):

```
[galanay@master ~]$ mv scratch.o scratch
[galanay@master ~]$ mv scratch_temp/* scratch
[galanay@master ~]$ rmdir scratch_temp
[galanay@master ~]$ ls -lad scratch
lrwxrwxrwx 1 root root 36 Jun 18 15:06 scratch -> /srv/beegfs/scratch/users/g/galanay/

```

Best

---

<div class="post-metadata">

**Author:** ![aymeric.galan1](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/a/e5b9ba/32.png) [@aymeric.galan1](http://hpc-community.unige.ch/u/aymeric.galan1)\
**Post date:** [July 5, 2019, 12:40pm UTC](http://hpc-community.unige.ch/t/issue-with-moving-files-to-scratch-space/326/3 "2019-07-05T12:40:23Z")

</div>

Perfect, thanks a lot!
