> Source: [sk103843](https://support.checkpoint.com/results/sk/sk103843)

# sk103843 - "shell-init: could not get current directory: getcwd: cannot access parent directories" error during upgrade from SecurePlatform to Gaia

| Property | Value |
|----------|-------|
| Solution ID | sk103843 |
| Date Created | 2014-12-22 |
| Last Modified | 2015-05-23 |
| Technical Level | Advanced |
| Products | Multi-Domain Security Management Server |
| Versions | R82.10, R81.20, R82, R82.20 |
| OS | Gaia |
| Platform | Smart-1 |

## Symptoms

- Upgrading Multi-Domain Security Management Server from SecurePlatform OS to Gaia OS using CLI method ("`patch add cd`" command) repeatedly shows the following error:  

"`shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory`"

```

... ... ...
Extracting /mnt/cdrom/system/patch/CPspupgrade_R77.20.tgz package .. 
Start Upgrading .. 
... ... ...
Extracting files completed successfully. 
Upgrade program will now upgrade your system. This process may take several minutes .. 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory 
... ... ...
pwd: cannot get current directory: No such file or directory 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory 
pwd: could not get current directory: getcwd: cannot access parent directories: No such file or directory 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory 
chdir: could not get current directory: getcwd: cannot access parent directories: No such file or directory 
******************************************************************************* 
Welcome to the Check Point setup center for Multi-Domain Security Management. 
This utility will guide you through the installation or upgrade process. 
Version: R77.20 
******************************************************************************* 
Checking for installed components. This may take a few seconds. 
Please wait... 
... ... ...

Multi-Domain Server PRE-UPGRADE VERIFICATION ENDED SUCCESSFULLY. 
Would you like to proceed with the upgrade now [yes/no] ? yes 
A log file was created: /opt/CPInstLog/mds_setup_MM_DD_HH_MM.log 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory 
... ... ...
```

## Cause

Installation scripts are referenced in incorrect locations.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
